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

/*==========================================================================
*
* Copyright (C) 1995 Microsoft Corporation. All Rights Reserved.
*
* File: enumsvr.h
* Content: DirectPlay8 <--> DPNSVR Utility functions
*
*@@BEGIN_MSINTERNAL
* History:
* Date By Reason
* ==== == ======
* 03/24/00 rmt Created
* 05/30/00 rmt Bug #33622 DPNSVR does not shutdown when not in use
* 09/04/00 mjn Changed DPNSVR_Register() and DPNSVR_UnRegister() to use guids directly (rather than ApplicationDesc)
*@@END_MSINTERNAL
*
***************************************************************************/
#ifndef __DPNSVLIB_H
#define __DPNSVLIB_H
#define DPNSVR_REGISTER_ATTEMPTS 3
#define DPNSVR_REGISTER_SLEEP 300
typedef void (*PSTATUSHANDLER)(PVOID pvData,PVOID pvUserContext);
typedef void (*PTABLEHANDLER)(PVOID pvData,PVOID pvUserContext);
BOOL DPNSVR_IsRunning();
HRESULT DPNSVR_WaitForStartup( HANDLE hWaitHandle );
HRESULT DPNSVR_SendMessage( LPVOID pvMessage, DWORD dwSize );
HRESULT DPNSVR_StartDPNSVR( );
HRESULT DPNSVR_Register(const GUID *const pguidApplication,
const GUID *const pguidInstance,
IDirectPlay8Address *const prgpDeviceInfo);
HRESULT DPNSVR_UnRegister(const GUID *const pguidApplication,
const GUID *const pguidInstance);
HRESULT DPNSVR_RequestTerminate( const GUID *pguidInstance );
HRESULT DPNSVR_RequestStatus( const GUID *pguidInstance, PSTATUSHANDLER pStatusHandler, PVOID pvContext );
HRESULT DPNSVR_RequestTable( const GUID *pguidInstance, PTABLEHANDLER pTableHandler, PVOID pvContext );
#endif // __DPNSVLIB_H