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.

43 lines
807 B

  1. #ifndef _ICAWRAP_H_
  2. #define _ICAWRAP_H_
  3. #include <icaapi.h>
  4. class CICA : public RefCount
  5. {
  6. protected:
  7. static CICA* m_pThis;
  8. PFnICA_Start m_pfnICA_Start;
  9. PFnICA_Stop m_pfnICA_Stop;
  10. PFnICA_DisplayPanel m_pfnICA_DisplayPanel;
  11. PFnICA_RemovePanel m_pfnICA_RemovePanel;
  12. PFnICA_SetOptions m_pfnICA_SetOptions;
  13. HANDLE m_hICA_General;
  14. HANDLE m_hICA_Audio;
  15. HANDLE m_hICA_Video;
  16. HANDLE m_hICA_SetOptions;
  17. HWND m_hWndICADlg;
  18. CICA();
  19. ~CICA();
  20. BOOL Initialize();
  21. public:
  22. static CICA* Instance();
  23. STDMETHODIMP_(ULONG) AddRef(void);
  24. STDMETHODIMP_(ULONG) Release(void);
  25. BOOL Start();
  26. VOID Stop();
  27. BOOL IsRunning() { return NULL != m_hWndICADlg; }
  28. HWND GetHwnd() { return m_hWndICADlg; }
  29. VOID SetInTray(BOOL fInTray);
  30. };
  31. #endif // _ICAWRAP_H_