Added Active Preprocessor Blocks for windows only functions