次の方法で共有


C2065: 'TOKEN_LINKED_TOKEN' : undeclared identifier

If you get    

error C2065: 'TOKEN_LINKED_TOKEN' : undeclared identifier    

when you try to compile a VC++ project that needs to get the linked token through GetTokenInformation, you need to get the Microsoft Windows SDK for Windows Vista. This is true for all the new Vista APIs of course. The SDK that shipped with Visual Studio is old and was built prior to Vista's existence.

You need to add the include, bin and lib directories of the platform SDK (default is C:\Program Files\Microsoft SDKs\Windows\v6.0) to Tools\Option\VC++ directories.

Maarten

Comments