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.

124 lines
3.7 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright(c) Microsoft Corp., 1994-1995 **
  4. //*********************************************************************
  5. //
  6. // GLOBAL.H - central header file for Internet config library
  7. //
  8. // HISTORY:
  9. //
  10. // 96/05/22 markdu Created (from inetcfg.dll)
  11. //
  12. #ifndef _GLOBAL_H_
  13. #define _GLOBAL_H_
  14. #define STRICT // Use strict handle types
  15. #define _SHELL32_
  16. #ifdef DEBUG
  17. // component name for debug spew
  18. #define SZ_COMPNAME "ICFG32: "
  19. #endif // DEBUG
  20. #include <windows.h>
  21. #include <windowsx.h>
  22. #include <commctrl.h>
  23. #include <prsht.h>
  24. #include <regstr.h>
  25. #include "..\inc\oharestr.h"
  26. // various RNA header files
  27. #include <ras.h>
  28. //#include <rnaph.h>
  29. #include "..\inc\wizglob.h"
  30. #include "..\inc\wizdebug.h"
  31. #undef DATASEG_READONLY
  32. #define DATASEG_READONLY ".rdata"
  33. #include "inetcfg.h"
  34. #include "cfgapi.h"
  35. #include "clsutil.h"
  36. #include "tcpcmn.h"
  37. #include "ids.h"
  38. #include "strings.h"
  39. // Terminology: ISP - Internet Service Provider
  40. // Defines
  41. #define MAX_RES_LEN 255 // max length of string resources
  42. #define SMALL_BUF_LEN 48 // convenient size for small text buffers
  43. // Globals
  44. extern HINSTANCE ghInstance; // global module instance handle
  45. extern LPSTR gpszLastErrorText; // hold text of last error
  46. // Defines
  47. // error class defines for PrepareErrorMessage
  48. #define ERRCLS_STANDARD 0x0001
  49. #define ERRCLS_SETUPX 0x0002
  50. #define ERRCLS_RNA 0x0003
  51. #define ERRCLS_MAPI 0x0004
  52. #define OK 0 // success code for SETUPX class errors
  53. // functions in PROPMGR.C
  54. UINT GetConfig(CLIENTCONFIG * pClientConfig,DWORD * pdwErrCls);
  55. // functions in CALLOUT.C
  56. UINT InstallTCPIP(HWND hwndParent);
  57. UINT InstallPPPMAC(HWND hwndParent);
  58. // functions in UTIL.C
  59. int MsgBox(HWND hWnd,UINT nMsgID,UINT uIcon,UINT uButtons);
  60. int MsgBoxSz(HWND hWnd,LPSTR szText,UINT uIcon,UINT uButtons);
  61. //int _cdecl MsgBoxParam(HWND hWnd,UINT nMsgID,UINT uIcon,UINT uButtons,...);
  62. LPSTR LoadSz(UINT idString,LPTSTR lpszBuf,UINT cbBuf);
  63. VOID _cdecl PrepareErrorMessage(UINT uStrID,UINT uError,
  64. UINT uErrorClass,UINT uIcon,...);
  65. VOID GetErrorDescription(CHAR * pszErrorDesc,UINT cbErrorDesc,
  66. UINT uError,UINT uErrorClass);
  67. DWORD RunMlsetExe(HWND hwndOwner);
  68. VOID RemoveRunOnceEntry(UINT uResourceID);
  69. BOOL GenerateDefaultName(CHAR * pszName,DWORD cbName,CHAR * pszRegValName,
  70. UINT uIDDefName);
  71. BOOL GenerateComputerNameIfNeeded(VOID);
  72. DWORD MsgWaitForMultipleObjectsLoop(HANDLE hEvent);
  73. // 10/24/96 jmazner Normandy 6968
  74. // No longer neccessary thanks to Valdon's hooks for invoking ICW.
  75. //BOOL SetDesktopInternetIconToBrowser(VOID);
  76. VOID PrepareForRunOnceApp(VOID);
  77. // functions in INETAPI.C
  78. BOOL DoDNSCheck(HWND hwndParent,BOOL * pfNeedRestart);
  79. // functions in WIZDLL.C
  80. RETERR GetClientConfig(CLIENTCONFIG * pClientConfig);
  81. UINT InstallComponent(HWND hwndParent,DWORD dwComponent,DWORD dwParam);
  82. RETERR RemoveUnneededDefaultComponents(HWND hwndParent);
  83. RETERR RemoveProtocols(HWND hwndParent,DWORD dwRemoveFromCardType,DWORD dwProtocols);
  84. RETERR BeginNetcardTCPIPEnum(VOID);
  85. BOOL GetNextNetcardTCPIPNode(LPSTR pszTcpNode,WORD cbTcpNode,DWORD dwFlags);
  86. // structure for getting proc addresses of api functions
  87. typedef struct APIFCN {
  88. PVOID * ppFcnPtr;
  89. LPCSTR pszName;
  90. } APIFCN;
  91. #undef DATASEG_PERINSTANCE
  92. #define DATASEG_PERINSTANCE ".instance"
  93. #define DATASEG_SHARED ".data"
  94. #define DATASEG_DEFAULT DATASEG_SHARED
  95. #endif // _GLOBAL_H_