@@ -305,38 +305,38 @@ const ValidFileFlagsMask = O_FILE_FLAG_OPEN_REPARSE_POINT |
305305// https://msdn.microsoft.com/en-us/library/windows/desktop/aa379636.aspx
306306type TRUSTEE struct {
307307 MultipleTrustee * TRUSTEE
308- MultipleTrusteeOperation int32
309- TrusteeForm int32
310- TrusteeType int32
311- Name * uint16
308+ MultipleTrusteeOperation uint32
309+ TrusteeForm uint32
310+ TrusteeType uint32
311+ Name uintptr
312312}
313313
314314// https://msdn.microsoft.com/en-us/library/windows/desktop/aa379638.aspx
315315const (
316- TRUSTEE_IS_SID = iota
317- TRUSTEE_IS_NAME
318- TRUSTEE_BAD_FORM
319- TRUSTEE_IS_OBJECTS_AND_SID
320- TRUSTEE_IS_OBJECTS_AND_NAME
316+ TRUSTEE_IS_SID = 0x0
317+ TRUSTEE_IS_NAME = 0x1
318+ TRUSTEE_BAD_FORM = 0x2
319+ TRUSTEE_IS_OBJECTS_AND_SID = 0x3
320+ TRUSTEE_IS_OBJECTS_AND_NAME = 0x4
321321)
322322
323323// https://msdn.microsoft.com/en-us/library/windows/desktop/aa446627.aspx
324324type EXPLICIT_ACCESS struct {
325325 AccessPermissions uint32
326- AccessMode int32
326+ AccessMode uint32
327327 Inheritance uint32
328328 Trustee TRUSTEE
329329}
330330
331331// https://msdn.microsoft.com/en-us/library/windows/desktop/aa374899.aspx
332332const (
333- NOT_USED_ACCESS = iota
334- GRANT_ACCESS
335- SET_ACCESS
336- DENY_ACCESS
337- REVOKE_ACCESS
338- SET_AUDIT_SUCCESS
339- SET_AUDIT_FAILURE
333+ NOT_USED_ACCESS = 0x0
334+ GRANT_ACCESS = 0x1
335+ SET_ACCESS = 0x2
336+ DENY_ACCESS = 0x3
337+ REVOKE_ACCESS = 0x4
338+ SET_AUDIT_SUCCESS = 0x5
339+ SET_AUDIT_FAILURE = 0x6
340340)
341341
342342// https://msdn.microsoft.com/en-us/library/windows/desktop/aa446627.aspx
@@ -351,20 +351,20 @@ const (
351351
352352// https://msdn.microsoft.com/en-us/library/windows/desktop/aa379593.aspx
353353const (
354- SE_UNKNOWN_OBJECT_TYPE = iota
355- SE_FILE_OBJECT
356- SE_SERVICE
357- SE_PRINTER
358- SE_REGISTRY_KEY
359- SE_LMSHARE
360- SE_KERNEL_OBJECT
361- SE_WINDOW_OBJECT
362- SE_DS_OBJECT
363- SE_DS_OBJECT_ALL
364- SE_PROVIDER_DEFINED_OBJECT
365- SE_WMIGUID_OBJECT
366- SE_REGISTRY_WOW64_32KEY
367- SE_REGISTRY_WOW64_64KEY
354+ SE_UNKNOWN_OBJECT_TYPE = 0x0
355+ SE_FILE_OBJECT = 0x1
356+ SE_SERVICE = 0x2
357+ SE_PRINTER = 0x3
358+ SE_REGISTRY_KEY = 0x4
359+ SE_LMSHARE = 0x5
360+ SE_KERNEL_OBJECT = 0x6
361+ SE_WINDOW_OBJECT = 0x7
362+ SE_DS_OBJECT = 0x8
363+ SE_DS_OBJECT_ALL = 0x9
364+ SE_PROVIDER_DEFINED_OBJECT = 0xa
365+ SE_WMIGUID_OBJECT = 0xb
366+ SE_REGISTRY_WOW64_32KEY = 0xc
367+ SE_REGISTRY_WOW64_64KEY = 0xd
368368)
369369
370370// https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-dtyp/23e75ca3-98fd-4396-84e5-86cd9d40d343
0 commit comments