8686
8787// C.RPC_IF_ID represents an ID of an RPC interface. This is basically an GUID
8888// but also contains a major and minor version.
89- [typedef ]
89+ @ [typedef]
9090pub struct C.RPC_IF_ID {
9191 Uuid C.GUID
9292 VersMajor u16
@@ -103,7 +103,7 @@ pub fn (this C.RPC_IF_ID) equals(other C.RPC_IF_ID) bool
103103// C.RPC_DISPATCH_TABLE contains information on the defined RPC methods of an
104104// RPC interface. rpv uses it to determine the method count, that can be obtained
105105// from the DispatchTableCount property.
106- [typedef ]
106+ @ [typedef]
107107pub struct C.RPC_DISPATCH_TABLE {
108108 DispatchTableCount u32
109109 DispatchTable voidptr
@@ -116,7 +116,7 @@ pub struct C.RPC_DISPATCH_TABLE {
116116// formatting of these methods. This is used in conjunction with the FmtStringOffset
117117// property, which contains the offset of the different methods within the ProcString,
118118// to decompile RPC methods.
119- [typedef ]
119+ @ [typedef]
120120pub struct C.MIDL_SERVER_INFO {
121121 pStubDesc & C.MIDL_STUB_DESC = unsafe { nil }
122122 DispatchTable & voidptr = unsafe { nil }
@@ -133,7 +133,7 @@ pub struct C.MIDL_SERVER_INFO {
133133// by the RPC methods of the corresponding interface. rpv uses this information to decompile
134134// RPC methods. Moreover, Reserved5 is required for parsing NDR expressions. Actually the
135135// member is named pExprInfo by Microsoft, but within the mingw libraries it is Reserved5.
136- [typedef ]
136+ @ [typedef]
137137pub struct C.MIDL_STUB_DESC {
138138 RpcInterfaceInformation voidptr = unsafe { nil }
139139 pfnAllocate voidptr = unsafe { nil }
@@ -151,13 +151,13 @@ pub struct C.MIDL_STUB_DESC {
151151 MIDLVersion u32
152152 CommFaultOffsets & C.COMM_FAULT_OFFSETS = unsafe { nil }
153153 // New fields for version 3.0+
154- aUserMarshalQuadruple & C. USER_MARSHAL_ROUTINE_QUADRUPLE = unsafe { nil }
154+ aUserMarshalQuadruple voidptr = unsafe { nil }
155155 // Notify routines - added for NT5, MIDL 5.0
156- NotifyRoutineTable & C. NDR_NOTIFY_ROUTINE = unsafe { nil }
156+ NotifyRoutineTable voidptr = unsafe { nil }
157157 // Reserved for future use.
158158 mFlags & u32 = unsafe { nil }
159159 // International support routines - added for 64bit post NT5
160- CsRoutineTables & C. NDR_CS_ROUTINES = unsafe { nil }
160+ CsRoutineTables voidptr = unsafe { nil }
161161 Reserved4 voidptr = unsafe { nil }
162162 Reserved5 voidptr = unsafe { nil } // mIDA: expr_table - RpcView: pExprInfo
163163 // Fields up to now present in win2000 release.
@@ -173,7 +173,7 @@ pub struct NDR_EXPR_DESC {
173173
174174// C.MIDL_SYNTAX_INFO is a struct that is used within internal RPC struct definitions.
175175// It is currently not used by rpv.
176- [typedef ]
176+ @ [typedef]
177177pub struct C.MIDL_SYNTAX_INFO {
178178 TransferSyntax C.RPC_SYNTAX_IDENTIFIER
179179 DispatchTable & C.RPC_DISPATCH_TABLE
@@ -186,47 +186,47 @@ pub struct C.MIDL_SYNTAX_INFO {
186186
187187// C.MIDL_INTERFACE_METHOD_PROPERTIES is a struct that is used within internal RPC struct definitions.
188188// It is currently not used by rpv.
189- [typedef ]
189+ @ [typedef]
190190pub struct C.MIDL_INTERFACE_METHOD_PROPERTIES {
191191 MethodCount u16
192192 MethodProperties & C.MIDL_METHOD_PROPERTY_MAP
193193}
194194
195195// C.MIDL_METHOD_PROPERTY_MAP is a struct that is used within internal RPC struct definitions.
196196// It is currently not used by rpv.
197- [typedef ]
197+ @ [typedef]
198198pub struct C.MIDL_METHOD_PROPERTY_MAP {
199199 count u32
200200 Properties & C.MIDL_METHOD_PROPERTY
201201}
202202
203203// C.MIDL_METHOD_PROPERTY is a struct that is used within internal RPC struct definitions.
204204// It is currently not used by rpv.
205- [typedef ]
205+ @ [typedef]
206206pub struct C.MIDL_METHOD_PROPERTY {
207207 Id u32
208208 value usize
209209}
210210
211211// C.UUID_VECTOR is a struct that is used within internal RPC struct definitions.
212212// It is currently not used by rpv.
213- [typedef ]
213+ @ [typedef]
214214pub struct C.UUID_VECTOR {
215215 Count u32
216216 Uuid [1 ]& C.GUID
217217}
218218
219219// C.RPC_SYNTAX_IDENTIFIER is a struct that is used within internal RPC struct definitions.
220220// It is currently not used by rpv.
221- [typedef ]
221+ @ [typedef]
222222pub struct C.RPC_SYNTAX_IDENTIFIER {
223223 SyntaxGUID C.GUID
224224 SyntaxVersion C.RPC_VERSION
225225}
226226
227227// C.RPC_VERSION is a struct that is used within internal RPC struct definitions.
228228// It is currently not used by rpv.
229- [typedef ]
229+ @ [typedef]
230230pub struct C.RPC_VERSION {
231231 MajorVersion u16
232232 MinorVersion u16
0 commit comments