I'm working on a source code not written by me that does something like that:
CRITICAL_SECTION CriticalSection;
if (!InitializeCriticalSectionAndSpinCount(&CriticalSection,
0x00000400))
return;
printf("CriticalSection: %p\r\n", CriticalSection);
I always get success but 0xFFFFFFFF as address of CriticalSection
Maybe I'm not getting the thing, can anyone help?
I'm building with Visul Studio 2015, c++14 with these settings:
User contributions licensed under CC BY-SA 3.0