Audio plugin host https://kx.studio/carla
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

nt.h 1.4KB

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. Copyright (c) 1990-2005 Info-ZIP. All rights reserved.
  3. See the accompanying file LICENSE, version 2000-Apr-09 or later
  4. (the contents of which are also included in unzip.h) for terms of use.
  5. If, for some reason, all these files are missing, the Info-ZIP license
  6. also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
  7. */
  8. /* nt.h: central header for EF_NTSD "SD" extra field */
  9. #ifndef _NT_H
  10. #define _NT_H
  11. #define NTSD_BUFFERSIZE (1024) /* threshold to cause malloc() */
  12. #define OVERRIDE_BACKUP 1 /* we have SeBackupPrivilege on remote */
  13. #define OVERRIDE_RESTORE 2 /* we have SeRestorePrivilege on remote */
  14. #define OVERRIDE_SACL 4 /* we have SeSystemSecurityPrivilege on remote */
  15. typedef struct {
  16. BOOL bValid; /* are our contents valid? */
  17. BOOL bUsePrivileges; /* use privilege overrides? */
  18. DWORD dwFileSystemFlags; /* describes target file system */
  19. BOOL bRemote; /* is volume remote? */
  20. DWORD dwRemotePrivileges; /* relevant only on remote volumes */
  21. DWORD dwFileAttributes;
  22. char RootPath[MAX_PATH+1]; /* path to network / filesystem */
  23. } VOLUMECAPS, *PVOLUMECAPS, *LPVOLUMECAPS;
  24. BOOL SecuritySet(char *resource, PVOLUMECAPS VolumeCaps, uch *securitydata);
  25. BOOL GetVolumeCaps(char *rootpath, char *name, PVOLUMECAPS VolumeCaps);
  26. BOOL ValidateSecurity(uch *securitydata);
  27. #endif /* _NT_H */