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.

33 lines
819 B

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 2002.
  5. //
  6. // File: secret.hxx
  7. //
  8. // Contents: Tiny object for wrapping creation & access to a
  9. // guid "secret" for various uses.
  10. //
  11. // History: 09-Oct-02 JSimmons Created
  12. //
  13. //+-------------------------------------------------------------------------
  14. #pragma once
  15. class CProcessSecret
  16. {
  17. public:
  18. HRESULT VerifyMatchingSecret(GUID guidOutsideSecret);
  19. HRESULT GetProcessSecret(GUID* pguidProcessSecret);
  20. private:
  21. static GUID s_guidOle32Secret;
  22. static BOOL s_fSecretInit;
  23. static COleStaticMutexSem s_SecretLock;
  24. };
  25. // Clients all use this instance
  26. extern CProcessSecret gProcessSecret;