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.

64 lines
1.6 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1999 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: dpvxdplay.h
  6. * Content: Useful dplay utility functions for sample apps
  7. *
  8. * History:
  9. * Date By Reason
  10. * ==== == ======
  11. * 10/07/99 rodtoll Created It
  12. * 11/02/99 rodtoll Bug #116677 - Can't use lobby clients that don't hang around
  13. * 01/21/00 rodtoll Added dplay include
  14. *
  15. ***************************************************************************/
  16. #ifndef __DPVXDPLAY_H
  17. #define __DPVXDPLAY_H
  18. // DirectPlay Helper Functions
  19. extern HRESULT DPVDX_DP_ConnectToSession(
  20. // Input
  21. LPDIRECTPLAY4A lpDirectPlay, GUID guidApplication, GUID guidInstanceGUID, LPTSTR lpszPlayerName,
  22. // Output
  23. LPDPID lpdpidClientID, LPHANDLE lpReceiveEvent
  24. );
  25. extern HRESULT DPVDX_DP_FindSessionGUID(
  26. LPDIRECTPLAY4A lpDirectPlay,
  27. // Input
  28. GUID guidApplicationID,
  29. DWORD dwTimeout,
  30. // Output
  31. LPGUID lpguidInstance );
  32. extern HRESULT DPVDX_DP_Init(
  33. LPDIRECTPLAY4A lpDirectPlay, GUID guidServiceProvider, LPTSTR lpstrAddress
  34. );
  35. extern HRESULT DPVDX_DP_StartSession(
  36. // Input
  37. LPDIRECTPLAY4A lpDirectPlay,
  38. GUID guidApplicationID,
  39. DWORD dwFlags,
  40. LPTSTR lpszPlayerName,
  41. LPTSTR lpszSessionName,
  42. DWORD dwMaxPlayers,
  43. // Output
  44. LPDPID lpdpidServerID,
  45. LPHANDLE lpReceiveEvent,
  46. LPGUID lpguidInstanceGUID
  47. );
  48. extern HRESULT DPVDX_DP_RegisterApplication(
  49. LPSTR lpstrAppName,
  50. GUID guidApplication,
  51. LPTSTR lpstrExeName,
  52. LPTSTR lpstrCommandLine,
  53. LPTSTR lpstrDescription,
  54. DWORD dwFlags );
  55. extern HRESULT DPVDX_DP_UnRegisterApplication( GUID guidApplication );
  56. #endif