解决方案 »
- 学识不广,不知道怎么解决这个问题,求大神帮忙看一下
- 奇怪问题,和IE有关
- 微软网站上面为什么找不到visual studio 6.0 的光盘信息,连sha1值都找不到,是不是从来没有正式发不过这个版本呢?
- mfc 打印问题
- vc和网络互连的问题
- 想让多文档窗口的子窗口关闭按纽不可用,怎么写
- 那位兄弟推荐一个比较好的硬盘检测软件。
- 这是什么东西?
- 哪位知道h.263?就是那个图像压缩的玩艺。我导师是给了我源代码
- 怎样写一个泛化的调用dll的方法,例如有10个参数,但不确定这每一个参数具体是神恶魔类型
- VS2005调用VC6.0生成的动态库的问题!!!!!!跪求解决啊!!!
- windows 2003系统发送SYN包,目标地址无法接收,在线等。
The OpenService function opens an existing service. SC_HANDLE OpenService(
SC_HANDLE hSCManager, // handle to SCM database
LPCTSTR lpServiceName, // service name
DWORD dwDesiredAccess // access
);QueryServiceStatus
The QueryServiceStatus function retrieves the current status of the specified service. This function has been superseded by the QueryServiceStatusEx function. QueryServiceStatusEx returns the same information QueryServiceStatus returns, with the addition of the process identifier and additional flags for the service.BOOL QueryServiceStatus(
SC_HANDLE hService, // handle to service
LPSERVICE_STATUS lpServiceStatus // service status
);
sc query DHCP Client
看到:
SERVICE_NAME: DHCP
TYPE : 20 WIN32_SHARE_PROCESS
STATE : 4 RUNNING
(STOPPABLE, NOT_PAUSABLE, ACCEPTS_SHUTDOWN)
WIN32_EXIT_CODE : 0 (0x0)
SERVICE_EXIT_CODE : 0 (0x0)
CHECKPOINT : 0x0
WAIT_HINT : 0x0