Jump to content
  • Advertisement
Sign in to follow this  
inuyaga

Help with RegisterServiceCtrlHandlerEx

This topic is 5044 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

I need help with RegisterServiceCtrlHandlerEx function. I keep getting a undeclared identifer error. here is the relevent code. #define WIN32_LEAN_AND_MEAN #include <windows.h> #include <malloc.h> SERVICE_STATUS_HANDLE WINAPI RegisterServiceHandler() { return RegisterServiceCtrlHandlerEx(serv_name,ServiceHandler,NULL); } The #define WIN32_LEAN_AND_MEAN has no effect.

Share this post


Link to post
Share on other sites
Advertisement
C) What return value do you get from RegisterServiceCtrlHandlerEx?

If its ERROR_INVALID_NAME or ERROR_SERVICE_DOES_NOT_EXIST that would give you a pretty good idea as to why its not working.

Alan

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!