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.

57 lines
1.0 KiB

  1. /*++
  2. Copyright (c) 1997 Microsoft Corporation
  3. Module Name:
  4. faxqueue.h
  5. Abstract:
  6. This file contains the class definition for the
  7. faxqueue object.
  8. Author:
  9. Wesley Witt (wesw) 13-May-1997
  10. Environment:
  11. User Mode
  12. --*/
  13. #ifndef __FAXQUEUE_H_
  14. #define __FAXQUEUE_H_
  15. #include <winsock2.h>
  16. #include "resource.h" // main symbols
  17. class ATL_NO_VTABLE CFaxQueue :
  18. public CComObjectRootEx<CComSingleThreadModel>,
  19. public CComCoClass<CFaxQueue, &CLSID_FaxQueue>,
  20. public IDispatchImpl<IFaxQueue, &IID_IFaxQueue, &LIBID_FAXITGLib>
  21. {
  22. public:
  23. CFaxQueue();
  24. ~CFaxQueue();
  25. DECLARE_REGISTRY_RESOURCEID(IDR_FAXQUEUE)
  26. BEGIN_COM_MAP(CFaxQueue)
  27. COM_INTERFACE_ENTRY(IFaxQueue)
  28. COM_INTERFACE_ENTRY(IDispatch)
  29. END_COM_MAP()
  30. public:
  31. STDMETHOD(put_Connect)(/*[in]*/ BSTR newVal);
  32. STDMETHOD(get_GetNextFax)(/*[out, retval]*/ BSTR *pVal);
  33. private:
  34. IN_ADDR m_RemoteIpAddress;
  35. SOCKET m_Socket;
  36. WCHAR m_ServerDir[MAX_COMPUTERNAME_LENGTH+16];
  37. };
  38. #endif //__FAXQUEUE_H_