8388877dd1d3c3e19a04cde6715b5e18956fc46e
[ira/wip.git] / source3 / include / rpc_lsa.h
1 /* 
2    Unix SMB/Netbios implementation.
3    SMB parameters and setup
4    Copyright (C) Andrew Tridgell 1992-1997
5    Copyright (C) Luke Kenneth Casson Leighton 1996-1997
6    Copyright (C) Paul Ashton 1997
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 #ifndef _RPC_LSA_H /* _RPC_LSA_H */
24 #define _RPC_LSA_H 
25
26 #include "rpc_misc.h"
27
28 enum SID_NAME_USE
29 {
30         SID_NAME_USE_NONE = 0,/* NOTUSED */
31         SID_NAME_USER    = 1, /* user */
32         SID_NAME_DOM_GRP = 2, /* domain group */
33         SID_NAME_DOMAIN  = 3, /* domain: don't know what this is */
34         SID_NAME_ALIAS   = 4, /* local group */
35         SID_NAME_WKN_GRP = 5, /* well-known group */
36         SID_NAME_DELETED = 6, /* deleted account: needed for c2 rating */
37         SID_NAME_INVALID = 7, /* invalid account */
38         SID_NAME_UNKNOWN = 8  /* oops. */
39 };
40
41 /* Opcodes available on PIPE_LSARPC */
42
43 #define LSA_CLOSE              0x00
44 #define LSA_DELETE             0x01
45 #define LSA_ENUM_PRIVS         0x02
46 #define LSA_QUERYSECOBJ        0x03
47 #define LSA_SETSECOBJ          0x04
48 #define LSA_CHANGEPASSWORD     0x05
49 #define LSA_OPENPOLICY         0x06
50 #define LSA_QUERYINFOPOLICY    0x07
51 #define LSA_SETINFOPOLICY      0x08
52 #define LSA_CLEARAUDITLOG      0x09
53 #define LSA_CREATEACCOUNT      0x0a
54 #define LSA_ENUM_ACCOUNTS      0x0b
55 #define LSA_CREATETRUSTDOM     0x0c
56 #define LSA_ENUMTRUSTDOM       0x0d
57 #define LSA_LOOKUPNAMES        0x0e
58 #define LSA_LOOKUPSIDS         0x0f
59 #define LSA_CREATESECRET       0x10
60 #define LSA_OPENACCOUNT        0x11
61 #define LSA_ENUMPRIVSACCOUNT   0x12
62 #define LSA_ADDPRIVS           0x13
63 #define LSA_REMOVEPRIVS        0x14
64 #define LSA_GETQUOTAS          0x15
65 #define LSA_SETQUOTAS          0x16
66 #define LSA_GETSYSTEMACCOUNT   0x17
67 #define LSA_SETSYSTEMACCOUNT   0x18
68 #define LSA_OPENTRUSTDOM       0x19
69 #define LSA_QUERYTRUSTDOM      0x1a
70 #define LSA_SETINFOTRUSTDOM    0x1b
71 #define LSA_OPENSECRET         0x1c
72 #define LSA_SETSECRET          0x1d
73 #define LSA_QUERYSECRET        0x1e
74 #define LSA_LOOKUPPRIVVALUE    0x1f
75 #define LSA_LOOKUPPRIVNAME     0x20
76 #define LSA_PRIV_GET_DISPNAME  0x21
77 #define LSA_DELETEOBJECT       0x22
78 #define LSA_ENUMACCTWITHRIGHT  0x23
79 #define LSA_ENUMACCTRIGHTS     0x24
80 #define LSA_ADDACCTRIGHTS      0x25
81 #define LSA_REMOVEACCTRIGHTS   0x26
82 #define LSA_QUERYTRUSTDOMINFO  0x27
83 #define LSA_SETTRUSTDOMINFO    0x28
84 #define LSA_DELETETRUSTDOM     0x29
85 #define LSA_STOREPRIVDATA      0x2a
86 #define LSA_RETRPRIVDATA       0x2b
87 #define LSA_OPENPOLICY2        0x2c
88 #define LSA_UNK_GET_CONNUSER   0x2d /* LsaGetConnectedCredentials ? */
89
90 /* XXXX these are here to get a compile! */
91 #define LSA_LOOKUPRIDS      0xFD
92
93 /* DOM_QUERY - info class 3 and 5 LSA Query response */
94 typedef struct dom_query_info
95 {
96   uint16 uni_dom_max_len; /* domain name string length * 2 */
97   uint16 uni_dom_str_len; /* domain name string length * 2 */
98   uint32 buffer_dom_name; /* undocumented domain name string buffer pointer */
99   uint32 buffer_dom_sid; /* undocumented domain SID string buffer pointer */
100   UNISTR2 uni_domain_name; /* domain name (unicode string) */
101   DOM_SID2 dom_sid; /* domain SID */
102
103 } DOM_QUERY;
104
105 /* level 5 is same as level 3. */
106 typedef DOM_QUERY DOM_QUERY_3;
107 typedef DOM_QUERY DOM_QUERY_5;
108
109 /* level 2 is auditing settings */
110 typedef struct dom_query_2
111 {
112         uint32 auditing_enabled;
113         uint32 count1; /* usualy 7, at least on nt4sp4 */
114         uint32 count2; /* the same */
115         uint32 *auditsettings;
116 } DOM_QUERY_2;
117
118 /* level 6 is server role information */
119 typedef struct dom_query_6
120 {
121         uint16 server_role; /* 2=backup, 3=primary */
122 } DOM_QUERY_6;
123
124 typedef struct seq_qos_info
125 {
126         uint32 len; /* 12 */
127         uint16 sec_imp_level; /* 0x02 - impersonation level */
128         uint8  sec_ctxt_mode; /* 0x01 - context tracking mode */
129         uint8  effective_only; /* 0x00 - effective only */
130
131 } LSA_SEC_QOS;
132
133 typedef struct obj_attr_info
134 {
135         uint32 len;          /* 0x18 - length (in bytes) inc. the length field. */
136         uint32 ptr_root_dir; /* 0 - root directory (pointer) */
137         uint32 ptr_obj_name; /* 0 - object name (pointer) */
138         uint32 attributes;   /* 0 - attributes (undocumented) */
139         uint32 ptr_sec_desc; /* 0 - security descriptior (pointer) */
140         uint32 ptr_sec_qos;  /* security quality of service */
141         LSA_SEC_QOS *sec_qos;
142
143 } LSA_OBJ_ATTR;
144
145 /* LSA_Q_OPEN_POL - LSA Query Open Policy */
146 typedef struct lsa_q_open_pol_info
147 {
148         uint32 ptr;         /* undocumented buffer pointer */
149         uint16 system_name; /* 0x5c - system name */
150         LSA_OBJ_ATTR attr ; /* object attributes */
151
152         uint32 des_access; /* desired access attributes */
153
154 } LSA_Q_OPEN_POL;
155
156 /* LSA_R_OPEN_POL - response to LSA Open Policy */
157 typedef struct lsa_r_open_pol_info
158 {
159         POLICY_HND pol; /* policy handle */
160         NTSTATUS status; /* return code */
161
162 } LSA_R_OPEN_POL;
163
164 /* LSA_Q_OPEN_POL2 - LSA Query Open Policy */
165 typedef struct lsa_q_open_pol2_info
166 {
167         uint32       ptr;             /* undocumented buffer pointer */
168         UNISTR2      uni_server_name; /* server name, starting with two '\'s */
169         LSA_OBJ_ATTR attr           ; /* object attributes */
170
171         uint32 des_access; /* desired access attributes */
172
173 } LSA_Q_OPEN_POL2;
174
175 /* LSA_R_OPEN_POL2 - response to LSA Open Policy */
176 typedef struct lsa_r_open_pol2_info
177 {
178         POLICY_HND pol; /* policy handle */
179         NTSTATUS status; /* return code */
180
181 } LSA_R_OPEN_POL2;
182
183
184 #define POLICY_VIEW_LOCAL_INFORMATION    0x00000001
185 #define POLICY_VIEW_AUDIT_INFORMATION    0x00000002
186 #define POLICY_GET_PRIVATE_INFORMATION   0x00000004
187 #define POLICY_TRUST_ADMIN               0x00000008
188 #define POLICY_CREATE_ACCOUNT            0x00000010
189 #define POLICY_CREATE_SECRET             0x00000020
190 #define POLICY_CREATE_PRIVILEGE          0x00000040
191 #define POLICY_SET_DEFAULT_QUOTA_LIMITS  0x00000080
192 #define POLICY_SET_AUDIT_REQUIREMENTS    0x00000100
193 #define POLICY_AUDIT_LOG_ADMIN           0x00000200
194 #define POLICY_SERVER_ADMIN              0x00000400
195 #define POLICY_LOOKUP_NAMES              0x00000800
196
197 #define POLICY_ALL_ACCESS ( STANDARD_RIGHTS_REQUIRED_ACCESS  |\
198                             POLICY_VIEW_LOCAL_INFORMATION    |\
199                             POLICY_VIEW_AUDIT_INFORMATION    |\
200                             POLICY_GET_PRIVATE_INFORMATION   |\
201                             POLICY_TRUST_ADMIN               |\
202                             POLICY_CREATE_ACCOUNT            |\
203                             POLICY_CREATE_SECRET             |\
204                             POLICY_CREATE_PRIVILEGE          |\
205                             POLICY_SET_DEFAULT_QUOTA_LIMITS  |\
206                             POLICY_SET_AUDIT_REQUIREMENTS    |\
207                             POLICY_AUDIT_LOG_ADMIN           |\
208                             POLICY_SERVER_ADMIN              |\
209                             POLICY_LOOKUP_NAMES )
210
211
212 #define POLICY_READ       ( STANDARD_RIGHTS_READ_ACCESS      |\
213                             POLICY_VIEW_AUDIT_INFORMATION    |\
214                             POLICY_GET_PRIVATE_INFORMATION)
215
216 #define POLICY_WRITE      ( STANDARD_RIGHTS_WRITE_ACCESS     |\
217                             POLICY_TRUST_ADMIN               |\
218                             POLICY_CREATE_ACCOUNT            |\
219                             POLICY_CREATE_SECRET             |\
220                             POLICY_CREATE_PRIVILEGE          |\
221                             POLICY_SET_DEFAULT_QUOTA_LIMITS  |\
222                             POLICY_SET_AUDIT_REQUIREMENTS    |\
223                             POLICY_AUDIT_LOG_ADMIN           |\
224                             POLICY_SERVER_ADMIN)
225
226 #define POLICY_EXECUTE    ( STANDARD_RIGHTS_EXECUTE_ACCESS   |\
227                             POLICY_VIEW_LOCAL_INFORMATION    |\
228                             POLICY_LOOKUP_NAMES )
229
230 /* LSA_Q_QUERY_SEC_OBJ - LSA query security */
231 typedef struct lsa_query_sec_obj_info
232 {
233         POLICY_HND pol; /* policy handle */
234         uint32 sec_info;
235
236 } LSA_Q_QUERY_SEC_OBJ;
237
238 /* LSA_R_QUERY_SEC_OBJ - probably an open */
239 typedef struct r_lsa_query_sec_obj_info
240 {
241         uint32 ptr;
242         SEC_DESC_BUF *buf;
243
244         NTSTATUS status;         /* return status */
245
246 } LSA_R_QUERY_SEC_OBJ;
247
248 /* LSA_Q_QUERY_INFO - LSA query info policy */
249 typedef struct lsa_query_info
250 {
251         POLICY_HND pol; /* policy handle */
252     uint16 info_class; /* info class */
253
254 } LSA_Q_QUERY_INFO;
255
256 /* LSA_INFO_UNION */
257 typedef union lsa_info_union
258 {
259         DOM_QUERY_2 id2;
260         DOM_QUERY_3 id3;
261         DOM_QUERY_5 id5;
262         DOM_QUERY_6 id6;
263 } LSA_INFO_UNION;
264
265 /* LSA_R_QUERY_INFO - response to LSA query info policy */
266 typedef struct lsa_r_query_info
267 {
268     uint32 undoc_buffer; /* undocumented buffer pointer */
269     uint16 info_class; /* info class (same as info class in request) */
270    
271         LSA_INFO_UNION dom; 
272
273         NTSTATUS status; /* return code */
274
275 } LSA_R_QUERY_INFO;
276
277 /* LSA_Q_ENUM_TRUST_DOM - LSA enumerate trusted domains */
278 typedef struct lsa_enum_trust_dom_info
279 {
280         POLICY_HND pol; /* policy handle */
281     uint32 enum_context; /* enumeration context handle */
282     uint32 preferred_len; /* preferred maximum length */
283
284 } LSA_Q_ENUM_TRUST_DOM;
285
286 /* LSA_R_ENUM_TRUST_DOM - response to LSA enumerate trusted domains */
287 typedef struct lsa_r_enum_trust_dom_info
288 {
289         uint32 enum_context; /* enumeration context handle */
290         uint32 num_domains; /* number of domains */
291         uint32 ptr_enum_domains; /* buffer pointer to num domains */
292
293         /* this lot is only added if ptr_enum_domains is non-NULL */
294         uint32 num_domains2; /* number of domains */
295         UNIHDR2 *hdr_domain_name;
296         UNISTR2 *uni_domain_name;
297         DOM_SID2 *domain_sid;
298
299         NTSTATUS status; /* return code */
300
301 } LSA_R_ENUM_TRUST_DOM;
302
303 /* LSA_Q_CLOSE */
304 typedef struct lsa_q_close_info
305 {
306         POLICY_HND pol; /* policy handle */
307
308 } LSA_Q_CLOSE;
309
310 /* LSA_R_CLOSE */
311 typedef struct lsa_r_close_info
312 {
313         POLICY_HND pol; /* policy handle.  should be all zeros. */
314
315         NTSTATUS status; /* return code */
316
317 } LSA_R_CLOSE;
318
319
320 #define MAX_REF_DOMAINS 32
321
322 /* DOM_TRUST_HDR */
323 typedef struct dom_trust_hdr
324 {
325         UNIHDR hdr_dom_name; /* referenced domain unicode string headers */
326         uint32 ptr_dom_sid;
327
328 } DOM_TRUST_HDR;
329         
330 /* DOM_TRUST_INFO */
331 typedef struct dom_trust_info
332 {
333         UNISTR2  uni_dom_name; /* domain name unicode string */
334         DOM_SID2 ref_dom     ; /* referenced domain SID */
335
336 } DOM_TRUST_INFO;
337         
338 /* DOM_R_REF */
339 typedef struct dom_ref_info
340 {
341     uint32 num_ref_doms_1; /* num referenced domains */
342     uint32 ptr_ref_dom; /* pointer to referenced domains */
343     uint32 max_entries; /* 32 - max number of entries */
344     uint32 num_ref_doms_2; /* num referenced domains */
345
346     DOM_TRUST_HDR  hdr_ref_dom[MAX_REF_DOMAINS]; /* referenced domains */
347     DOM_TRUST_INFO ref_dom    [MAX_REF_DOMAINS]; /* referenced domains */
348
349 } DOM_R_REF;
350
351 /* the domain_idx points to a SID associated with the name */
352
353 /* LSA_TRANS_NAME - translated name */
354 typedef struct lsa_trans_name_info
355 {
356         uint16 sid_name_use; /* value is 5 for a well-known group; 2 for a domain group; 1 for a user... */
357         UNIHDR hdr_name; 
358         uint32 domain_idx; /* index into DOM_R_REF array of SIDs */
359
360 } LSA_TRANS_NAME;
361
362 /* This number purly arbitary - just to prevent a client from requesting large amounts of memory */
363 #define MAX_LOOKUP_SIDS 256
364
365 /* LSA_TRANS_NAME_ENUM - LSA Translated Name Enumeration container */
366 typedef struct lsa_trans_name_enum_info
367 {
368         uint32 num_entries;
369         uint32 ptr_trans_names;
370         uint32 num_entries2;
371         
372         LSA_TRANS_NAME *name; /* translated names  */
373         UNISTR2 *uni_name;
374
375 } LSA_TRANS_NAME_ENUM;
376
377 /* LSA_SID_ENUM - LSA SID enumeration container */
378 typedef struct lsa_sid_enum_info
379 {
380         uint32 num_entries;
381         uint32 ptr_sid_enum;
382         uint32 num_entries2;
383         
384         uint32 *ptr_sid; /* domain SID pointers to be looked up. */
385         DOM_SID2 *sid; /* domain SIDs to be looked up. */
386
387 } LSA_SID_ENUM;
388
389 /* LSA_Q_LOOKUP_SIDS - LSA Lookup SIDs */
390 typedef struct lsa_q_lookup_sids
391 {
392         POLICY_HND          pol; /* policy handle */
393         LSA_SID_ENUM        sids;
394         LSA_TRANS_NAME_ENUM names;
395         LOOKUP_LEVEL        level;
396         uint32              mapped_count;
397
398 } LSA_Q_LOOKUP_SIDS;
399
400 /* LSA_R_LOOKUP_SIDS - response to LSA Lookup SIDs */
401 typedef struct lsa_r_lookup_sids
402 {
403         uint32              ptr_dom_ref;
404         DOM_R_REF           *dom_ref; /* domain reference info */
405
406         LSA_TRANS_NAME_ENUM *names;
407         uint32              mapped_count;
408
409         NTSTATUS            status; /* return code */
410
411 } LSA_R_LOOKUP_SIDS;
412
413 /* LSA_Q_LOOKUP_NAMES - LSA Lookup NAMEs */
414 typedef struct lsa_q_lookup_names
415 {
416         POLICY_HND pol; /* policy handle */
417         uint32 num_entries;
418         uint32 num_entries2;
419         UNIHDR  *hdr_name; /* name buffer pointers */
420         UNISTR2 *uni_name; /* names to be looked up */
421
422         uint32 num_trans_entries;
423         uint32 ptr_trans_sids; /* undocumented domain SID buffer pointer */
424         uint32 lookup_level;
425         uint32 mapped_count;
426
427 } LSA_Q_LOOKUP_NAMES;
428
429 /* LSA_R_LOOKUP_NAMES - response to LSA Lookup NAMEs by name */
430 typedef struct lsa_r_lookup_names
431 {
432         uint32 ptr_dom_ref;
433         DOM_R_REF *dom_ref; /* domain reference info */
434
435         uint32 num_entries;
436         uint32 ptr_entries;
437         uint32 num_entries2;
438         DOM_RID2 *dom_rid; /* domain RIDs being looked up */
439
440         uint32 mapped_count;
441
442         NTSTATUS status; /* return code */
443 } LSA_R_LOOKUP_NAMES;
444
445 /* This is probably a policy handle but at the moment we
446    never read it - so use a dummy struct. */
447
448 typedef struct lsa_q_open_secret
449 {
450         uint32 dummy;
451 } LSA_Q_OPEN_SECRET;
452
453 /* We always return "not found" at present - so just marshal the minimum. */
454
455 typedef struct lsa_r_open_secret
456 {
457         uint32 dummy1;
458         uint32 dummy2;
459         uint32 dummy3;
460         uint32 dummy4;
461         NTSTATUS status;
462 } LSA_R_OPEN_SECRET;
463
464 typedef struct lsa_enum_priv_entry
465 {
466         UNIHDR hdr_name;
467         uint32 luid_low;
468         uint32 luid_high;
469         UNISTR2 name;
470         
471 } LSA_PRIV_ENTRY;
472
473 /* LSA_Q_ENUM_PRIVS - LSA enum privileges */
474 typedef struct lsa_q_enum_privs
475 {
476         POLICY_HND pol; /* policy handle */
477         uint32 enum_context;
478         uint32 pref_max_length;
479 } LSA_Q_ENUM_PRIVS;
480
481 typedef struct lsa_r_enum_privs
482 {
483         uint32 enum_context;
484         uint32 count;
485         uint32 ptr;
486         uint32 count1;
487
488         LSA_PRIV_ENTRY *privs;
489
490         NTSTATUS status;
491 } LSA_R_ENUM_PRIVS;
492
493 /* LSA_Q_PRIV_GET_DISPNAME - LSA get privilege display name */
494 typedef struct lsa_q_priv_get_dispname
495 {
496         POLICY_HND pol; /* policy handle */
497         UNIHDR hdr_name;
498         UNISTR2 name;
499         uint16 lang_id;
500         uint16 lang_id_sys;
501 } LSA_Q_PRIV_GET_DISPNAME;
502
503 typedef struct lsa_r_priv_get_dispname
504 {
505         uint32 ptr_info;
506         UNIHDR hdr_desc;
507         UNISTR2 desc;
508         /* Don't align ! */
509         uint16 lang_id;
510         /* align */
511         NTSTATUS status;
512 } LSA_R_PRIV_GET_DISPNAME;
513
514 /* LSA_Q_ENUM_ACCOUNTS */
515 typedef struct lsa_q_enum_accounts
516 {
517         POLICY_HND pol; /* policy handle */
518         uint32 enum_context;
519         uint32 pref_max_length;
520 } LSA_Q_ENUM_ACCOUNTS;
521
522 /* LSA_R_ENUM_ACCOUNTS */
523 typedef struct lsa_r_enum_accounts
524 {
525         uint32 enum_context;
526         LSA_SID_ENUM sids;
527         NTSTATUS status;
528 } LSA_R_ENUM_ACCOUNTS;
529
530 /* LSA_Q_UNK_GET_CONNUSER - gets username\domain of connected user
531                   called when "Take Ownership" is clicked -SK */
532 typedef struct lsa_q_unk_get_connuser
533 {
534   uint32 ptr_srvname;
535   UNISTR2 uni2_srvname;
536   uint32 unk1; /* 3 unknown uint32's are seen right after uni2_srvname */
537   uint32 unk2; /* unk2 appears to be a ptr, unk1 = unk3 = 0 usually */
538   uint32 unk3; 
539 } LSA_Q_UNK_GET_CONNUSER;
540
541 /* LSA_R_UNK_GET_CONNUSER */
542 typedef struct lsa_r_unk_get_connuser
543 {
544   uint32 ptr_user_name;
545   UNIHDR hdr_user_name;
546   UNISTR2 uni2_user_name;
547   
548   uint32 unk1;
549   
550   uint32 ptr_dom_name;
551   UNIHDR hdr_dom_name;
552   UNISTR2 uni2_dom_name;
553
554   NTSTATUS status;
555 } LSA_R_UNK_GET_CONNUSER;
556
557
558 typedef struct lsa_q_openaccount
559 {
560         POLICY_HND pol; /* policy handle */
561         DOM_SID2 sid;
562         uint32 access; /* desired access */
563 } LSA_Q_OPENACCOUNT;
564
565 typedef struct lsa_r_openaccount
566 {
567         POLICY_HND pol; /* policy handle */
568         NTSTATUS status;
569 } LSA_R_OPENACCOUNT;
570
571 typedef struct lsa_q_enumprivsaccount
572 {
573         POLICY_HND pol; /* policy handle */
574 } LSA_Q_ENUMPRIVSACCOUNT;
575
576
577 typedef struct LUID
578 {
579         uint32 low;
580         uint32 high;
581 } LUID;
582
583 typedef struct LUID_ATTR
584 {
585         LUID luid;
586         uint32 attr;
587 } LUID_ATTR ;
588
589 typedef struct privilege_set
590 {
591         uint32 count;
592         uint32 control;
593         LUID_ATTR *set;
594 } PRIVILEGE_SET;
595
596 typedef struct lsa_r_enumprivsaccount
597 {
598         uint32 ptr;
599         uint32 count;
600         PRIVILEGE_SET set;
601         NTSTATUS status;
602 } LSA_R_ENUMPRIVSACCOUNT;
603
604 typedef struct lsa_q_getsystemaccount
605 {
606         POLICY_HND pol; /* policy handle */
607 } LSA_Q_GETSYSTEMACCOUNT;
608
609 typedef struct lsa_r_getsystemaccount
610 {
611         uint32 access;
612         NTSTATUS status;
613 } LSA_R_GETSYSTEMACCOUNT;
614
615
616 typedef struct lsa_q_setsystemaccount
617 {
618         POLICY_HND pol; /* policy handle */
619         uint32 access;
620 } LSA_Q_SETSYSTEMACCOUNT;
621
622 typedef struct lsa_r_setsystemaccount
623 {
624         NTSTATUS status;
625 } LSA_R_SETSYSTEMACCOUNT;
626
627
628 typedef struct lsa_q_lookupprivvalue
629 {
630         POLICY_HND pol; /* policy handle */
631         UNIHDR hdr_right;
632         UNISTR2 uni2_right;
633 } LSA_Q_LOOKUPPRIVVALUE;
634
635 typedef struct lsa_r_lookupprivvalue
636 {
637         LUID luid;
638         NTSTATUS status;
639 } LSA_R_LOOKUPPRIVVALUE;
640
641
642 typedef struct lsa_q_addprivs
643 {
644         POLICY_HND pol; /* policy handle */
645         uint32 count;
646         PRIVILEGE_SET set;
647 } LSA_Q_ADDPRIVS;
648
649 typedef struct lsa_r_addprivs
650 {
651         NTSTATUS status;
652 } LSA_R_ADDPRIVS;
653
654
655 typedef struct lsa_q_removeprivs
656 {
657         POLICY_HND pol; /* policy handle */
658         uint32 allrights;
659         uint32 ptr;
660         uint32 count;
661         PRIVILEGE_SET set;
662 } LSA_Q_REMOVEPRIVS;
663
664 typedef struct lsa_r_removeprivs
665 {
666         NTSTATUS status;
667 } LSA_R_REMOVEPRIVS;
668
669
670 #endif /* _RPC_LSA_H */
671
672