COMM.H
资源名称:MSDN_VC98.zip [点击查看]
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:1k
源码类别:
Windows编程
开发平台:
Visual C++
- /*==========================================================================
- *
- * Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
- *
- * File: comm.h
- * Content: communication routines include file
- *
- *
- ***************************************************************************/
- #define IDIRECTPLAY2_OR_GREATER
- #include <dplay.h>
- #include "duel.h"
- /*
- * Prototypes
- */
- HRESULT DPlayClose(void);
- HRESULT DPlayCreate(LPVOID lpCon);
- HRESULT DPlayCreatePlayer(LPDPID lppidID, LPTSTR lpPlayerName, HANDLE hEvent,
- LPVOID lpData, DWORD dwDataSize);
- HRESULT DPlayCreateSession(LPTSTR lptszSessionName);
- HRESULT DPlayDestroyPlayer(DPID pid);
- HRESULT DPlayEnumPlayers(LPGUID lpSessionGuid, LPDPENUMPLAYERSCALLBACK2 lpEnumCallback,
- LPVOID lpContext, DWORD dwFlags);
- HRESULT DPlayEnumSessions(DWORD dwTimeout, LPDPENUMSESSIONSCALLBACK2 lpEnumCallback,
- LPVOID lpContext, DWORD dwFlags);
- HRESULT DPlayGetPlayerData(DPID pid, LPVOID lpData, LPDWORD lpdwDataSize, DWORD dwFlags);
- HRESULT DPlayGetSessionDesc(void);
- BOOL IsDPlay(void);
- HRESULT DPlayOpenSession(LPGUID lpSessionGuid);
- HRESULT DPlayReceive(LPDPID lpidFrom, LPDPID lpidTo, DWORD dwFlags, LPVOID lpData,
- LPDWORD lpdwDataSize);
- HRESULT DPlayRelease(void);
- HRESULT DPlaySend(DPID idFrom, DPID idTo, DWORD dwFlags, LPVOID lpData,
- DWORD dwDataSize);
- HRESULT DPlaySetPlayerData(DPID pid, LPVOID lpData, DWORD dwSize, DWORD dwFlags);