- corrected some lsa idl
[samba.git] / source / librpc / ndr / ndr_lsa.h
1 /* 
2    Unix SMB/CIFS implementation.
3
4    definitions for marshalling/unmarshalling the lsa pipe
5
6    Copyright (C) Andrew Tridgell 2003
7    
8    This program is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2 of the License, or
11    (at your option) any later version.
12    
13    This program is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17    
18    You should have received a copy of the GNU General Public License
19    along with this program; if not, write to the Free Software
20    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */
22
23 /* header auto-generated by pidl */
24
25 struct lsa_QosInfo {
26         uint16 impersonation_level;
27         uint8 context_mode;
28         uint8 effective_only;
29 };
30
31 struct lsa_ObjectAttribute {
32         uint8 *root_dir;
33         const char *object_name;
34         uint32 attributes;
35         struct security_descriptor *sec_desc;
36         struct lsa_QosInfo *sec_qos;
37 };
38
39 struct lsa_OpenPolicy {
40         struct {
41                 uint16 *system_name;
42                 struct lsa_ObjectAttribute *attr;
43                 uint32 desired_access;
44         } in;
45
46         struct {
47                 struct policy_handle *handle;
48                 NTSTATUS result;
49         } out;
50
51 };
52
53 struct lsa_OpenPolicy2 {
54         struct {
55                 const char *system_name;
56                 struct lsa_ObjectAttribute *attr;
57                 uint32 desired_access;
58         } in;
59
60         struct {
61                 struct policy_handle *handle;
62                 NTSTATUS result;
63         } out;
64
65 };
66
67 struct lsa_SidPtr {
68         struct dom_sid2 *sid;
69 };
70
71 struct lsa_SidArray {
72         uint32 num_sids;
73         struct lsa_SidPtr *sids;
74 };
75
76 struct lsa_EnumSids {
77         struct {
78                 struct policy_handle *handle;
79                 uint32 resume_handle;
80                 uint32 num_entries;
81         } in;
82
83         struct {
84                 uint32 resume_handle;
85                 struct lsa_SidArray *sids;
86                 NTSTATUS result;
87         } out;
88
89 };
90
91