home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / graphics / directx / duel / wizard.h < prev   
Encoding:
C/C++ Source or Header  |  1997-07-15  |  1.9 KB  |  60 lines

  1. /*==========================================================================
  2.  *
  3.  *  Copyright (C) 1995-1997 Microsoft Corporation. All Rights Reserved.
  4.  *
  5.  *  File:        wizard.h
  6.  *  Content:    user input routines include file
  7.  *
  8.  *
  9.  ***************************************************************************/
  10. #define IDIRECTPLAY2_OR_GREATER
  11. #include <commctrl.h>
  12. #include <dplay.h>
  13. #include "duel.h"
  14.  
  15. // put this structure in the tree control
  16. // the guid is the session guid, the refresh is used
  17. // to detect when sessions go away
  18. typedef struct _TREEDATA
  19. {
  20.     GUID     guid;
  21.     DWORD    dwRefresh;
  22. } TREEDATA,*LPTREEDATA;
  23.  
  24. void    SetupFonts(HDC hDC);
  25.  
  26. void    CleanupFonts(void);
  27.  
  28. LONG    RegSet(LPCTSTR lptszName, CONST BYTE * lpData, DWORD dwSize);
  29.  
  30. LONG    RegSetA(LPCTSTR lptszName, CONST BYTE * lpData, DWORD dwSize);
  31.  
  32. LONG    RegGet(LPCTSTR lptszName, LPBYTE lpData, LPDWORD lpdwDataSize);
  33.  
  34. DWORD    WINAPI DoWizard(LPVOID pv);
  35.  
  36. BOOL    CALLBACK DlgProcChooseProvider(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  37.  
  38. BOOL FAR PASCAL DPEnumConnectionsCallback(    LPCGUID lpguidSP, LPVOID lpConnection, DWORD dwSize, 
  39.                                             LPCDPNAME lpName, DWORD dwFlags, LPVOID lpContext);
  40.  
  41. BOOL    WINAPI    EnumSession(LPCDPSESSIONDESC2 lpDPSessionDesc, LPDWORD lpdwTimeOut, 
  42.                            DWORD dwFlags,  LPVOID pContext);
  43.  
  44. BOOL    CALLBACK DlgProcGameSetup (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  45.  
  46. BOOL    WINAPI EnumPlayer(DPID pidID, DWORD dwPlayerType, LPCDPNAME lpName,
  47.     DWORD dwFlags, LPVOID lpContext);
  48.  
  49. BOOL    CALLBACK DlgProcJoinSession (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  50.  
  51. BOOL    CALLBACK DlgProcHostSession (HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam);
  52.  
  53. BOOL    InitTreeViewImageLists(HWND hwndTV);
  54.  
  55. HTREEITEM AddItemToTree(HWND hwndTV, LPTSTR lpszItem, DWORD dwData, int nLevel);
  56.  
  57. void    ReleaseSessionData(HWND hWndCtl);
  58.  
  59. void    ReleaseSPData(void);
  60.