KERB_SMARTCARD_CSP_INFO structure

来源:互联网 发布:windows激活密钥哪里有 编辑:程序博客网 时间:2024/05/19 01:30

from: http://msdn.microsoft.com/en-us/library/windows/desktop/bb545682%28v=vs.85%29.aspx      点击打开链接


The KERB_SMARTCARD_CSP_INFO structure contains information about a smart cardcryptographic service provider (CSP).

This structure is not declared in a public header.

Syntax

C++
typedef struct _KERB_SMARTCARD_CSP_INFO {  DWORD dwCspInfoLen;  DWORD MessageType;  union {    PVOID   ContextInformation;    ULONG64 SpaceHolderForWow64;  };  DWORD flags;  DWORD KeySpec;  ULONG nCardNameOffset;  ULONG nReaderNameOffset;  ULONG nContainerNameOffset;  ULONG nCSPNameOffset;  TCHAR bBuffer;} KERB_SMARTCARD_CSP_INFO, *PKERB_SMARTCARD_CSP_INFO;

Members

dwCspInfoLen

The size, in bytes, of this structure, including any appended data.

MessageType

The type of message being passed. This member must be set to 1.

ContextInformation

Reserved.

SpaceHolderForWow64

Reserved.

flags

Reserved.

KeySpec

The private key to use from the key container specified within the buffer bBuffer. The key can be one of the following values, defined in WinCrypt.h.

ValueMeaning
AT_KEYEXCHANGE
1

The key is a key-exchange key.

AT_SIGNATURE
2

The key is a signature key.

 

nCardNameOffset

The number of characters in the bBuffer buffer that precede the name of the smart card in that buffer.

Important  If the name of the smart card is not provided, the buffer must contain an empty string.

nReaderNameOffset

The number of characters in the bBuffer buffer that precede the name of the smart card reader in that buffer.

Important  If the name of the smart card reader is not provided, the buffer must contain an empty string.

nContainerNameOffset

The number of characters in the bBuffer buffer that precede the name of the key container in that buffer. This string cannot be empty.

nCSPNameOffset

The number of characters in the bBuffer buffer that precede the name of the CSP in that buffer.

bBuffer

An array of characters initialized to a length of sizeof(DWORD). This buffer contains the names referred to by thenCardNameOffset, nReaderNameOffset, nContainerNameOffset, andnCSPNameOffset members, as well as any additional data provided by the CSP.

Any names that are not provided must be represented in this buffer by empty strings.

Remarks

When this structure is serialized, the structure members must be aligned to boundaries that are multiples of 2 bytes.

Requirements

Minimum supported client

Windows Vista

Minimum supported server

Windows Server 2008

See also

KERB_CERTIFICATE_LOGON

 

 

Send comments about this topic to Microsoft

Build date: 9/5/2012

Did you find this helpful?

原创粉丝点击