各位大师兄帮忙啦!!
如何在win98系统中注册一个进程呢?
我不止如何使用RegisterServiceProcess函数.请各位师兄多多指点!
给诸位拜个晚年了!
问题点数:10、回复次数:4Top
1 楼boodweb(TTT)回复于 2001-01-28 23:40:00 得分 10
HANDLE h=LoadLibrary(..Kernel32.dll..);
GetProcAddress(h,"RegisterServiceProcess")得到函数指针
参数如下:
DWORD RegisterServiceProcess(
DWORD dwProcessId,
DWORD dwType
);
Parameters
dwProcessId
Specifies the identifier of the process to register as a service process. Specifies NULL to register the current process.
dwType
Specifies whether the service is to be registered or unregistered. This parameter can be one of the following values. Value Meaning
0 Unregisters the process as a service process.
1 Registers the process as a service process.
Top
2 楼silver(Bai)回复于 2001-01-29 01:18:00 得分 0
让应用程序从应用程序列表中消失!
HINSTANCE hDllInst = LoadLibrary("KERNEL32.DLL");
if(hDllInst)
{
typedef DWORD (WINAPI *MYFUNC)(DWORD,DWORD);
MYFUNC RegisterServiceProcessAlias = NULL;
RegisterServiceProcessAlias = (MYFUNC)GetProcAddress(hDllInst, "RegisterServiceProcess");
if(RegisterServiceProcessAlias)
{
RegisterServiceProcessAlias(GetCurrentProcessId(),1);
}
FreeLibrary(hDllInst);
}
Top
3 楼jie80(杰)回复于 2001-01-29 20:10:00 得分 0
谢谢,问题已经解决了Top
4 楼jie80(杰)回复于 2001-01-29 20:15:00 得分 0
谢谢大家
Top




