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.

69 lines
2.3 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: Peer.h
  6. * Content: Direct Net Peer interface header file
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 07/21/99 mjn Created
  12. * 10/08/99 jtk Split from DNCore.h
  13. * 12/03/99 jtk Moved COM interface definitions to DNet.h
  14. * 01/15/00 mjn Removed DN_PeerMessageHandler
  15. * 02/15/00 mjn Implement INFO flags in SetInfo and return context in GetInfo
  16. * 04/06/00 mjn Added GetPeerAddress to API
  17. *@@END_MSINTERNAL
  18. *
  19. ***************************************************************************/
  20. #ifndef __PEER_H__
  21. #define __PEER_H__
  22. //**********************************************************************
  23. // Constant definitions
  24. //**********************************************************************
  25. //**********************************************************************
  26. // Macro definitions
  27. //**********************************************************************
  28. //**********************************************************************
  29. // Structure definitions
  30. //**********************************************************************
  31. //**********************************************************************
  32. // Variable definitions
  33. //**********************************************************************
  34. //
  35. // VTable for peer interface
  36. //
  37. extern IDirectPlay8PeerVtbl DN_PeerVtbl;
  38. //**********************************************************************
  39. // Function prototypes
  40. //**********************************************************************
  41. //
  42. // DirectNet - IDirectPlay8Peer
  43. //
  44. STDMETHODIMP DN_SetPeerInfo( IDirectPlay8Peer *pInterface,
  45. const DPN_PLAYER_INFO *const pdpnPlayerInfo,
  46. PVOID const pvAsyncContext,
  47. DPNHANDLE *const phAsyncHandle,
  48. const DWORD dwFlags);
  49. STDMETHODIMP DN_GetPeerInfo(IDirectPlay8Peer *pInterface,
  50. const DPNID dpnid,
  51. DPN_PLAYER_INFO *const pdpnPlayerInfo,
  52. DWORD *const pdwSize,
  53. const DWORD dwFlags);
  54. STDMETHODIMP DN_GetPeerAddress(IDirectPlay8Peer *pInterface,
  55. const DPNID dpnid,
  56. IDirectPlay8Address **const ppAddress,
  57. const DWORD dwFlags);
  58. #endif // __PEER_H__