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.

63 lines
1.3 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows NT Security
  4. // Copyright (C) Microsoft Corporation, 1997 - 1999
  5. //
  6. // File: cryptnet.h
  7. //
  8. // Contents: Internal CryptNet API prototypes
  9. //
  10. // History: 22-Oct-97 kirtd Created
  11. //
  12. //----------------------------------------------------------------------------
  13. #if !defined(__CRYPTNET_H__)
  14. #define __CRYPTNET_H__
  15. #if defined(__cplusplus)
  16. extern "C" {
  17. #endif
  18. //
  19. // I_CryptNetGetUserDsStoreUrl. Gets the URL to be used for open an
  20. // LDAP store provider over a portion of the DS associated with the
  21. // current user. The URL can be freed using CryptMemFree
  22. //
  23. BOOL WINAPI
  24. I_CryptNetGetUserDsStoreUrl (
  25. IN LPWSTR pwszUserAttribute,
  26. OUT LPWSTR* ppwszUrl
  27. );
  28. //
  29. // Returns TRUE if we are connected to the internet
  30. //
  31. BOOL
  32. WINAPI
  33. I_CryptNetIsConnected ();
  34. typedef BOOL (WINAPI *PFN_I_CRYPTNET_IS_CONNECTED) ();
  35. //
  36. // Cracks the Url and returns the host name component.
  37. //
  38. BOOL
  39. WINAPI
  40. I_CryptNetGetHostNameFromUrl (
  41. IN LPWSTR pwszUrl,
  42. IN DWORD cchHostName,
  43. OUT LPWSTR pwszHostName
  44. );
  45. typedef BOOL (WINAPI *PFN_I_CRYPTNET_GET_HOST_NAME_FROM_URL) (
  46. IN LPWSTR pwszUrl,
  47. IN DWORD cchHostName,
  48. OUT LPWSTR pwszHostName
  49. );
  50. #if defined(__cplusplus)
  51. }
  52. #endif
  53. #endif