protstr.h

来自「windows的加密api源码」· C头文件 代码 · 共 76 行

H
76
字号
/////////////////////////////////////////////////////////////////////////////
//  FILE          : protstor.h                                             //
//  DESCRIPTION   :                                                        //
//  AUTHOR        :                                                        //
//  HISTORY       :                                                        //
//      Dec  4 1996 jeffspel  Create                                       //
//      Apr 21 1997 jeffspel  Changes for NT 5 tree                        //
//                                                                         //
//  Copyright (C) 1993 Microsoft Corporation   All Rights Reserved         //
/////////////////////////////////////////////////////////////////////////////

#ifndef __PROTSTOR_H__
#define __PROTSTOR_H__

#ifdef __cplusplus
extern "C" {
#endif

BOOL CheckPStoreAvailability(
                         PSTORE_INFO *pPStore
                         );

BOOL CreateNewPSKeyset(
                       PSTORE_INFO *pPStore,
                       DWORD dwFlags
                       );

BOOL GetKeysetTypeAndSubType(
                             Context_t *pContext
                             );

BOOL SetKeyTypeSubtype(
                       Context_t *pContext,
                       PKEY_TYPE_SUBTYPE pTypeSubtype
                       );

BOOL RestoreKeysetFromProtectedStorage(
                                       Context_t *pContext,
                                       Key_t *pKey,
                                       LPWSTR szPrompt,
                                       BOOL fSigKey,
                                       BOOL *pfUIOnKey
                                       );

BOOL SetKeysetTypeAndSubtype(
                             Context_t *pContext
                             );

BOOL SetUIPrompt(
                 Context_t *pContext,
                 LPWSTR szPrompt
                 );

BOOL DeleteKeyFromProtectedStorage(
                                   Context_t *pContext,
                                   PCSP_STRINGS pStrings,
                                   DWORD dwKeySpec,
                                   BOOL fMigration
                                   );

BOOL DeleteFromProtectedStorage(
                                IN Context_t *pContext,
                                PCSP_STRINGS pStrings,
                                IN BOOL fMigration
                                );

void FreePSInfo(
                PSTORE_INFO *pPStore
                );

#ifdef __cplusplus
}
#endif

#endif // __PROTSTOR_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?