57 {
58 int pcbStructInfo = 0;
59 if (!global::Interop.crypt32.CryptDecodeObjectPointer(CertEncodingType.All, lpszStructType, encoded, encoded.Length,
CryptDecodeObjectFlags.None,
null, ref pcbStructInfo))
60 {
62 }
63 byte* ptr = stackalloc byte[(int)(uint)pcbStructInfo];
64 if (!global::Interop.crypt32.CryptDecodeObjectPointer(CertEncodingType.All, lpszStructType, encoded, encoded.Length,
CryptDecodeObjectFlags.None, ptr, ref pcbStructInfo))
65 {
67 }
68 return receiver(ptr, pcbStructInfo);
69 }
static int GetLastWin32Error()