This may sound stupid but I do want to ask it to be sure.
If you have a cross platform application which can run under a Windows OS and Mac OS, in example,
is there a way to detect if that OS is a Windows OS and if it actually is a Windows OS, are you then able to use Windows code?