16,472
社区成员
发帖
与我相关
我的任务
分享
//象这样的,theApp是class的实例
DllExport bool WINAPI Install(void)
{
return theApp.Load_Driver()&&theApp.Init_Driver();
}
GetCurrentDirectoryW(sizeof(sDir),sDir);
//GetModuleFileName(NULL,path.GetBuffer(MAX_PATH),MAX_PATH);//get current program full path
//path.ReleaseBuffer();
//path.Delete(path.ReverseFind('\\'),path.GetLength()-path.ReverseFind('\\'));
//AfxMessageBox(sDir);
driverpath.Format(_T("%s%s"),sDir,servicePath);
//AfxMessageBox(driverpath);
BOOL StartService(
SC_HANDLE hService, // handle to service
DWORD dwNumServiceArgs, // number of arguments
LPCTSTR *lpServiceArgVectors // array of arguments
);