Export (0) Print
Expand All

ICertEncodeStringArray::GetStringType method

The GetStringType method returns the type of string values that the string array contains.

Syntax


HRESULT GetStringType(
  [out] LONG *pStringType
);

Parameters

pStringType [out]

A pointer to a Long that represents the string type. For a list of string types, see Remarks.

Return value

C++

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

VB

The return value indicates the type of strings in the string array. For a list of string types, see Remarks.

Remarks

The following table lists the types of strings that the string array can contain. For more information about RDN types, see the CryptoAPI 2.0 documents.

String typeMeaning
CERT_RDN_ANY_TYPEFor encoding an X509_UNICODE_NAME name.
CERT_RDN_NUMERIC_STRINGThe numerals 0 through 9 and the space character (8 bit).
CERT_RDN_PRINTABLE_STRINGPrintable characters (8 bit).
CERT_RDN_T61_STRINGT.61 encoded characters (8 bit).
CERT_RDN_VIDEOTEX_STRINGVIDEOTEX characters.
CERT_RDN_IA5_STRINGIA5 (ASCII) characters.
CERT_RDN_GRAPHIC_STRINGA string of ISO-defined GRAPHIC characters.
CERT_RDN_ISO646_STRING128 character set (8 bit).
CERT_RDN_GENERAL_STRINGA string of ISO-defined GENERAL characters.
CERT_RDN_INT4_STRINGAn array of INT4 values (32 bit).
CERT_RDN_UNICODE_STRINGUnicode characters (16 bit).

 

Examples

For an example that uses the GetStringType method, see the ICertEncodeStringArray::Encode method.

Requirements

Minimum supported client

None supported

Minimum supported server

Windows Server 2003 [desktop apps only]

Header

Certenc.h (include Certsrv.h)

Library

Certidl.lib

DLL

Certenc.dll

IID

IID_ICertEncodeStringArray is defined as 12a88820-7494-11d0-8816-0a0c903b83cc

See also

ICertEncodeStringArray
ICertEncodeStringArray::Reset

 

 

Community Additions

ADD
Show:
© 2015 Microsoft