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.

39 lines
784 B

  1. #ifndef __NmSharableApp_h__
  2. #define __NmSharableApp_h__
  3. class ATL_NO_VTABLE CNmSharableAppObj :
  4. public CComObjectRootEx<CComSingleThreadModel>,
  5. public INmSharableApp
  6. {
  7. protected:
  8. // Data
  9. HWND m_hWnd;
  10. public:
  11. DECLARE_NO_REGISTRY()
  12. DECLARE_NOT_AGGREGATABLE(CNmSharableAppObj)
  13. BEGIN_COM_MAP(CNmSharableAppObj)
  14. COM_INTERFACE_ENTRY(INmSharableApp)
  15. END_COM_MAP()
  16. ////////////////////////////////////////////////
  17. // Construction and destruction
  18. static HRESULT CreateInstance(HWND hWnd,
  19. LPCTSTR szName,
  20. INmSharableApp** ppNmSharableApp);
  21. STDMETHOD(GetName)(BSTR *pbstrName);
  22. STDMETHOD(GetHwnd)(HWND * phwnd);
  23. STDMETHOD(GetState)(NM_SHAPP_STATE *puState);
  24. STDMETHOD(SetState)(NM_SHAPP_STATE uState);
  25. };
  26. #endif // __NmSharableApp_h__