Stephan, thanks a lot for this info. You mentioned that you could manually inject the detect_mismatch pragma into your import library. I haven't been able to find any information on this. Can you give a pointer?
It's really too bad that MFC excludes these APIs unless WINVER is set to at least 0x601. It already does all of the work necessary for the DLL to run on older OSes. If these had not required a WINVER setting, then we could use these APIs without worrying that the WINVER setting would let in some other API in some other part of the program that would prevent the program from working on earlier OSes.