Leaked source code of windows server 2003
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.

28 lines
831 B

  1. //*************************************************************
  2. //
  3. // Header file for Sid.c
  4. //
  5. // Microsoft Confidential
  6. // Copyright (c) Microsoft Corporation 1995
  7. // All rights reserved
  8. //
  9. //*************************************************************
  10. #ifdef __cplusplus
  11. extern "C" {
  12. #endif
  13. LPTSTR GetSidString(HANDLE UserToken);
  14. VOID DeleteSidString(LPTSTR SidString);
  15. NTSTATUS AllocateAndInitSidFromString (const WCHAR* lpszSidStr, PSID* ppSid);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. PSID GetUserSid (HANDLE UserToken);
  20. VOID DeleteUserSid(PSID Sid);
  21. NTSTATUS LoadSidAuthFromString (const WCHAR* pString, PSID_IDENTIFIER_AUTHORITY pSidAuth);
  22. NTSTATUS GetIntFromUnicodeString (const WCHAR* szNum, ULONG Base, PULONG pValue);
  23. NTSTATUS GetDomainSidFromDomainRid(PSID pSid, DWORD dwRid, PSID *ppNewSid);