Source code of Windows XP (NT5)
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.

71 lines
2.0 KiB

  1. /****************************************************************************
  2. *
  3. * File: netinfo.h
  4. * Project: DxDiag (DirectX Diagnostic Tool)
  5. * Author: Mike Anderson (manders@microsoft.com)
  6. * Purpose: Gather information about DirectPlay
  7. *
  8. * (C) Copyright 1998 Microsoft Corp. All rights reserved.
  9. *
  10. ****************************************************************************/
  11. #ifndef NETINFO_H
  12. #define NETINFO_H
  13. // DXD_IN_DP_VALUE is the name of a value stored under the registry key
  14. // HKLM\DXD_IN_DP_KEY that indicates that DxDiag is using
  15. // DirectPlay. If DxDiag starts up and this value exists, DxDiag
  16. // probably crashed in DirectPlay and DxDiag should offer to run without
  17. // using DirectPlay.
  18. #define DXD_IN_DP_KEY TEXT("Software\\Microsoft\\DirectX Diagnostic Tool")
  19. #define DXD_IN_DP_VALUE TEXT("DxDiag In DirectPlay")
  20. struct NetSP
  21. {
  22. TCHAR m_szName[200];
  23. TCHAR m_szNameEnglish[200];
  24. TCHAR m_szGuid[100];
  25. TCHAR m_szFile[100];
  26. TCHAR m_szPath[MAX_PATH];
  27. TCHAR m_szVersion[50];
  28. TCHAR m_szVersionEnglish[50];
  29. BOOL m_bRegistryOK;
  30. BOOL m_bProblem;
  31. BOOL m_bFileMissing;
  32. BOOL m_bInstalled;
  33. DWORD m_dwDXVer;
  34. GUID m_guid;
  35. NetSP* m_pNetSPNext;
  36. };
  37. struct NetApp
  38. {
  39. TCHAR m_szName[200];
  40. TCHAR m_szGuid[100];
  41. TCHAR m_szExeFile[100];
  42. TCHAR m_szExePath[MAX_PATH];
  43. TCHAR m_szExeVersion[50];
  44. TCHAR m_szExeVersionEnglish[50];
  45. TCHAR m_szLauncherFile[100];
  46. TCHAR m_szLauncherPath[MAX_PATH];
  47. TCHAR m_szLauncherVersion[50];
  48. TCHAR m_szLauncherVersionEnglish[50];
  49. BOOL m_bRegistryOK;
  50. BOOL m_bProblem;
  51. BOOL m_bFileMissing;
  52. DWORD m_dwDXVer;
  53. NetApp* m_pNetAppNext;
  54. };
  55. struct NetInfo
  56. {
  57. NetSP* m_pNetSPFirst;
  58. NetApp* m_pNetAppFirst;
  59. TestResult m_testResult; // This is filled in by testnet.cpp
  60. };
  61. HRESULT GetNetInfo(SysInfo* pSysInfo, NetInfo** ppNetInfo);
  62. VOID DestroyNetInfo(NetInfo* pNetInfo);
  63. VOID DiagnoseNetInfo(SysInfo* pSysInfo, NetInfo* pNetInfo);
  64. #endif // NETINFO_H