windows-nt/Source/XPSP1/NT/enduser/windows.com/wuau/wuaueng/service.h
2020-09-26 16:20:57 +08:00

37 lines
983 B
C

//+---------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 2001.
//
// xx
//
// Prototypes of functions defined on service.cpp and used externally.
//
// 10/19/2001 annah Created
//
//----------------------------------------------------------------------------
#pragma once
#include "pch.h"
extern SESSION_STATUS gAdminSessions;
extern const TCHAR AU_SERVICE_NAME[];
BOOL AUGetUserToken(ULONG LogonId, PHANDLE pImpersonationToken);
BOOL IsUserAUEnabledAdmin(DWORD dwSessionId);
BOOL IsSession0Active();
BOOL FSessionActive(DWORD dwAdminSession, WTS_CONNECTSTATE_CLASS *pWTSState = NULL);
BOOL IsAUValidSession(DWORD dwSessionId);
BOOL IsWin2K();
VOID SetActiveAdminSessionEvent();
void ResetEngine(void);
void DisableAU(void);
void ServiceFinishNotify(void);
//Current AU Engine version
const DWORD AUENGINE_VERSION = 1;
//Supported Service versions
const DWORD AUSRV_VERSION_1 = 1;