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.

40 lines
1.1 KiB

  1. // --------------------------------------------------------------------------
  2. // Module Name: DimmedWindow.h
  3. //
  4. // Copyright (c) 2000, Microsoft Corporation
  5. //
  6. // Class that implements the dimmed window when displaying logoff / shut down
  7. // dialog.
  8. //
  9. // History: 2000-05-18 vtan created
  10. // --------------------------------------------------------------------------
  11. #ifndef _DimmedWindow_
  12. #define _DimmedWindow_
  13. class CDimmedWindow
  14. {
  15. public:
  16. explicit CDimmedWindow (HINSTANCE hInstance);
  17. ~CDimmedWindow (void);
  18. // IUnknown methods
  19. ULONG STDMETHODCALLTYPE AddRef (void);
  20. ULONG STDMETHODCALLTYPE Release (void);
  21. HRESULT Create (UINT ulKillTimer);
  22. private:
  23. static LRESULT CALLBACK WndProc (HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  24. static DWORD WorkerThread(IN void *pv);
  25. LONG _lReferenceCount;
  26. const HINSTANCE _hInstance;
  27. ATOM _atom;
  28. ATOM _atomPleaseWait;
  29. HWND _hwnd;
  30. ULONG _ulKillTimer;
  31. };
  32. #endif /* _DimmedWindow_ */