namespaceapi.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. /**
  2. * This file is part of the mingw-w64 runtime package.
  3. * No warranty is given; refer to the file DISCLAIMER within this package.
  4. */
  5. #ifndef _APISETNAMESPACE_
  6. #define _APISETNAMESPACE_
  7. #include <apiset.h>
  8. #include <apisetcconv.h>
  9. #include <minwindef.h>
  10. #include <minwinbase.h>
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #if WINAPI_FAMILY_PARTITION (WINAPI_PARTITION_APP)
  15. #define PRIVATE_NAMESPACE_FLAG_DESTROY 0x1
  16. WINBASEAPI HANDLE WINAPI CreatePrivateNamespaceW (LPSECURITY_ATTRIBUTES lpPrivateNamespaceAttributes, LPVOID lpBoundaryDescriptor, LPCWSTR lpAliasPrefix);
  17. WINBASEAPI HANDLE WINAPI OpenPrivateNamespaceW (LPVOID lpBoundaryDescriptor, LPCWSTR lpAliasPrefix);
  18. #ifdef UNICODE
  19. #define CreatePrivateNamespace CreatePrivateNamespaceW
  20. #endif
  21. WINBASEAPI BOOLEAN WINAPI ClosePrivateNamespace (HANDLE Handle, ULONG Flags);
  22. WINBASEAPI HANDLE WINAPI CreateBoundaryDescriptorW (LPCWSTR Name, ULONG Flags);
  23. #ifdef UNICODE
  24. #define CreateBoundaryDescriptor CreateBoundaryDescriptorW
  25. #endif
  26. WINBASEAPI WINBOOL WINAPI AddSIDToBoundaryDescriptor (HANDLE *BoundaryDescriptor, PSID RequiredSid);
  27. WINBASEAPI VOID WINAPI DeleteBoundaryDescriptor (HANDLE BoundaryDescriptor);
  28. #endif
  29. #ifdef __cplusplus
  30. }
  31. #endif
  32. #endif