1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
|
/* dcerpc client calls generated by pidl */
#include "includes.h"
NTSTATUS dcerpc_dfs_Exist(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Exist *r)
{
NTSTATUS status;
if (p->flags & DCERPC_DEBUG_PRINT_IN) {
NDR_PRINT_IN_DEBUG(dfs_Exist, r);
}
status = dcerpc_ndr_request(p, DCERPC_DFS_EXIST, mem_ctx,
(ndr_push_fn_t) ndr_push_dfs_Exist,
(ndr_pull_fn_t) ndr_pull_dfs_Exist,
r);
if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
NDR_PRINT_OUT_DEBUG(dfs_Exist, r);
}
return status;
}
NTSTATUS dcerpc_dfs_Add(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Add *r)
{
NTSTATUS status;
if (p->flags & DCERPC_DEBUG_PRINT_IN) {
NDR_PRINT_IN_DEBUG(dfs_Add, r);
}
status = dcerpc_ndr_request(p, DCERPC_DFS_ADD, mem_ctx,
(ndr_push_fn_t) ndr_push_dfs_Add,
(ndr_pull_fn_t) ndr_pull_dfs_Add,
r);
if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
NDR_PRINT_OUT_DEBUG(dfs_Add, r);
}
if (NT_STATUS_IS_OK(status)) status = r->out.result;
return status;
}
NTSTATUS dcerpc_dfs_Remove(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Remove *r)
{
NTSTATUS status;
if (p->flags & DCERPC_DEBUG_PRINT_IN) {
NDR_PRINT_IN_DEBUG(dfs_Remove, r);
}
status = dcerpc_ndr_request(p, DCERPC_DFS_REMOVE, mem_ctx,
(ndr_push_fn_t) ndr_push_dfs_Remove,
(ndr_pull_fn_t) ndr_pull_dfs_Remove,
r);
if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
NDR_PRINT_OUT_DEBUG(dfs_Remove, r);
}
if (NT_STATUS_IS_OK(status)) status = r->out.result;
return status;
}
NTSTATUS dcerpc_dfs_SetInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_SetInfo *r)
{
NTSTATUS status;
if (p->flags & DCERPC_DEBUG_PRINT_IN) {
NDR_PRINT_IN_DEBUG(dfs_SetInfo, r);
}
status = dcerpc_ndr_request(p, DCERPC_DFS_SETINFO, mem_ctx,
(ndr_push_fn_t) ndr_push_dfs_SetInfo,
(ndr_pull_fn_t) ndr_pull_dfs_SetInfo,
r);
if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
NDR_PRINT_OUT_DEBUG(dfs_SetInfo, r);
}
if (NT_STATUS_IS_OK(status)) status = r->out.result;
return status;
}
NTSTATUS dcerpc_dfs_GetInfo(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_GetInfo *r)
{
NTSTATUS status;
if (p->flags & DCERPC_DEBUG_PRINT_IN) {
NDR_PRINT_IN_DEBUG(dfs_GetInfo, r);
}
status = dcerpc_ndr_request(p, DCERPC_DFS_GETINFO, mem_ctx,
(ndr_push_fn_t) ndr_push_dfs_GetInfo,
(ndr_pull_fn_t) ndr_pull_dfs_GetInfo,
r);
if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
NDR_PRINT_OUT_DEBUG(dfs_GetInfo, r);
}
if (NT_STATUS_IS_OK(status)) status = r->out.result;
return status;
}
NTSTATUS dcerpc_dfs_Enum(struct dcerpc_pipe *p, TALLOC_CTX *mem_ctx, struct dfs_Enum *r)
{
NTSTATUS status;
if (p->flags & DCERPC_DEBUG_PRINT_IN) {
NDR_PRINT_IN_DEBUG(dfs_Enum, r);
}
status = dcerpc_ndr_request(p, DCERPC_DFS_ENUM, mem_ctx,
(ndr_push_fn_t) ndr_push_dfs_Enum,
(ndr_pull_fn_t) ndr_pull_dfs_Enum,
r);
if (NT_STATUS_IS_OK(status) && (p->flags & DCERPC_DEBUG_PRINT_OUT)) {
NDR_PRINT_OUT_DEBUG(dfs_Enum, r);
}
if (NT_STATUS_IS_OK(status)) status = r->out.result;
return status;
}
|