mirror of https://github.com/tongzx/nt5src
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
63 lines
1.3 KiB
//+---------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows NT Security
|
|
// Copyright (C) Microsoft Corporation, 1997 - 1999
|
|
//
|
|
// File: cryptnet.h
|
|
//
|
|
// Contents: Internal CryptNet API prototypes
|
|
//
|
|
// History: 22-Oct-97 kirtd Created
|
|
//
|
|
//----------------------------------------------------------------------------
|
|
#if !defined(__CRYPTNET_H__)
|
|
#define __CRYPTNET_H__
|
|
|
|
#if defined(__cplusplus)
|
|
extern "C" {
|
|
#endif
|
|
|
|
//
|
|
// I_CryptNetGetUserDsStoreUrl. Gets the URL to be used for open an
|
|
// LDAP store provider over a portion of the DS associated with the
|
|
// current user. The URL can be freed using CryptMemFree
|
|
//
|
|
|
|
BOOL WINAPI
|
|
I_CryptNetGetUserDsStoreUrl (
|
|
IN LPWSTR pwszUserAttribute,
|
|
OUT LPWSTR* ppwszUrl
|
|
);
|
|
|
|
//
|
|
// Returns TRUE if we are connected to the internet
|
|
//
|
|
BOOL
|
|
WINAPI
|
|
I_CryptNetIsConnected ();
|
|
|
|
typedef BOOL (WINAPI *PFN_I_CRYPTNET_IS_CONNECTED) ();
|
|
|
|
//
|
|
// Cracks the Url and returns the host name component.
|
|
//
|
|
BOOL
|
|
WINAPI
|
|
I_CryptNetGetHostNameFromUrl (
|
|
IN LPWSTR pwszUrl,
|
|
IN DWORD cchHostName,
|
|
OUT LPWSTR pwszHostName
|
|
);
|
|
|
|
typedef BOOL (WINAPI *PFN_I_CRYPTNET_GET_HOST_NAME_FROM_URL) (
|
|
IN LPWSTR pwszUrl,
|
|
IN DWORD cchHostName,
|
|
OUT LPWSTR pwszHostName
|
|
);
|
|
|
|
#if defined(__cplusplus)
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|