I've found the problem. Thanks to all. RE: More strange about "start driver service"??

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of gaoren
Sent: Wednesday, May 08, 2002 10:41 AM
To: File Systems Developers
Subject: [ntfsd] More strange about “start driver service”??

Hi,
I already create the service and opened it.
And the strange thing is that after I restart my computer, the driver can be
started from my application. after I unloaded it from my application ( the
unload result seems ok). and reload and restart it from my applicaiton. it
failed (can not start the service)??

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of Illes Attila
Sent: Wednesday, May 08, 2002 10:10 AM
To: File Systems Developers
Subject: [ntfsd] Re: Can any body help me on start driver service??

" schService = OpenService( SchSCManager,
DriverName,
SERVICE_ALL_ACCESS
);
if ( schService == NULL )
return FALSE;

ret = StartService( schService, 1, &DriverName );
error=GetLastError();
ret=(error== ERROR_SERVICE_ALREADY_RUNNING);
"
Hi
Try using the CreateService() or OpenService() api, and you’ll got a
SC_HANDLE. Use this handle in StartService().

Dano


You are currently subscribed to ntfsd as: xxxxx@yahoo.ca
To unsubscribe send a blank email to %%email.unsub%%


Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com


You are currently subscribed to ntfsd as: xxxxx@yahoo.ca
To unsubscribe send a blank email to %%email.unsub%%


Do You Yahoo!?

Get your free @yahoo.com address at http://mail.yahoo.com