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.
84 lines
1.7 KiB
84 lines
1.7 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
// Copyright (C) Microsoft Corporation, 1992 - 1993.
|
|
//
|
|
// File: globals.hxx
|
|
//
|
|
// Contents: Service global data.
|
|
//
|
|
// Classes: None.
|
|
//
|
|
// Functions: None.
|
|
//
|
|
// History: 6-Apr-95 MarkBl Created
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
|
|
#ifndef __GLOBALS_HXX__
|
|
#define __GLOBALS_HXX__
|
|
|
|
#include "statsync.hxx"
|
|
|
|
#define MAX_SID_SIZE 68 // BUGBUG 254102
|
|
|
|
//
|
|
// Job processor manager.
|
|
//
|
|
|
|
class CJobProcessorMgr;
|
|
extern CJobProcessorMgr * gpJobProcessorMgr;
|
|
|
|
//
|
|
// Worker thread manager.
|
|
//
|
|
|
|
class CWorkerThreadMgr;
|
|
extern CWorkerThreadMgr * gpThreadMgr;
|
|
|
|
//
|
|
// Service scavenger task.
|
|
//
|
|
|
|
class CSAScavengerTask;
|
|
extern CSAScavengerTask * gpSAScavengerTask;
|
|
|
|
//
|
|
// Used for NetScheduleX thread serialization.
|
|
//
|
|
|
|
extern CStaticCritSec gcsNetScheduleCritSection;
|
|
|
|
//
|
|
// Event Source for NetSchedule Job logging
|
|
//
|
|
|
|
extern HANDLE g_hAtEventSource;
|
|
|
|
//
|
|
// Global data associated with the locally logged on user.
|
|
//
|
|
|
|
struct GlobalUserLogonInfo
|
|
{
|
|
HANDLE ShellToken;
|
|
HANDLE ImpersonationThread;
|
|
WCHAR * UserName;
|
|
WCHAR * DomainName;
|
|
WCHAR * DomainUserName;
|
|
CStaticCritSec* CritSection;
|
|
BYTE Sid[MAX_SID_SIZE]; // BUGBUG 254102
|
|
|
|
GlobalUserLogonInfo(CStaticCritSec* pSec)
|
|
{
|
|
ZeroMemory(this, sizeof(GlobalUserLogonInfo));
|
|
CritSection = pSec;
|
|
};
|
|
|
|
};
|
|
|
|
extern GlobalUserLogonInfo gUserLogonInfo;
|
|
|
|
extern LPWSTR gpwszComputerName;
|
|
|
|
#endif // __GLOBALS_HXX__
|