1 /* header auto-generated by pidl */
5 #include "libcli/util/ntstatus.h"
7 #include "librpc/gen_ndr/security.h"
11 #define XATTR_DOSATTRIB_NAME ( "user.DosAttrib" )
12 #define XATTR_DOSATTRIB_ESTIMATED_SIZE ( 64 )
13 #define XATTR_DOSEAS_NAME ( "user.DosEAs" )
14 #define XATTR_DOSSTREAMS_NAME ( "user.DosStreams" )
15 #define XATTR_STREAM_FLAG_INTERNAL ( 0x00000001 )
16 #define XATTR_DOSSTREAM_PREFIX ( "user.DosStream." )
17 #define XATTR_MAX_STREAM_SIZE ( 0x4000 )
18 #define XATTR_MAX_STREAM_SIZE_TDB ( 0x100000 )
19 #define XATTR_NTACL_NAME ( "security.NTACL" )
20 #define XATTR_SD_HASH_SIZE ( 64 )
21 #define XATTR_SD_HASH_TYPE_NONE ( 0x0 )
22 #define XATTR_SD_HASH_TYPE_SHA256 ( 0x1 )
23 struct xattr_DosInfoFFFFCompat
{
27 struct xattr_DosInfo1
{
36 struct xattr_DosInfo2Old
{
45 const char * name
;/* [flag(LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM)] */
48 /* bitmap xattr_DosInfoValidFlags */
49 #define XATTR_DOSINFO_ATTRIB ( 0x00000001 )
50 #define XATTR_DOSINFO_EA_SIZE ( 0x00000002 )
51 #define XATTR_DOSINFO_SIZE ( 0x00000004 )
52 #define XATTR_DOSINFO_ALLOC_SIZE ( 0x00000008 )
53 #define XATTR_DOSINFO_CREATE_TIME ( 0x00000010 )
54 #define XATTR_DOSINFO_CHANGE_TIME ( 0x00000020 )
56 struct xattr_DosInfo3
{
67 struct xattr_DosInfoFFFFCompat compatinfoFFFF
;/* [case(0xFFFF)] */
68 struct xattr_DosInfo1 info1
;/* [case] */
69 struct xattr_DosInfo2Old oldinfo2
;/* [case(2)] */
70 struct xattr_DosInfo3 info3
;/* [case(3)] */
71 }/* [public,switch_type(uint16)] */;
73 struct xattr_DosAttrib
{
75 union xattr_DosInfo info
;/* [switch_is(version)] */
78 struct xattr_DOSATTRIB
{
79 const char * attrib_hex
;/* [flag(LIBNDR_FLAG_STR_ASCII|LIBNDR_FLAG_STR_NULLTERM)] */
81 union xattr_DosInfo info
;/* [switch_is(version)] */
82 }/* [noprint,nopull,public,nopush] */;
85 const char * name
;/* [flag(LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM)] */
91 struct xattr_EA
*eas
;/* [unique,size_is(num_eas)] */
99 struct xattr_DosStream
{
103 const char * name
;/* [flag(LIBNDR_FLAG_STR_UTF8|LIBNDR_FLAG_STR_NULLTERM)] */
106 struct xattr_DosStreams
{
107 uint32_t num_streams
;
108 struct xattr_DosStream
*streams
;/* [unique,size_is(num_streams)] */
111 struct security_descriptor_hash_v2
{
112 struct security_descriptor
*sd
;/* [unique] */
116 struct security_descriptor_hash_v3
{
117 struct security_descriptor
*sd
;/* [unique] */
122 union xattr_NTACL_Info
{
123 struct security_descriptor
*sd
;/* [unique,case] */
124 struct security_descriptor_hash_v2
*sd_hs2
;/* [unique,case(2)] */
125 struct security_descriptor_hash_v3
*sd_hs3
;/* [unique,case(3)] */
126 }/* [switch_type(uint16)] */;
130 union xattr_NTACL_Info info
;/* [switch_is(version)] */
134 struct xattr_parse_DOSATTRIB
{
136 struct xattr_DOSATTRIB x
;
141 #endif /* _HEADER_xattr */