I am developing on a Windows Server 2008 box, with Visual Studio 2010 Ultimate, SP1. Unfortunately, the function InterlockedPushListSList is causing errors because it is undefined in my copy of WinBase.h.
Declaring the function myself does not work; linker errors occur. It looks like this function is not defined in the windows libraries for my compiler. But the documentation linked to above states that it is available for my operating system.
Some Googling has revealed that the API has been around since the development of Windows Longhorn, albeit from a non-official source, so there shouldn’t be any reason for it to be missing from my point of view.
Does this function actually exist? If so, where can I get it?
I was able to reproduce your problem with MSVC 2010 and Windows SDK v7.0A.
InterlockedPushListSListis not present in WinBase.h. When declaring it, I first also got a linking error… until I realized I forgot theextern "C":-). Maybe you also forgot that? I could compile and link if I declared