Click here to Skip to main content
16,017,297 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Initializing an Array inside a Class? Pin
Rory Solley5-Sep-04 21:52
Rory Solley5-Sep-04 21:52 
GeneralRe: Initializing an Array inside a Class? Pin
Arsalan Malik5-Sep-04 23:00
Arsalan Malik5-Sep-04 23:00 
GeneralRe: Initializing an Array inside a Class? Pin
CreepingFeature6-Sep-04 21:15
CreepingFeature6-Sep-04 21:15 
GeneralSizeToRect Trouble Pin
Dan Neilsen5-Sep-04 20:52
Dan Neilsen5-Sep-04 20:52 
GeneralRe: SizeToRect Trouble Pin
Bob Stanneveld6-Sep-04 9:38
Bob Stanneveld6-Sep-04 9:38 
GeneralRe: SizeToRect Trouble Pin
Dan Neilsen6-Sep-04 13:50
Dan Neilsen6-Sep-04 13:50 
GeneralDiffernce between ATL DLL, ATL Service and ATL EXE and WebService in ASP.NET Pin
zahid_ash5-Sep-04 20:23
zahid_ash5-Sep-04 20:23 
GeneralCreateService: passing a parameter Pin
Imtiaz Murtaza5-Sep-04 19:19
Imtiaz Murtaza5-Sep-04 19:19 
Friends,
There is a windows Service API function CreateService(). I am using it to create my own windows service. I want to set the dependency of my
service. i.e i want my service to start after another service "MSSQLSERVER".

We can set the dependency via the eleventh parameter of CreateService(). The MSDN description is confusing for me:

lpDependencies 
[in] Pointer to a double null-terminated array of null-separated names of services or load ordering groups that the system must start 
before this service. Specify NULL or an empty string if the service has no dependencies. Dependency on a group means that this service can 
run if at least one member of the group is running after an attempt to start all members of the group. 
You must prefix group names with SC_GROUP_IDENTIFIER so that they can be distinguished from a service name, because services and 
service groups share the same name space.



I dont know what is meant by "Pointer to a double null-terminated array of null-separated names". Can anyone tell me how to create this variable
and pass in CreateService()


Imtiaz
GeneralRe: CreateService: passing a parameter Pin
Michael Dunn5-Sep-04 20:12
sitebuilderMichael Dunn5-Sep-04 20:12 
GeneralRe: CreateService: passing a parameter Pin
cmk6-Sep-04 0:02
cmk6-Sep-04 0:02 
QuestionHow to link menu and dialog box? Pin
anuchelvi5-Sep-04 19:11
anuchelvi5-Sep-04 19:11 
AnswerRe: How to link menu and dialog box? Pin
Arsalan Malik5-Sep-04 19:58
Arsalan Malik5-Sep-04 19:58 
GeneralRe: How to link menu and dialog box? Pin
anuchelvi5-Sep-04 22:16
anuchelvi5-Sep-04 22:16 
GeneralRe: How to link menu and dialog box? Pin
Arsalan Malik5-Sep-04 22:52
Arsalan Malik5-Sep-04 22:52 
GeneralRe: How to link menu and dialog box? Pin
anuchelvi5-Sep-04 23:47
anuchelvi5-Sep-04 23:47 
GeneralRe: How to link menu and dialog box? Pin
anuchelvi6-Sep-04 0:01
anuchelvi6-Sep-04 0:01 
GeneralRe: Pls hellllllllllpppppppppppppp Pin
anuchelvi6-Sep-04 1:39
anuchelvi6-Sep-04 1:39 
Questionhow to pass parameter? Pin
Member 13169505-Sep-04 19:07
Member 13169505-Sep-04 19:07 
AnswerRe: how to pass parameter? Pin
User 2155975-Sep-04 21:40
User 2155975-Sep-04 21:40 
AnswerRe: how to pass parameter? Pin
Gary R. Wheeler6-Sep-04 3:03
Gary R. Wheeler6-Sep-04 3:03 
QuestionHow to get session of a process ? Pin
n4_t15-Sep-04 17:37
n4_t15-Sep-04 17:37 
AnswerRe: How to get session of a process ? Pin
Blake Miller7-Sep-04 13:51
Blake Miller7-Sep-04 13:51 
GeneralRe: How to get session of a process ? Pin
n4_t114-Sep-04 19:44
n4_t114-Sep-04 19:44 
QuestionMouse Hover? Pin
Timothy Grabrian5-Sep-04 17:33
professionalTimothy Grabrian5-Sep-04 17:33 
AnswerRe: Mouse Hover? Pin
Ryan Binns5-Sep-04 18:16
Ryan Binns5-Sep-04 18:16 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.