Example #1
0
static bool test_InqObject(struct torture_context *tctx, struct dcerpc_pipe *p)
{
	NTSTATUS status;
	struct epm_InqObject r;

	r.in.epm_object = talloc(tctx, struct GUID);
	*r.in.epm_object = ndr_table_epmapper.syntax_id.uuid;

	status = dcerpc_epm_InqObject(p, tctx, &r);
	torture_assert_ntstatus_ok(tctx, status, "InqObject failed");

	return true;
}
Example #2
0
static BOOL test_InqObject(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx)
{
	NTSTATUS status;
	struct epm_InqObject r;

	r.in.epm_object = talloc(mem_ctx, struct GUID);
	*r.in.epm_object = dcerpc_table_epmapper.syntax_id.uuid;

	status = dcerpc_epm_InqObject(p, mem_ctx, &r);
	if (NT_STATUS_IS_ERR(status)) {
		printf("InqObject failed - %s\n", nt_errstr(status));
		return False;
	}

	return True;
}