Source code of Windows XP (NT5)
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.

54 lines
1.3 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1992 - 1994
  6. //
  7. // File: crackpac.cxx
  8. //
  9. // Contents: Helper routines to pull privileges and groups
  10. // out of a PAC
  11. //
  12. //
  13. // History: 20-Jul-1994 MikeSw Created
  14. //
  15. //------------------------------------------------------------------------
  16. #include <secpch2.hxx>
  17. #pragma hdrstop
  18. #include <tokenutl.hxx>
  19. //+-------------------------------------------------------------------------
  20. //
  21. // Function: CrackPac2
  22. //
  23. // Synopsis: Pulls privileges, user sid, and groups out of a new PAC.
  24. //
  25. //
  26. // Effects:
  27. //
  28. // Arguments:
  29. //
  30. // Requires:
  31. //
  32. // Returns:
  33. //
  34. // Notes: SID is allocated with MIDL_user_allocate because
  35. // PrivateSidFromGuidAndRid uses that allocator.
  36. //
  37. // UNICODE_STRING in pTokenProxyData is allocated with 'new'.
  38. //
  39. //--------------------------------------------------------------------------
  40. HRESULT
  41. CrackPac_2( IN PACTYPE * pPac,
  42. OUT PTokenGroups pTokenGroups,
  43. OUT PTokenPrivs pTokenPrivs,
  44. OUT PSID * ppUserSid,
  45. OUT PSECURITY_TOKEN_PROXY_DATA pTokenProxyData OPTIONAL)
  46. {
  47. return(S_OK);
  48. }