+ -
当前位置:首页 → 问答吧 → CloseServiceHandle关闭的是什么?

CloseServiceHandle关闭的是什么?

时间:2011-08-16

来源:互联网

CloseServiceHandle关闭的是什么
A handle to the service control manager object or the service object to close. Handles to service control manager objects are returned by the OpenSCManager function, and handles to service objects are returned by either the OpenService or CreateService function.
翻译过来的不怎么理解 , 它会关闭那个句柄指向的服务还是什么?

作者: FranticBlack   发布时间: 2011-08-16

按照惯例,这样的函数关闭/销毁的就是句柄,跟服务没有直接关系。

作者: AisaC   发布时间: 2011-08-17

一般是关闭设备的句柄或端口什么的

作者: asftrhgjhkjlkttttttt   发布时间: 2011-08-17

翻译:
关闭一个句柄,这个句柄可能是指向服务控制管理对象的句柄,也可能是指向服务对象的句柄。第一种,指向服务控制管理对象的句柄,由OpenSCManager返回的句柄。第二种,指向服务对象的句柄,由OpenService或者CreateService返回的句柄。

作者: AisaC   发布时间: 2011-08-17

热门下载

更多