VC6.0#include <windows.h>
//#include <conio.h>
#include <stdio.h>
int main(int argc, char* argv[])
{
SC_HANDLE hScHandle=0;
SC_HANDLE hSerHandle=0 ;
hScHandle = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if(hScHandle!=NULL)hSerHandle=OpenService(hScHandle,"Telephony",
SRVICE_STOP|SERVICE_QUERY_STATUS); printf("%d",hSerHandle);
return 0;
}OPENSERVICE()怎么返回句柄为0
//#include <conio.h>
#include <stdio.h>
int main(int argc, char* argv[])
{
SC_HANDLE hScHandle=0;
SC_HANDLE hSerHandle=0 ;
hScHandle = OpenSCManager(NULL, NULL, SC_MANAGER_ALL_ACCESS);
if(hScHandle!=NULL)hSerHandle=OpenService(hScHandle,"Telephony",
SRVICE_STOP|SERVICE_QUERY_STATUS); printf("%d",hSerHandle);
return 0;
}OPENSERVICE()怎么返回句柄为0
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货