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.

108 lines
2.9 KiB

  1. /********************************************************************
  2. ICWCFG.H
  3. Copyright(c) Microsoft Corporation, 1996 - 97
  4. *** N O T F O R E X T E R N A L R E L E A S E *******
  5. *
  6. * This header file is not intended for distribution outside Microsoft.
  7. *
  8. ***********************************************************
  9. Header file for Internet Connection Wizard external configuration
  10. routines found in INETCFG.DLL.
  11. Routines:
  12. CheckConnectionWizard - Checks which parts of ICW are installed
  13. and if it has been run before. It optionally will start
  14. either the full or manual path of ICW if it is insalled
  15. but has not been run before.
  16. History: 10/22/96 Created
  17. 10/24/96 Added defines and typedefs
  18. 2/25/97 Added CreateDirectoryService -- jmazner
  19. 4/24/97 Removed InetCreate*, these are now owned
  20. by the Account Manager -- jmazner
  21. Support: This header file (and INETCFG.DLL) is supported by the
  22. Internet Connection Wizard team (alias icwcore). Please
  23. do not modify this directly.
  24. *********************************************************************/
  25. #ifndef _ICWCFG_H_
  26. //
  27. // defines
  28. //
  29. // ICW registry settings
  30. // HKEY_CURRENT_USER
  31. #define ICW_REGPATHSETTINGS TEXT("Software\\Microsoft\\Internet Connection Wizard")
  32. #define ICW_REGKEYCOMPLETED TEXT("Completed")
  33. #define ICW_REGKEYERROR TEXT("ICWError")
  34. // Maximum field lengths
  35. #define ICW_MAX_ACCTNAME 256
  36. #define ICW_MAX_PASSWORD 256 // PWLEN
  37. #define ICW_MAX_LOGONNAME 256 // UNLEN
  38. #define ICW_MAX_SERVERNAME 64
  39. #define ICW_MAX_RASNAME 256 // RAS_MaxEntryName
  40. #define ICW_MAX_EMAILNAME 64
  41. #define ICW_MAX_EMAILADDR 128
  42. // Bit-mapped flags
  43. // CheckConnectionWizard input flags
  44. #define ICW_CHECKSTATUS 0x0001
  45. #define ICW_LAUNCHFULL 0x0100
  46. #define ICW_LAUNCHMANUAL 0x0200
  47. #define ICW_USE_SHELLNEXT 0x0400
  48. #define ICW_FULL_SMARTSTART 0x0800
  49. // CheckConnectionWizard output flags
  50. #define ICW_FULLPRESENT 0x0001
  51. #define ICW_MANUALPRESENT 0x0002
  52. #define ICW_ALREADYRUN 0x0004
  53. #define ICW_LAUNCHEDFULL 0x0100
  54. #define ICW_LAUNCHEDMANUAL 0x0200
  55. // InetCreateMailNewsAccount input flags
  56. #define ICW_USEDEFAULTS 0x0001
  57. #ifdef __cplusplus
  58. extern "C"
  59. {
  60. #endif // __cplusplus
  61. //
  62. // external function typedefs
  63. //
  64. typedef DWORD (WINAPI *PFNCHECKCONNECTIONWIZARD) (DWORD, LPDWORD);
  65. typedef DWORD (WINAPI *PFNSETSHELLNEXT) (CHAR *);
  66. //
  67. // external function declarations
  68. //
  69. DWORD WINAPI CheckConnectionWizard(DWORD, LPDWORD);
  70. DWORD WINAPI SetShellNextA(CHAR *);
  71. DWORD WINAPI SetShellNextW(WCHAR *);
  72. #ifdef UNICODE
  73. #define SetShellNext SetShellNextW
  74. #else
  75. #define SetShellNext SetShellNextA
  76. #endif
  77. #ifdef __cplusplus
  78. }
  79. #endif // __cplusplus
  80. #endif // _ICWCFG_H_