[DllImport("Crypt32.dll", SetLastError = true, CharSet = CharSet.Auto)]
public static extern bool CryptRetrieveObjectByUrl(
string pszUrl,
uint dwObjectType,
uint dwRetrievalFlags,
uint dwTimeout,
ref IntPtr ppvObject,
uint hAsyncRetrieve,
IntPtr pCredentials,
IntPtr pvVerify,
IntPtr pCryptProv,
IntPtr pAuxInfo
);