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.

62 lines
1.9 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dplegacy.h
  6. * Content: Definitions for old DirectPlay's address type
  7. *
  8. * WARNING: This file duplicates definitions found in dplobby.h
  9. *@@BEGIN_MSINTERNAL
  10. * History:
  11. * Date By Reason
  12. * ==== == ======
  13. * 03/21/2000 rmt Created
  14. *@@END_MSINTERNAL
  15. *
  16. ***************************************************************************/
  17. #ifndef __DPLEGACY_H
  18. #define __DPLEGACY_H
  19. #include "dplegacyguid.h"
  20. typedef struct _DPADDRESS
  21. {
  22. GUID guidDataType;
  23. DWORD dwDataSize;
  24. } DPADDRESS, *PDPADDRESS, *LPDPADDRESS;
  25. typedef struct DPCOMPORTADDRESS{
  26. DWORD dwComPort;
  27. DWORD dwBaudRate;
  28. DWORD dwStopBits;
  29. DWORD dwParity;
  30. DWORD dwFlowControl;
  31. } DPCOMPORTADDRESS, *PDPCOMPORTADDRESS;
  32. #define DPCPA_NOFLOW 0 // no flow control
  33. #define DPCPA_XONXOFFFLOW 1 // software flow control
  34. #define DPCPA_RTSFLOW 2 // hardware flow control with RTS
  35. #define DPCPA_DTRFLOW 3 // hardware flow control with DTR
  36. #define DPCPA_RTSDTRFLOW 4 // hardware flow control with RTS and DTR
  37. #define DPNA_DATATYPE_DPCOMPORTADDRESS 0x00002000
  38. #define DPNA_DATATYPE_NOP 0x00004000
  39. class DPLEGACYMAPGUIDTOSTRING
  40. {
  41. public:
  42. DPLEGACYMAPGUIDTOSTRING( const GUID &guidType, const WCHAR *const wszKeyName, DWORD dwDataType
  43. ): m_guidType(guidType), m_wszKeyName(wszKeyName), m_dwDataType(dwDataType)
  44. {
  45. };
  46. GUID m_guidType;
  47. const WCHAR * const m_wszKeyName;
  48. DWORD m_dwDataType;
  49. };
  50. typedef DPLEGACYMAPGUIDTOSTRING *PDPLEGACYMAPGUIDTOSTRING;
  51. HRESULT AddDP4Element( PDPADDRESS pdpAddressElement, PDP8ADDRESSOBJECT pdpAddress );
  52. #endif // __DPLEGACY_H