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.

247 lines
6.7 KiB

  1. // Copyright (c) 1997, Microsoft Corporation, all rights reserved
  2. //
  3. // entryps.h
  4. // Remote Access Common Dialog APIs
  5. // Phonebook Entry property sheet
  6. //
  7. // 12/14/97 Shaun Cox (split out from entryps.c)
  8. #ifndef _ENTRYPS_H_
  9. #define _ENTRYPS_H_
  10. #include "inetcfgp.h"
  11. #include "netconp.h"
  12. // Phonebook Entry property sheet context block. All property pages refer to
  13. // the single context block is associated with the sheet.
  14. //
  15. typedef struct
  16. _PEINFO
  17. {
  18. // Common input arguments.
  19. //
  20. EINFO* pArgs;
  21. // Property sheet dialog and property page handles. 'hwndFirstPage' is
  22. // the handle of the first property page initialized. This is the page
  23. // that allocates and frees the context block.
  24. //
  25. // Note the "Network" page is missing. This "NCPA" page, developed
  26. // separately by ShaunCo, does not use this shared area for page specfic
  27. // controls, instead returning users selections via the "penettab.h"
  28. // interface.
  29. //
  30. HWND hwndDlg;
  31. HWND hwndFirstPage;
  32. HWND hwndGe;
  33. HWND hwndOe;
  34. HWND hwndLo;
  35. HWND hwndFw;
  36. // General page.
  37. //
  38. HWND hwndLvDevices;
  39. HWND hwndLbDevices;
  40. HWND hwndPbUp;
  41. HWND hwndPbDown;
  42. HWND hwndCbSharedPhoneNumbers;
  43. HWND hwndPbConfigureDevice;
  44. HWND hwndGbPhoneNumber;
  45. HWND hwndStAreaCodes;
  46. HWND hwndClbAreaCodes;
  47. HWND hwndStCountryCodes;
  48. HWND hwndLbCountryCodes;
  49. HWND hwndStPhoneNumber;
  50. HWND hwndEbPhoneNumber;
  51. HWND hwndCbUseDialingRules;
  52. HWND hwndPbDialingRules;
  53. HWND hwndPbAlternates;
  54. HWND hwndCbShowIcon;
  55. HWND hwndEbHostName;
  56. HWND hwndCbDialAnotherFirst;
  57. HWND hwndLbDialAnotherFirst;
  58. HWND hwndEbBroadbandService;
  59. // Options page.
  60. //
  61. HWND hwndCbDisplayProgress;
  62. HWND hwndCbPreviewUserPw;
  63. HWND hwndCbPreviewDomain;
  64. HWND hwndCbPreviewNumber;
  65. HWND hwndEbRedialAttempts;
  66. HWND hwndLbRedialTimes;
  67. HWND hwndLbIdleTimes;
  68. HWND hwndCbRedialOnDrop;
  69. HWND hwndGbMultipleDevices;
  70. HWND hwndLbMultipleDevices;
  71. HWND hwndPbConfigureDialing;
  72. HWND hwndPbX25;
  73. HWND hwndPbTunnel;
  74. HWND hwndRbPersistent; // only for fRouter
  75. HWND hwndRbDemandDial; // only for fRouter
  76. // Security page.
  77. //
  78. HWND hwndGbSecurityOptions;
  79. HWND hwndRbTypicalSecurity;
  80. HWND hwndStAuths;
  81. HWND hwndLbAuths;
  82. HWND hwndCbUseWindowsPw;
  83. HWND hwndCbEncryption;
  84. HWND hwndRbAdvancedSecurity;
  85. HWND hwndStAdvancedText;
  86. HWND hwndPbAdvanced;
  87. HWND hwndPbIPSec; //Only for VPN
  88. HWND hwndGbScripting;
  89. HWND hwndCbRunScript;
  90. HWND hwndCbTerminal;
  91. HWND hwndLbScripts;
  92. HWND hwndPbEdit;
  93. HWND hwndPbBrowse;
  94. // Networking page.
  95. //
  96. HWND hwndLbServerType;
  97. HWND hwndPbSettings;
  98. HWND hwndLvComponents;
  99. HWND hwndPbAdd;
  100. HWND hwndPbRemove;
  101. HWND hwndPbProperties;
  102. HWND hwndDescription;
  103. // Indicates that the informational popup noting that SLIP does not
  104. // support any authentication settings should appear the next time the
  105. // Security page is activated.
  106. //
  107. BOOL fShowSlipPopup;
  108. // The "restore" states of the typical security mode listbox and
  109. // checkboxes. Initialized in LoInit and set whenever the controls are
  110. // disabled.
  111. //
  112. DWORD iLbAuths;
  113. BOOL fUseWindowsPw;
  114. BOOL fEncryption;
  115. // MoveUp/MoveDown icons, for enabled/disabled cases.
  116. //
  117. HANDLE hiconUpArr;
  118. HANDLE hiconDnArr;
  119. HANDLE hiconUpArrDis;
  120. HANDLE hiconDnArrDis;
  121. // The currently displayed link node, i.e. either the node of the selected
  122. // device or the shared node. This is a shortcut for GeAlternates, that
  123. // keeps all the lookup code in GeUpdatePhoneNumberFields.
  124. //
  125. DTLNODE* pCurLinkNode;
  126. // The currently selected device. Used to store phone number information
  127. // for the just unselected device when a new device is selected.
  128. //
  129. INT iDeviceSelected;
  130. // Complex phone number helper context block, and a flag indicating if the
  131. // block has been initialized.
  132. //
  133. CUINFO cuinfo;
  134. BOOL fCuInfoInitialized;
  135. // After dial scripting helper context block, and a flag indicating if the
  136. // block has been initialized.
  137. //
  138. SUINFO suinfo;
  139. BOOL fSuInfoInitialized;
  140. // Flags whether the user authorized a reboot after installing or removing
  141. // and networking component.
  142. //
  143. BOOL fRebootAlreadyRequested;
  144. // List of area codes passed CuInit plus all strings retrieved with
  145. // CuGetInfo. The list is an editing duplicate of the one from the
  146. // PBUSER.
  147. //
  148. DTLLIST* pListAreaCodes;
  149. // Stash/restore values for Options page checkboxes.
  150. //
  151. BOOL fPreviewUserPw;
  152. BOOL fPreviewDomain;
  153. // Set when user changes to "Typical smartcard" security. This causes the
  154. // registry based association of EAP per-user information to be discarded,
  155. // sort of like flushing cached credentials.
  156. //
  157. BOOL fDiscardEapUserData;
  158. // Set true on the first click of the Typical or Advanced radio button on
  159. // the security page, false before. The first click is the one
  160. // artificially generated in LoInit. The Advanced click handler uses the
  161. // information to avoid incorrectly adopting the Typical defaults in the
  162. // case of Advanced settings.
  163. //
  164. BOOL fAuthRbInitialized;
  165. // Used by the networking page
  166. //
  167. INetCfg* pNetCfg;
  168. BOOL fInitCom;
  169. BOOL fReadOnly; // Netcfg was initialized in
  170. // read-only mode
  171. BOOL fNonAdmin; // Run in non-admin mode (406630)
  172. BOOL fNetCfgLock;// NetCfg needs to be unlocked
  173. // when uninited.
  174. SP_CLASSIMAGELIST_DATA cild;
  175. INetConnectionUiUtilities * pNetConUtilities;
  176. IUnknown* punkUiInfoCallback;
  177. // Set if COM has been initialized (necessary for calls to netshell).
  178. //
  179. BOOL fComInitialized;
  180. // Keep track of whether we have shown this warning, or if it was disabled by the user
  181. //
  182. BOOL fShowDisableFirewallWarning;
  183. }
  184. PEINFO;
  185. INetCfgComponent*
  186. PComponentFromItemIndex (
  187. HWND hwndLv,
  188. int iItem);
  189. INetCfgComponent*
  190. PComponentFromCurSel (
  191. HWND hwndLv,
  192. int* piItem);
  193. HRESULT
  194. HrNeRefreshListView (
  195. PEINFO* pInfo);
  196. void
  197. NeEnableComponent (
  198. PEINFO* pInfo,
  199. INetCfgComponent* pComponent,
  200. BOOL fEnable);
  201. BOOL
  202. NeIsComponentEnabled (
  203. PEINFO* pInfo,
  204. INetCfgComponent* pComponent);
  205. void
  206. NeShowComponentProperties (
  207. IN PEINFO* pInfo);
  208. ULONG
  209. ReleaseObj (
  210. void* punk);
  211. #endif // _ENTRYPS_H_