Source code of Windows XP (NT5)
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.6 KiB

  1. // backend.h
  2. //
  3. #include "logon.h"
  4. // --------------------------------------------------------------------------
  5. // CBackgroundWindow
  6. //
  7. // Purpose: Simple class to wrap a background window that does nothing
  8. // but paint black. Useful for hiding areas of the desktop.
  9. //
  10. // History: 2001-03-27 vtan created
  11. // --------------------------------------------------------------------------
  12. class CBackgroundWindow
  13. {
  14. private:
  15. CBackgroundWindow (void);
  16. public:
  17. CBackgroundWindow (HINSTANCE hInstance);
  18. ~CBackgroundWindow (void);
  19. HWND Create (void);
  20. private:
  21. static LRESULT CALLBACK WndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  22. private:
  23. HINSTANCE _hInstance;
  24. ATOM _atom;
  25. HWND _hwnd;
  26. static const TCHAR s_szWindowClassName[];
  27. };
  28. HRESULT TurnOffComputer();
  29. HRESULT UndockComputer();
  30. void KillFlagAnimation();
  31. HRESULT GetLogonUserByLogonName(LPWSTR pszUsername, ILogonUser **ppobjUser);
  32. void CalcBalloonTargetLocation(HWND hwndParent, Element *pe, POINT *ppt);
  33. void ReleaseStatusHost();
  34. void EndHostProcess(UINT uiExitCode);
  35. int GetRegistryNumericValue(HKEY hKey, LPCTSTR pszValueName);
  36. BOOL IsShutdownAllowed();
  37. BOOL IsUndockAllowed();
  38. HRESULT BuildUserListFromGina(LogonFrame* plf, OUT LogonAccount** ppAccount);
  39. void SetErrorHandler (void);
  40. LRESULT CALLBACK LogonWindowProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);