def start_service(service_handle, service_arg_count, service_arg_vectors):
"""See: StartService function
https://msdn.microsoft.com/en-us/library/windows/desktop/ms686321(v=vs.85).aspx
"""
StartService_Fn = windll.Advapi32.StartServiceA #BOOL WINAPI StartService(
StartService_Fn.argtypes = [ #
wintypes.SC_HANDLE, # _In_ SC_HANDLE hService,
wintypes.DWORD, # _In_ DWORD dwNumServiceArgs,
LPCTSTR # _In_opt_ LPCTSTR *lpServiceArgVectors
]
StartService_Fn.restype = wintypes.BOOL
bool = StartService_Fn(
service_handle,
service_arg_count,
service_arg_vectors
)
return bool
评论列表
文章目录