Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
| ... | ... |
@@ -136,6 +136,7 @@ func HasWin32KSupport() bool {
|
| 136 | 136 |
return ntuserApiset.Load() == nil |
| 137 | 137 |
} |
| 138 | 138 |
|
| 139 |
+// Deprecated: use golang.org/x/sys/windows.SetNamedSecurityInfo() |
|
| 139 | 140 |
func SetNamedSecurityInfo(objectName *uint16, objectType uint32, securityInformation uint32, sidOwner *windows.SID, sidGroup *windows.SID, dacl *byte, sacl *byte) (result error) {
|
| 140 | 141 |
r0, _, _ := syscall.Syscall9(procSetNamedSecurityInfo.Addr(), 7, uintptr(unsafe.Pointer(objectName)), uintptr(objectType), uintptr(securityInformation), uintptr(unsafe.Pointer(sidOwner)), uintptr(unsafe.Pointer(sidGroup)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(sacl)), 0, 0) |
| 141 | 142 |
if r0 != 0 {
|
| ... | ... |
@@ -144,6 +145,7 @@ func SetNamedSecurityInfo(objectName *uint16, objectType uint32, securityInforma |
| 144 | 144 |
return |
| 145 | 145 |
} |
| 146 | 146 |
|
| 147 |
+// Deprecated: uses golang.org/x/sys/windows.SecurityDescriptorFromString() and golang.org/x/sys/windows.SECURITY_DESCRIPTOR.DACL() |
|
| 147 | 148 |
func GetSecurityDescriptorDacl(securityDescriptor *byte, daclPresent *uint32, dacl **byte, daclDefaulted *uint32) (result error) {
|
| 148 | 149 |
r1, _, e1 := syscall.Syscall6(procGetSecurityDescriptorDacl.Addr(), 4, uintptr(unsafe.Pointer(securityDescriptor)), uintptr(unsafe.Pointer(daclPresent)), uintptr(unsafe.Pointer(dacl)), uintptr(unsafe.Pointer(daclDefaulted)), 0, 0) |
| 149 | 150 |
if r1 == 0 {
|