/*==========================================================================
*
* Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
*
* File:wizard.h
* Content:user input routines include file
*
*
***************************************************************************/
#define IDIRECTPLAY2_OR_GREATER
#include <commctrl.h>
#include <dplay.h>
#include "duel.h"
// put this structure in the tree control
// the guid is the session guid, the refresh is used
// to detect when sessions go away
typedef struct _TREEDATA
{
GUID guid;
DWORDdwRefresh;
} TREEDATA,*LPTREEDATA;
voidSetupFonts(HDC hDC);
voidCleanupFonts(void);
LONGRegSet(LPCTSTR lptszName, CONST BYTE * lpData, DWORD dwSize);
LONGRegSetA(LPCTSTR lptszName, CONST BYTE * lpData, DWORD dwSize);
LONGRegGet(LPCTSTR lptszName, LPBYTE lpData, LPDWORD lpdwDataSize);
DWORDWINAPI DoWizard(LPVOID pv);
BOOLCALLBACK DlgProcChooseProvider(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOL FAR PASCAL DPEnumConnectionsCallback(LPCGUID lpguidSP, LPVOID lpConnection, DWORD dwSize,
LPCDPNAME lpName, DWORD dwFlags, LPVOID lpContext);
BOOLWINAPIEnumSession(LPCDPSESSIONDESC2 lpDPSessionDesc, LPDWORD lpdwTimeOut,
DWORD dwFlags, LPVOID pContext);
BOOLCALLBACK DlgProcGameSetup (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOLWINAPI EnumPlayer(DPID pidID, DWORD dwPlayerType, LPCDPNAME lpName,
DWORD dwFlags, LPVOID lpContext);
BOOLCALLBACK DlgProcJoinSession (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOLCALLBACK DlgProcHostSession (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
BOOLInitTreeViewImageLists(HWND hwndTV);
HTREEITEM AddItemToTree(HWND hwndTV, LPTSTR lpszItem, DWORD dwData, int nLevel);
voidReleaseSessionData(HWND hWndCtl);
voidReleaseSPData(void);