CloseService function
关闭指定服务句柄
Function:
bool UAPI CloseService(
int hService
);
Parameters:
- (int) hService:服务句柄
Return value:
- Type:BOOL
- Text:成功返回 TRUE,失败返回 FALSE
Remarks:
参数 hService 应为 CreateService function 所返回,否则可能导致函数失败
服务句柄与内核对象关联,CloseService function 会减少内核对象的引用计数,当内核对象引用计数为 NULL 时,则该内核对象将会被自动关闭,服务将被销毁