NTSTATUS svc_CloseServiceHandle(struct dcerpc_pipe * svc_pipe, struct policy_handle * psvc_handle) { NTSTATUS status; struct svcctl_CloseServiceHandle r; r.in.handle = psvc_handle; r.out.handle = psvc_handle; status = dcerpc_svcctl_CloseServiceHandle(svc_pipe, NULL, &r); return status; }
static bool test_CloseServiceHandle(struct dcerpc_pipe *p, struct torture_context *tctx, struct policy_handle *h) { struct svcctl_CloseServiceHandle r; r.in.handle = h; r.out.handle = h; torture_assert_ntstatus_ok(tctx, dcerpc_svcctl_CloseServiceHandle(p, tctx, &r), "CloseServiceHandle failed"); return true; }
static BOOL test_CloseServiceHandle(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct policy_handle *h) { struct svcctl_CloseServiceHandle r; NTSTATUS status; r.in.handle = h; r.out.handle = h; status = dcerpc_svcctl_CloseServiceHandle(p, mem_ctx, &r); if (!NT_STATUS_IS_OK(status)) { printf("CloseServiceHandle failed\n"); return False; } return True; }