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.

27 lines
572 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2000.
  5. //
  6. // File: N C U T I L . H
  7. //
  8. // Contents: CNCUtility class
  9. //
  10. // Notes:
  11. //
  12. // Author: ckotze 6 July 2000
  13. //
  14. //---------------------------------------------------------------------------
  15. #pragma once
  16. class CNCUtility
  17. {
  18. public:
  19. CNCUtility();
  20. virtual ~CNCUtility();
  21. static HRESULT StringToSid(const tstring strSid, PSID& pSid);
  22. static HRESULT SidToString(PCSID pSid, tstring& strSid);
  23. };