RegisterServiceProcess
The RegisterServiceProcess function registers or unregisters a service process. A service process continues to run after the user logs off. To call RegisterServiceProcess, retrieve a function pointer using GetProcAddress on KERNEL32.DLL. Use the function pointer to call 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.
Return Value
The return value is 1 if successful or 0 if an error occurs.
The RegisterServiceProcess function registers or unregisters a service process. A service process continues to run after the user logs off. To call RegisterServiceProcess, retrieve a function pointer using GetProcAddress on KERNEL32.DLL. Use the function pointer to call 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.
Return Value
The return value is 1 if successful or 0 if an error occurs.
解决方案 »
- Label如何设置快捷键
- 请问怎么从一个窗体传数据(textbox数据)到data report中并打印出呢
- 如何实现想csdn左边的能拉动的框架
- 用activebar的高手请进来,给分手不软!
- 条码扫描设备有没有带回车啊?
- 头痛的问题已多年~~~~~~
- ★[ 聚英堂 ] 请大侠们进来留名
- 如何让Windows只运行一个程序,并不出现Windows画面?
- 谁有公历、农历相互转换的VB源代码?
- 大侠帮我看这篇帖子 http://www.csdn.net/Expert/topic/510/510389.shtm (up者也有分)
- 请问怎样将SStab控件的选项卡(tab)的标签头变成蓝色?
- 在form load完成以后执行,用什么事件?
并且win32api中也没这个函数?