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.

122 lines
3.8 KiB

  1. //*********************************************************************
  2. //* Microsoft Windows **
  3. //* Copyright (c) 1994-1999 Microsoft Corporation
  4. //*********************************************************************
  5. //
  6. // WIZARD.H - central header file for Internet setup/signup wizard
  7. //
  8. // HISTORY:
  9. //
  10. // 11/20/94 jeremys Created.
  11. // 96/02/24 markdu Added RNAPH.H
  12. // 96/02/27 markdu Replaced internal RNA header files with RAS.H
  13. // 96/03/07 markdu Added gpEnumModem
  14. // 96/03/09 markdu Moved all rnacall function prototypes to rnacall.h
  15. // 96/03/09 markdu Added gpRasEntry
  16. // 96/03/23 markdu Replaced CLIENTINFO references with CLIENTCONFIG.
  17. // 96/03/26 markdu Put #ifdef __cplusplus around extern "C"
  18. // 96/04/06 markdu NASH BUG 15653 Use exported autodial API.
  19. // 96/04/24 markdu NASH BUG 19289 Added /NOMSN command line flag
  20. // 96/05/14 markdu NASH BUG 21706 Removed BigFont functions.
  21. // 96/05/14 markdu NASH BUG 22681 Took out mail and news pages.
  22. //
  23. #ifndef _WIZARD_H_
  24. #define _WIZARD_H_
  25. #define STRICT // Use strict handle types
  26. #define _SHELL32_
  27. #include <windows.h>
  28. #include <commctrl.h>
  29. #include <oharestr.h>
  30. // various RNA header files
  31. #pragma pack(8)
  32. #include <ras.h>
  33. #include <ras2.h>
  34. #pragma pack()
  35. #include <raserror.h>
  36. #include "rnacall.h"
  37. #include <wizglob.h>
  38. #include <wizdebug.h>
  39. #undef DATASEG_READONLY
  40. #define DATASEG_READONLY ".rdata"
  41. #include "cfgapi.h"
  42. #include "clsutil.h"
  43. #include "icfgcall.h"
  44. #include "ids.h"
  45. // Globals
  46. extern ENUM_MODEM* gpEnumModem; // modem enumeration object
  47. extern HINSTANCE ghInstance; // global module instance handle
  48. // Defines
  49. #define MAX_REG_LEN 2048 // max length of registry entries
  50. #define MAX_RES_LEN 255 // max length of string resources
  51. #define SMALL_BUF_LEN 48 // convenient size for small text buffers
  52. // error class defines for DisplayErrorMessage
  53. #define ERRCLS_STANDARD 0x0001
  54. #define ERRCLS_SETUPX 0x0002
  55. //#define ERRCLS_RNA 0x0003
  56. //#define ERRCLS_MAPI 0x0004
  57. // functions in TCPCFG.CPP
  58. HRESULT WarnIfServerBound(HWND hDlg,DWORD dwCardFlags,BOOL* pfNeedsRestart);
  59. HRESULT RemoveIfServerBound(HWND hDlg,DWORD dwCardFlags,BOOL* pfNeedsRestart);
  60. // functions in CALLOUT.C
  61. UINT InvokeModemWizard(HWND hwndToHide);
  62. // functions in UTIL.C
  63. int MsgBox(HWND hWnd,UINT nMsgID,UINT uIcon,UINT uButtons);
  64. int MsgBoxSz(HWND hWnd,LPSTR szText,UINT uIcon,UINT uButtons);
  65. // jmazner 11/6/96 modified for RISC compatability
  66. //int _cdecl MsgBoxParam(HWND hWnd,UINT nMsgID,UINT uIcon,UINT uButtons,...);
  67. int _cdecl MsgBoxParam(HWND hWnd,UINT nMsgID,UINT uIcon,UINT uButtons, LPSTR szParam = NULL);
  68. LPSTR LoadSz(UINT idString,LPSTR lpszBuf,UINT cbBuf);
  69. // modified for RISC compatability
  70. //VOID _cdecl DisplayErrorMessage(HWND hWnd,UINT uStrID,UINT uError,
  71. // UINT uErrorClass,UINT uIcon,...);
  72. VOID _cdecl DisplayErrorMessage(HWND hWnd,UINT uStrID,UINT uError,
  73. UINT uErrorClass,UINT uIcon,LPSTR szArg = NULL);
  74. VOID GetErrorDescription(CHAR * pszErrorDesc,UINT cbErrorDesc,
  75. UINT uError,UINT uErrorClass);
  76. DWORD MsgWaitForMultipleObjectsLoop(HANDLE hEvent);
  77. // structure for getting proc addresses of api functions
  78. typedef struct APIFCN {
  79. PVOID * ppFcnPtr;
  80. LPCSTR pszName;
  81. } APIFCN;
  82. #undef DATASEG_PERINSTANCE
  83. #define DATASEG_PERINSTANCE ".instance"
  84. #define DATASEG_SHARED ".data"
  85. #define DATASEG_DEFAULT DATASEG_SHARED
  86. inline BOOL IsNT(void)
  87. {
  88. OSVERSIONINFO OsVersionInfo;
  89. ZeroMemory(&OsVersionInfo, sizeof(OSVERSIONINFO));
  90. OsVersionInfo.dwOSVersionInfoSize = sizeof(OSVERSIONINFO);
  91. GetVersionEx(&OsVersionInfo);
  92. return (VER_PLATFORM_WIN32_NT == OsVersionInfo.dwPlatformId);
  93. }
  94. #endif // _WIZARD_H_