summaryrefslogtreecommitdiff
path: root/source3/utils/net_rpc_service.c
diff options
context:
space:
mode:
authorGerald Carter <jerry@samba.org>2007-05-31 17:24:30 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:23:01 -0500
commitd99f4f004ca46e4c0f2e60a231a14708a128f0f2 (patch)
tree4a6cfa91d9ffbc137249260ace6f4a59525cfac6 /source3/utils/net_rpc_service.c
parenteec5e026adb176ad48b1ebcb0ddf71bbb609ad95 (diff)
downloadsamba-d99f4f004ca46e4c0f2e60a231a14708a128f0f2.tar.gz
samba-d99f4f004ca46e4c0f2e60a231a14708a128f0f2.tar.bz2
samba-d99f4f004ca46e4c0f2e60a231a14708a128f0f2.zip
r23271: merge service control pidl change for CloseServiceHandle() from SAMBA_3_0_26
(This used to be commit 0b1bc3521fac52f3164b6cc9e053abc3ceabf5e7)
Diffstat (limited to 'source3/utils/net_rpc_service.c')
-rw-r--r--source3/utils/net_rpc_service.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/source3/utils/net_rpc_service.c b/source3/utils/net_rpc_service.c
index 58a5b27f40..c0b1fe3515 100644
--- a/source3/utils/net_rpc_service.c
+++ b/source3/utils/net_rpc_service.c
@@ -49,7 +49,7 @@ static WERROR query_service_state(struct rpc_pipe_client *pipe_hnd,
*state = service_status.state;
}
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hService );
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hService);
return result;
}
@@ -131,7 +131,7 @@ static WERROR control_service(struct rpc_pipe_client *pipe_hnd,
d_printf("%s service is %s.\n", service, svc_status_string(state));
done:
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hService );
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hService);
return result;
}
@@ -185,7 +185,7 @@ static NTSTATUS rpc_service_list_internal(const DOM_SID *domain_sid,
}
done:
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hSCM );
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hSCM);
return werror_to_ntstatus(result);
}
@@ -286,8 +286,8 @@ static NTSTATUS rpc_service_status_internal(const DOM_SID *domain_sid,
}
done:
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hService );
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hSCM );
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hService);
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hSCM);
return werror_to_ntstatus(result);
}
@@ -325,7 +325,7 @@ static NTSTATUS rpc_service_stop_internal(const DOM_SID *domain_sid,
result = control_service(pipe_hnd, mem_ctx, &hSCM, servicename,
SVCCTL_CONTROL_STOP, SVCCTL_STOPPED );
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hSCM );
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hSCM);
return werror_to_ntstatus(result);
}
@@ -363,7 +363,7 @@ static NTSTATUS rpc_service_pause_internal(const DOM_SID *domain_sid,
result = control_service(pipe_hnd, mem_ctx, &hSCM, servicename,
SVCCTL_CONTROL_PAUSE, SVCCTL_PAUSED );
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hSCM );
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hSCM);
return werror_to_ntstatus(result);
}
@@ -401,7 +401,7 @@ static NTSTATUS rpc_service_resume_internal(const DOM_SID *domain_sid,
result = control_service(pipe_hnd, mem_ctx, &hSCM, servicename,
SVCCTL_CONTROL_CONTINUE, SVCCTL_RUNNING );
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hSCM );
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hSCM);
return werror_to_ntstatus(result);
}
@@ -463,8 +463,8 @@ static NTSTATUS rpc_service_start_internal(const DOM_SID *domain_sid,
d_fprintf(stderr, "Failed to start service: %s [%s]\n", servicename, dos_errstr(result) );
done:
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hService );
- rpccli_svcctl_close_service(pipe_hnd, mem_ctx, &hSCM );
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hService);
+ rpccli_svcctl_CloseServiceHandle(pipe_hnd, mem_ctx, &hSCM);
return werror_to_ntstatus(result);
}