public static extern bool CertStrToName( X509Encoding dwCertEncodingType, String pszX500, CertNameType dwStrType, IntPtr pvReserved, [In, Out] byte[] pbEncoded, ref int pcbEncoded, IntPtr other);
internal static extern int CertNameToStr(X509Encoding dwCertEncodingType, ref CRYPT_DATA_BLOB pName, CertNameType dwStrType, [In, Out] char[] psz, int csz);