This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Howto set SERVICE_IS_PARAMS.lpDependencies value
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 30, 2008
05:58 AM
Howto set SERVICE_IS_PARAMS.lpDependencies value
Hi
I am adding a windows service using ServiceAddService function. This function alone would not let me set the dependancy of the service. So I read in the documentation that I need to SERVICE_IS_PARAMS.lpDependencies to do so before calling ServiceAddService. I'm trying to assign it a value as
SERVICE_IS_PARAMS.lpDependencies = "myservice\0\0";
but its not working and giving me compile time error "Numeric value required". Can someone please help me with this.
Regards
Usman
I am adding a windows service using ServiceAddService function. This function alone would not let me set the dependancy of the service. So I read in the documentation that I need to SERVICE_IS_PARAMS.lpDependencies to do so before calling ServiceAddService. I'm trying to assign it a value as
SERVICE_IS_PARAMS.lpDependencies = "myservice\0\0";
but its not working and giving me compile time error "Numeric value required". Can someone please help me with this.
Regards
Usman
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jul 30, 2008
07:58 AM
I think that field wants a string pointer; perhaps trying defining a STRING variable (depsvcs, say) with the dependency or dependencies, and then setting:
SERVICE_IS_PARAMS.lpDependencies = &depsvcs;
SERVICE_IS_PARAMS.lpDependencies = &depsvcs;