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.

81 lines
3.1 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 2000 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: DPLCommon.h
  6. * Content: DirectPlay Lobby Common Functions Header File
  7. *@@BEGIN_MSINTERNAL
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 02/21/00 mjn Created
  12. * 04/26/00 mjn Removed dwTimeOut from Send() API call
  13. * 06/15/00 rmt Bug #33617 - Must provide method for providing automatic launch of DirectPlay instances
  14. * 02/06/2001 rodtoll WINBUG #293871: DPLOBBY8: [IA64] Lobby launching a 64-bit
  15. * app from 64-bit lobby launcher crashes with unaligned memory error.
  16. *@@END_MSINTERNAL
  17. *
  18. ***************************************************************************/
  19. #ifndef __DPLCOMMON_H__
  20. #define __DPLCOMMON_H__
  21. //**********************************************************************
  22. // Constant definitions
  23. //**********************************************************************
  24. //**********************************************************************
  25. // Macro definitions
  26. //**********************************************************************
  27. //**********************************************************************
  28. // Structure definitions
  29. //**********************************************************************
  30. //**********************************************************************
  31. // Variable definitions
  32. //**********************************************************************
  33. //**********************************************************************
  34. // Function prototypes
  35. //**********************************************************************
  36. HRESULT DPLSendConnectionSettings( DIRECTPLAYLOBBYOBJECT * const pdpLobbyObject,
  37. DPNHANDLE hConnection );
  38. STDMETHODIMP DPL_GetConnectionSettings(LPVOID lpv,const DPNHANDLE hLobbyClient, DPL_CONNECTION_SETTINGS * const pdplSessionInfo, DWORD *pdwInfoSize, const DWORD dwFlags );
  39. STDMETHODIMP DPL_SetConnectionSettings(LPVOID lpv,const DPNHANDLE hLobbyClient, const DPL_CONNECTION_SETTINGS * const pdplSessionInfo, const DWORD dwFlags );
  40. STDMETHODIMP DPL_RegisterMessageHandler(PVOID pv,
  41. const PVOID pvUserContext,
  42. const PFNDPNMESSAGEHANDLER pfn,
  43. DPNHANDLE * const pdpnhConnection,
  44. const DWORD dwFlags);
  45. STDMETHODIMP DPL_RegisterMessageHandlerClient(PVOID pv,
  46. void * const pvUserContext,
  47. const PFNDPNMESSAGEHANDLER pfn,
  48. const DWORD dwFlags);
  49. STDMETHODIMP DPL_Close(PVOID pv, const DWORD dwFlags );
  50. STDMETHODIMP DPL_Send(PVOID pv,
  51. const DPNHANDLE hTarget,
  52. BYTE *const pBuffer,
  53. const DWORD pBufferSize,
  54. const DWORD dwFlags);
  55. HRESULT DPLReceiveUserMessage(DIRECTPLAYLOBBYOBJECT *const pdpLobbyObject,
  56. const DPNHANDLE hSender,
  57. BYTE *const pBuffer,
  58. const DWORD dwBufferSize);
  59. HRESULT DPLMessageHandler(PVOID pvContext,
  60. const DPNHANDLE hSender,
  61. DWORD dwMessageFlags,
  62. BYTE *const pBuffer,
  63. const DWORD dwBufferSize);
  64. #endif // __DPLCOMMON_H__