Example #1
0
static NTSTATUS svc_CloseServiceHandle(struct dcerpc_binding_handle *binding_handle,
				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_r(binding_handle, NULL, &r);
	return status;
}
Example #2
0
static bool test_CloseServiceHandle(struct dcerpc_binding_handle *b,
				    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_r(b, tctx, &r),
				   "CloseServiceHandle failed");

	return true;
}