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.

42 lines
1.6 KiB

  1. /*==========================================================================
  2. *
  3. * Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
  4. *
  5. * File: enumsvr.h
  6. * Content: DirectPlay8 <--> DPNSVR Utility functions
  7. *
  8. *@@BEGIN_MSINTERNAL
  9. * History:
  10. * Date By Reason
  11. * ==== == ======
  12. * 03/24/00 rmt Created
  13. * 05/30/00 rmt Bug #33622 DPNSVR does not shutdown when not in use
  14. * 09/04/00 mjn Changed DPNSVR_Register() and DPNSVR_UnRegister() to use guids directly (rather than ApplicationDesc)
  15. *@@END_MSINTERNAL
  16. *
  17. ***************************************************************************/
  18. #ifndef __DPNSVLIB_H
  19. #define __DPNSVLIB_H
  20. #define DPNSVR_REGISTER_ATTEMPTS 3
  21. #define DPNSVR_REGISTER_SLEEP 300
  22. typedef void (*PSTATUSHANDLER)(PVOID pvData,PVOID pvUserContext);
  23. typedef void (*PTABLEHANDLER)(PVOID pvData,PVOID pvUserContext);
  24. BOOL DPNSVR_IsRunning();
  25. HRESULT DPNSVR_WaitForStartup( HANDLE hWaitHandle );
  26. HRESULT DPNSVR_SendMessage( LPVOID pvMessage, DWORD dwSize );
  27. HRESULT DPNSVR_StartDPNSVR( );
  28. HRESULT DPNSVR_Register(const GUID *const pguidApplication,
  29. const GUID *const pguidInstance,
  30. IDirectPlay8Address *const prgpDeviceInfo);
  31. HRESULT DPNSVR_UnRegister(const GUID *const pguidApplication,
  32. const GUID *const pguidInstance);
  33. HRESULT DPNSVR_RequestTerminate( const GUID *pguidInstance );
  34. HRESULT DPNSVR_RequestStatus( const GUID *pguidInstance, PSTATUSHANDLER pStatusHandler, PVOID pvContext );
  35. HRESULT DPNSVR_RequestTable( const GUID *pguidInstance, PTABLEHANDLER pTableHandler, PVOID pvContext );
  36. #endif // __DPNSVLIB_H