Note: Applies to RTI Connext 4.x and above. The TryEnterCriticalSection function is only declared in WinBase.h if _WINNT_WIN32 >= 0x400 . This symbol is defined within the ACE-TAO headers, which in turn are pulled in from Foo.h . If an application includes ndds/ndds_cpp.h before including Foo.h
...