InitializeCriticalSectionAndSpinCount not initialing address

0

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:

  • Platform toolset Visual Studio 2015 - Windows XP (v140_xp)
  • _WIN32_WINNT=0x0501;WIN32
c++
windows

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0