⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 protstor.h

📁 windows的加密api源码
💻 H
字号:
/////////////////////////////////////////////////////////////////////////////
//  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(
                             PNTAGUserList pUser
                             );

BOOL RestoreKeysetFromProtectedStorage(
                                       PNTAGUserList pUser,
                                       LPWSTR szPrompt,
                                       BYTE **ppbKey,
                                       DWORD *pcbKey,
                                       BOOL fSigKey,
                                       BOOL fMachineKeySet,
                                       BOOL *pfUIOnKey
                                       );

void RemoveKeysetFromMemory(
                            PNTAGUserList pUser
                            );

BOOL SetUIPrompt(
                 PNTAGUserList pUser,
                 LPWSTR szPrompt
                 );

BOOL SaveKeyToProtectedStorage(
                               PNTAGUserList pUser,
                               DWORD dwFlags,
                               LPWSTR szPrompt,
                               BOOL fSigKey,
                               BOOL fMachineKeySet
                               );

BOOL DeleteKeyFromProtectedStorage(
                                   NTAGUserList *pUser,
                                   PCSP_STRINGS pStrings,
                                   DWORD dwKeySpec,
                                   BOOL fMachineKeySet,
                                   BOOL fMigration
                                   );

BOOL DeleteFromProtectedStorage(
                                CONST char *pszUserID,
                                PCSP_STRINGS pStrings,
                                HKEY hRegKey,
                                BOOL fMachineKeySet
                                );

void FreePSInfo(
                PSTORE_INFO *pPStore
                );

#ifdef __cplusplus
}
#endif

#endif // __PROTSTOR_H__

⌨️ 快捷键说明

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