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.
 
 
 
 
 
 

82 lines
1.5 KiB

/*++
Copyright (c) 1997-1999 Microsoft Corporation
Module Name:
efssrv.hxx
Abstract:
EFS (Encrypting File System) function prototypes.
Author:
Robert Reichel (RobertRe)
Robert Gu (RobertG)
Environment:
Revision History:
--*/
#ifndef _USERKEY_
#define _USERKEY_
#ifdef __cplusplus
extern "C" {
#endif
//
// Exported functions
//
LONG
GetCurrentKey(
IN PEFS_USER_INFO pEfsUserInfo,
OUT HCRYPTKEY * hKey OPTIONAL,
OUT HCRYPTPROV * hProv OPTIONAL,
OUT LPWSTR * ContainerName,
OUT LPWSTR * ProviderName,
OUT PDWORD ProviderType,
OUT LPWSTR * DisplayInfo,
OUT PBYTE * pbHash,
OUT PDWORD cbHash
);
DWORD
GetKeyInfoFromCertHash(
IN OUT PEFS_USER_INFO pEfsUserInfo,
IN PBYTE pbHash,
IN DWORD cbHash,
OUT HCRYPTKEY * hKey,
OUT HCRYPTPROV * hProv,
OUT LPWSTR * ContainerName,
OUT LPWSTR * ProviderName,
OUT LPWSTR * DisplayInfo,
OUT PBOOLEAN pbIsValid OPTIONAL
);
BOOLEAN
CurrentHashOK(
IN PEFS_USER_INFO pEfsUserInfo,
IN PBYTE pbHash,
IN DWORD cbHash,
OUT DWORD *dFlag
);
DWORD
GetCurrentHash(
IN PEFS_USER_INFO pEfsUserInfo,
OUT PBYTE *pbHash,
OUT DWORD *cbHash
);
#ifdef __cplusplus
} // extern C
#endif
#endif // _USERKEY_