Jump to content
  • Advertisement
Sign in to follow this  
Dookie

Help getting WMI data function working

This topic is 4018 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello! I'm trying to get WMI data but can't get a function to work...
CoSetProxyBlanket()
What's happening is that I can't get my compiler to recognize this function. I've added 'ole32.lib' to the dependencies list and included 'objbase.h' per Microsoft's instruction, but my compiler still comes up with the line:
d:\Programming\myprog.cpp(269): error C2065: 'CoSetProxyBlanket' : undeclared identifier
It's acting like it just isn't there. Is there a trick to getting it to work, or are there other dependencies or includes I need to add? Thanks in advance for the help!

Share this post


Link to post
Share on other sites
Advertisement
Never mind, I got it to work... I had to add this function prototype to my code:
WINOLEAPI CoSetProxyBlanket(
IN IUnknown *pProxy,
IN DWORD dwAuthnSvc,
IN DWORD dwAuthzSvc,
IN OLECHAR *pServerPrincName,
IN DWORD dwAuthnLevel,
IN DWORD dwImpLevel,
IN RPC_AUTH_IDENTITY_HANDLE pAuthInfo,
IN DWORD dwCapabilities );

which is strange, since it's already defined in 'objbase.h'... Oh well, it's working now so that's good enough for me! [smile]

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!