public static extern bool CryptStringToBinary( [In] string pszString, [In] uint cchString, [In] CryptStringFlags dwFlags, [Out] IntPtr pbBinary, [In, Out] ref uint pcbBinary, [Out] out uint pdwSkip, [Out] out CryptStringFlags pdwFlags);
internal static extern bool CryptStringToBinary( [MarshalAs(UnmanagedType.LPWStr)] string pszString, int stringLength, CryptStringFlags dwFlags, [In, Out] byte[] pbBinary, ref uint pcbBinary, out uint pdwSkip, out uint pdwFlags );