hi.
API: StartServiceCtrlDispatcher
This API use to run services. but i cant use it in vb6.
Please help me.

Hmn, Read This Thread:
http://discussion.forum.nokia.com/forum/showthread.php?t=29681

hi.
i had that code in my sources. but this code have a problem.
i compile this code and put the exe file in address of my service to run.
when i click on start of my service to run this exe file , program terminate.
see left pic.

program terminate on this line.
b = SetServiceStatus(hServiceStatus, ServiceStatus)
and show me an error.
see right pic.

Please help me.

Hmn, I might be able to help more if you attach the project, or post some code (use Code Tags)

Hmn, I might be able to help more if you attach the project, or post some code (use Code Tags)

ok.
program terminate on this line :
b = SetServiceStatus(hServiceStatus, ServiceStatus)

Somebody help me.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.