def te_REnumServiceGroupW(self): dce, rpctransport, scHandle = self.connect() dwServiceType = scmr.SERVICE_WIN32_OWN_PROCESS dwServiceState = scmr.SERVICE_STATE_ALL cbBufSize = 10 lpResumeIndex = 0 pszGroupName = 'RemoteRegistry\x00' try: resp = scmr.hREnumServiceGroupW(dce, scHandle, dwServiceType, dwServiceState, cbBufSize, lpResumeIndex, pszGroupName ) resp.dump() except Exception, e: if str(e).find('ERROR_SERVICE_DOES_NOT_EXISTS') <= 0: raise
def test_REnumServiceGroupW(self): dce, rpc_transport = self.connect() scHandle = self.get_service_handle(dce) dwServiceType = scmr.SERVICE_WIN32_OWN_PROCESS dwServiceState = scmr.SERVICE_STATE_ALL cbBufSize = 10 lpResumeIndex = 0 pszGroupName = 'RemoteRegistry\x00' try: resp = scmr.hREnumServiceGroupW(dce, scHandle, dwServiceType, dwServiceState, cbBufSize, lpResumeIndex, pszGroupName) resp.dump() except scmr.DCERPCSessionError as e: if str(e).find('ERROR_SERVICE_DOES_NOT_EXISTS') <= 0: raise scmr.hRCloseServiceHandle(dce, scHandle)