72 {
73 int pcbStructInfo = 0;
74 if (!global::Interop.crypt32.CryptDecodeObjectPointer(CertEncodingType.All, lpszStructType, encoded, encoded.Length,
CryptDecodeObjectFlags.None,
null, ref pcbStructInfo))
75 {
77 }
78 byte* ptr = stackalloc byte[(int)(uint)pcbStructInfo];
79 if (!global::Interop.crypt32.CryptDecodeObjectPointer(CertEncodingType.All, lpszStructType, encoded, encoded.Length,
CryptDecodeObjectFlags.None, ptr, ref pcbStructInfo))
80 {
82 }
83 return receiver(ptr, pcbStructInfo);
84 }
static int GetLastWin32Error()