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.

52 lines
1.2 KiB

  1. //////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1999-2001 Microsoft Corporation
  4. //
  5. // Module Name:
  6. // UINotification.h
  7. //
  8. // Description:
  9. // UINotification implementation.
  10. //
  11. // Maintained By:
  12. // David Potter (DavidP) 19-JUN-2001
  13. // Geoffrey Pease (GPease) 26-NOV-1999
  14. //
  15. //////////////////////////////////////////////////////////////////////////////
  16. #pragma once
  17. // CUINotification
  18. class CUINotification
  19. : public INotifyUI
  20. {
  21. private: // Data
  22. // IUnknown
  23. LONG m_cRef;
  24. // INotifyUI
  25. DWORD m_dwCookie;
  26. // Other
  27. OBJECTCOOKIE m_cookie;
  28. private: // Methods
  29. CUINotification( void );
  30. ~CUINotification( void );
  31. STDMETHOD( HrInit )( void );
  32. public: // Methods
  33. static HRESULT S_HrCreateInstance( IUnknown ** ppunkOut );
  34. HRESULT
  35. HrSetCompletionCookie( OBJECTCOOKIE cookieIn );
  36. // IUnknown
  37. STDMETHOD( QueryInterface )( REFIID riidIn, LPVOID * ppvOut );
  38. STDMETHOD_( ULONG, AddRef )( void );
  39. STDMETHOD_( ULONG, Release )( void );
  40. // INotifyUI
  41. STDMETHOD( ObjectChanged )( LPVOID cookieIn );
  42. }; //*** class CUINotification