# CryptGetMsgParam

```csharp
[DllImport("Crypt32.dll", SetLastError = true)]
public static extern bool CryptGetMsgParam(
   IntPtr hCryptMsg,
   uint dwParamType,
   uint dwIndex,
   IntPtr pvData,
   ref uint pcbData
);
```

Microsoft documentation: [Link](https://learn.microsoft.com/en-us/windows/win32/api/wincrypt/nf-wincrypt-cryptmsggetparam)
