C# Class Opc.Ua.Win32

Datei anzeigen Open project: OPCFoundation/Misc-Tools

Public Methods

Method Description
Decode_CERT_INFO ( IntPtr pEncoded, int iEncodedSize ) : CRL_INFO

Decodes a CERT_INFO.

Decode_CERT_NAME_BLOB ( CERT_NAME_BLOB blob ) : string

Decodes a CERT_NAME_BLOB.

Decode_CERT_SIGNED_CONTENT_INFO ( IntPtr pEncoded, int iEncodedSize ) : CERT_SIGNED_CONTENT_INFO

Decodes a CERT_SIGNED_CONTENT_INFO.

Decode_FILETIME ( System filetime ) : System.DateTime

Decodes a WIN32 FILETIME.

Encode_CERT_INFO ( CERT_INFO info, IntPtr &pEncoded, int &encodedSize ) : void

Encodes a CERT_INFO.

Encode_CERT_NAME_BLOB ( string name, CERT_NAME_BLOB &pName ) : void

Encodes a CERT_NAME_BLOB

Encode_FILETIME ( System.DateTime datetime ) : System.Runtime.InteropServices.ComTypes.FILETIME

Encodes a WIN32 FILETIME.

GetLastError ( uint code, string format ) : Exception

Throws an exception with the last WIN32 error code.

Private Methods

Method Description
CertNameToStrW ( int dwCertEncodingType, IntPtr pName, int dwStrType, IntPtr psz, int csz ) : int
CertStrToNameW ( int dwCertEncodingType, [ pszX500, int dwStrType, IntPtr pvReserved, IntPtr pbEncoded, int &pcbEncoded, IntPtr ppszError ) : int
CertVerifyCRLRevocation ( int dwCertEncodingType, IntPtr pCertId, int cCrlInfo, IntPtr rgpCrlInfo ) : int
ChangeSubjectNameDelimiter ( string name, char delimiter ) : string

Changes the delimiter used to seperate fields in a subject name.

CryptDecodeObjectEx ( int dwCertEncodingType, IntPtr lpszStructType, IntPtr pbEncoded, int cbEncoded, int dwFlags, IntPtr pDecodePara, IntPtr pvStructInfo, int &pcbStructInfo ) : int
CryptEncodeObjectEx ( int dwCertEncodingType, IntPtr lpszStructType, IntPtr pvStructInfo, int dwFlags, IntPtr pEncodePara, IntPtr pvEncoded, int &pcbEncoded ) : int
CryptVerifyCertificateSignature ( IntPtr hCryptProv, Int32 dwCertEncodingType, IntPtr pbEncoded, Int32 cbEncoded, CERT_PUBLIC_KEY_INFO &pPublicKey ) : int
GetLastError ( ) : int
memcpy ( IntPtr dest, IntPtr src, int count ) : IntPtr

Method Details

Decode_CERT_INFO() public static method

Decodes a CERT_INFO.
public static Decode_CERT_INFO ( IntPtr pEncoded, int iEncodedSize ) : CRL_INFO
pEncoded System.IntPtr
iEncodedSize int
return CRL_INFO

Decode_CERT_NAME_BLOB() public static method

Decodes a CERT_NAME_BLOB.
public static Decode_CERT_NAME_BLOB ( CERT_NAME_BLOB blob ) : string
blob CERT_NAME_BLOB
return string

Decode_CERT_SIGNED_CONTENT_INFO() public static method

Decodes a CERT_SIGNED_CONTENT_INFO.
public static Decode_CERT_SIGNED_CONTENT_INFO ( IntPtr pEncoded, int iEncodedSize ) : CERT_SIGNED_CONTENT_INFO
pEncoded System.IntPtr
iEncodedSize int
return CERT_SIGNED_CONTENT_INFO

Decode_FILETIME() public static method

Decodes a WIN32 FILETIME.
public static Decode_FILETIME ( System filetime ) : System.DateTime
filetime System
return System.DateTime

Encode_CERT_INFO() public static method

Encodes a CERT_INFO.
public static Encode_CERT_INFO ( CERT_INFO info, IntPtr &pEncoded, int &encodedSize ) : void
info CERT_INFO
pEncoded System.IntPtr
encodedSize int
return void

Encode_CERT_NAME_BLOB() public static method

Encodes a CERT_NAME_BLOB
public static Encode_CERT_NAME_BLOB ( string name, CERT_NAME_BLOB &pName ) : void
name string
pName CERT_NAME_BLOB
return void

Encode_FILETIME() public static method

Encodes a WIN32 FILETIME.
public static Encode_FILETIME ( System.DateTime datetime ) : System.Runtime.InteropServices.ComTypes.FILETIME
datetime System.DateTime
return System.Runtime.InteropServices.ComTypes.FILETIME

GetLastError() public static method

Throws an exception with the last WIN32 error code.
public static GetLastError ( uint code, string format ) : Exception
code uint
format string
return System.Exception