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.
 
 
 
 
 
 

60 lines
1.0 KiB

//*************************************************************
//
// Copyright (c) Microsoft Corporation 1998
// All rights reserved
//
// events.hxx
//
//*************************************************************
#define DIAGNOSTICS_KEY L"Software\\Microsoft\\Windows NT\\CurrentVersion\\Diagnostics"
#define DIAGNOSTICS_POLICY_VALUE L"RunDiagnosticLoggingFileDeployment"
#define FDEPLOY_EVENT_SOURCE L"Folder Redirection"
class CEvents;
extern CEvents * gpEvents;
class CEvents
{
public:
CEvents();
~CEvents();
DWORD
Init();
inline void Reference()
{
_Refs++;
}
inline void Release()
{
if ( 0 == --_Refs )
{
gpEvents = 0;
delete this;
}
}
void
Report(
DWORD EventID,
WORD Strings,
...
);
PSID
UserSid();
private:
void
GetUserSid();
HANDLE _hEventLog;
PSID _pUserSid;
DWORD _Refs;
};