Hi all,
I wrote a small file system filter driver, it does nothing now.
I want to install the driver and start it from my MFC application.
I copy the ApexDM.sys to winnt/system32/drivers
and can create the service
but cannot start it.
" 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);
"
the error code is: 2, is that cannot find binary file
or invalid service handle?(I checked the handle it seems creat, because it
is a memory address)
Can any body help me??
Thanks in advance.
Ren
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com