I want to use the Windows-API-function RegisterServiceCtrlHandlerEx (http://msdn.microsoft.com/en-us/library ... 85%29.aspx) which has the same parameters as RegisterServiceCtrlHandler (http://msdn.microsoft.com/en-us/library ... 85%29.aspx) except the last optional parameter.
However, when using
Code: Select all
hStatus = RegisterServiceCtrlHandlerEx_(#MyService_Name, @Service_CtrlHandler())
When changing RegisterServiceCtrlHandlerEx_ to RegisterServiceCtrlHandler_ everything is okay.
Any ideas what I am doing wrong here?
Thanks