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.
 
 
 
 
 
 

45 lines
1.7 KiB

// backend.h
//
#include "logon.h"
// --------------------------------------------------------------------------
// CBackgroundWindow
//
// Purpose: Simple class to wrap a background window that does nothing
// but paint black. Useful for hiding areas of the desktop.
//
// History: 2001-03-27 vtan created
// --------------------------------------------------------------------------
class CBackgroundWindow
{
private:
CBackgroundWindow (void);
public:
CBackgroundWindow (HINSTANCE hInstance);
~CBackgroundWindow (void);
HWND Create (void);
private:
static LRESULT CALLBACK WndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
private:
HINSTANCE _hInstance;
ATOM _atom;
HWND _hwnd;
static const TCHAR s_szWindowClassName[];
};
HRESULT TurnOffComputer();
HRESULT UndockComputer();
void KillFlagAnimation();
HRESULT GetLogonUserByLogonName(LPWSTR pszUsername, ILogonUser **ppobjUser);
void CalcBalloonTargetLocation(HWND hwndParent, Element *pe, POINT *ppt);
void ReleaseStatusHost();
void EndHostProcess(UINT uiExitCode);
int GetRegistryNumericValue(HKEY hKey, LPCTSTR pszValueName);
BOOL IsShutdownAllowed();
BOOL IsUndockAllowed();
HRESULT BuildUserListFromGina(LogonFrame* plf, OUT LogonAccount** ppAccount);
void SetErrorHandler (void);
LRESULT CALLBACK LogonWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);