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.
58 lines
1.3 KiB
58 lines
1.3 KiB
|
|
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1996 - 1999
|
|
//
|
|
// File: pvk.h
|
|
//
|
|
// Contents: Shared types and functions
|
|
//
|
|
// APIs:
|
|
//
|
|
// History: 12-May-96 philh created
|
|
//--------------------------------------------------------------------------
|
|
|
|
#ifndef __PVK_H__
|
|
#define __PVK_H__
|
|
|
|
#include "pvkhlpr.h"
|
|
#include "pvkdlgs.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
//+-------------------------------------------------------------------------
|
|
// Pvk allocation and free routines
|
|
//--------------------------------------------------------------------------
|
|
void *PvkAlloc(
|
|
IN size_t cbBytes
|
|
);
|
|
void PvkFree(
|
|
IN void *pv
|
|
);
|
|
|
|
|
|
//+-------------------------------------------------------------------------
|
|
// Enter or Create Private Key Password Dialog Box
|
|
//--------------------------------------------------------------------------
|
|
enum PASSWORD_TYPE {
|
|
ENTER_PASSWORD = 0,
|
|
CREATE_PASSWORD
|
|
};
|
|
|
|
int PvkDlgGetKeyPassword(
|
|
IN PASSWORD_TYPE PasswordType,
|
|
IN HWND hwndOwner,
|
|
IN LPCWSTR pwszKeyName,
|
|
OUT BYTE **ppbPassword,
|
|
OUT DWORD *pcbPassword
|
|
);
|
|
|
|
#ifdef __cplusplus
|
|
} // Balance extern "C" above
|
|
#endif
|
|
|
|
#endif
|