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.

58 lines
1.9 KiB

  1. /******************************************************************************
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. MPCConfig.h
  5. Abstract:
  6. This file contains the declaration of the MPCConfig class,
  7. the configuration repository for the UploadLibrary.
  8. Revision History:
  9. Davide Massarenti (Dmassare) 04/15/99
  10. created
  11. ******************************************************************************/
  12. #if !defined(__INCLUDED___ULMANAGER___MPCCONFIG_H___)
  13. #define __INCLUDED___ULMANAGER___MPCCONFIG_H___
  14. #define CONNECTIONTYPE_MODEM L"MODEM"
  15. #define CONNECTIONTYPE_LAN L"LAN"
  16. class CMPCConfig // Hungarian: mpcc
  17. {
  18. typedef std::map< MPC::wstring, DWORD > Map;
  19. typedef Map::iterator Iter;
  20. typedef Map::const_iterator IterConst;
  21. MPC::wstring m_szQueueLocation;
  22. DWORD m_dwQueueSize;
  23. DWORD m_dwTiming_WakeUp;
  24. DWORD m_dwTiming_WaitBetweenJobs;
  25. DWORD m_dwTiming_BandwidthUsage;
  26. DWORD m_dwTiming_RequestTimeout;
  27. Map m_mConnectionTypes;
  28. public:
  29. CMPCConfig();
  30. HRESULT Load( /*[in]*/ const MPC::wstring& szConfigFile, /*[out]*/ bool& fLoaded );
  31. MPC::wstring get_QueueLocation ( );
  32. DWORD get_QueueSize ( );
  33. DWORD get_Timing_WakeUp ( );
  34. DWORD get_Timing_WaitBetweenJobs( );
  35. DWORD get_Timing_BandwidthUsage ( );
  36. DWORD get_Timing_RequestTimeout ( );
  37. DWORD get_PacketSize ( /*[in]*/ const MPC::wstring& szConnectionType );
  38. };
  39. #endif // !defined(__INCLUDED___ULMANAGER___MPCCONFIG_H___)