public static extern int CertStrToNameW( int dwCertEncodingType, [MarshalAs(UnmanagedType.LPWStr)] string pszX500, int dwStrType, IntPtr pvReserved, IntPtr pbEncoded, ref int pcbEncoded, IntPtr ppszError);