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.

66 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. idevices.h
  5. Abstract:
  6. Internal implementation for the devices subfolder.
  7. Environment:
  8. WIN32 User Mode
  9. Author:
  10. Darwin Ouyang (t-darouy) 30-Sept-1997
  11. --*/
  12. #ifndef __IDEVICES_H_
  13. #define __IDEVICES_H_
  14. class CInternalDevice; // forward declaration
  15. class CInternalDevices : public CInternalNode
  16. {
  17. public:
  18. CInternalDevices( CInternalNode * pParent, CFaxComponentData * pCompData );
  19. ~CInternalDevices();
  20. // member functions
  21. virtual const GUID * GetNodeGUID();
  22. virtual const LPTSTR GetNodeDisplayName();
  23. virtual const LPTSTR GetNodeDescription();
  24. virtual const LONG_PTR GetCookie();
  25. virtual CInternalNode * GetThis() { return this; }
  26. virtual const int GetNodeDisplayImage() { return IDI_FAXING; }
  27. virtual const int GetNodeDisplayOpenImage() { return IDI_FAXING; }
  28. virtual HRESULT ResultOnShow(CFaxComponent* pComp, CFaxDataObject * lpDataObject, LPARAM arg, LPARAM param);
  29. virtual HRESULT ResultOnDelete(CFaxComponent* pComp, CFaxDataObject * lpDataObject, LPARAM arg, LPARAM param);
  30. HRESULT CorrectServiceState();
  31. // removes all the devices in preperation for a re-enum
  32. void NotifyFailure( CFaxComponent * pComp );
  33. HANDLE faxHandle;
  34. private:
  35. HRESULT InsertItem( CInternalDevice ** pDevice,
  36. PFAX_PORT_INFO pPortInfo );
  37. HRESULT SetServiceState( BOOL fAutomatic );
  38. CInternalDevice ** pDeviceArray;
  39. PFAX_PORT_INFO pDevicesInfo;
  40. LPRESULTDATA pIResultData;
  41. };
  42. #endif