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.

121 lines
3.6 KiB

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