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.

60 lines
2.0 KiB

  1. /**********************************************************************/
  2. /** Microsoft Windows/NT **/
  3. /** Copyright(c) Microsoft Corporation, 1997 - 1999 **/
  4. /**********************************************************************/
  5. /*
  6. eaphlp.h
  7. This file defines the following macros helper classes and functions:
  8. FILE HISTORY:
  9. */
  10. #ifndef _EAPHELPER_
  11. #define _EAPHELPER_
  12. #include <afxtempl.h>
  13. /*!--------------------------------------------------------------------------
  14. EnableChildControls
  15. Use this function to enable/disable/hide/show all child controls
  16. on a page (actually it will work with any child windows, the
  17. parent does not have to be a property page).
  18. Author: KennT
  19. ---------------------------------------------------------------------------*/
  20. HRESULT EnableChildControls(HWND hWnd, DWORD dwFlags);
  21. #define PROPPAGE_CHILD_SHOW 0x00000001
  22. #define PROPPAGE_CHILD_HIDE 0x00000002
  23. #define PROPPAGE_CHILD_ENABLE 0x00000004
  24. #define PROPPAGE_CHILD_DISABLE 0x00000008
  25. /*---------------------------------------------------------------------------
  26. Struct: AuthProviderData
  27. This structure is used to hold information for Authentication AND
  28. Accounting providers.
  29. ---------------------------------------------------------------------------*/
  30. struct AuthProviderData
  31. {
  32. // The following fields will hold data for ALL auth/acct/EAP providers
  33. ::CString m_stTitle;
  34. ::CString m_stConfigCLSID; // CLSID for config object
  35. ::CString m_stProviderTypeGUID; // GUID for the provider type
  36. // These fields are used by auth/acct providers.
  37. ::CString m_stGuid; // the identifying guid
  38. // This flag is used for EAP providers
  39. ::CString m_stKey; // name of registry key (for this provider)
  40. BOOL m_fSupportsEncryption; // used by EAP provider data
  41. DWORD m_dwStandaloneSupported;
  42. };
  43. typedef CArray<AuthProviderData, AuthProviderData&> AuthProviderArray;
  44. HRESULT GetEapProviders(LPCTSTR machineName, AuthProviderArray *pProvList);
  45. #endif //_EAPHELPER_