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
33 lines
819 B
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 2002.
|
|
//
|
|
// File: secret.hxx
|
|
//
|
|
// Contents: Tiny object for wrapping creation & access to a
|
|
// guid "secret" for various uses.
|
|
//
|
|
// History: 09-Oct-02 JSimmons Created
|
|
//
|
|
//+-------------------------------------------------------------------------
|
|
|
|
#pragma once
|
|
|
|
class CProcessSecret
|
|
{
|
|
public:
|
|
|
|
HRESULT VerifyMatchingSecret(GUID guidOutsideSecret);
|
|
HRESULT GetProcessSecret(GUID* pguidProcessSecret);
|
|
|
|
private:
|
|
|
|
static GUID s_guidOle32Secret;
|
|
static BOOL s_fSecretInit;
|
|
static COleStaticMutexSem s_SecretLock;
|
|
};
|
|
|
|
// Clients all use this instance
|
|
extern CProcessSecret gProcessSecret;
|
|
|