CryptMsgClose

[DllImport("Crypt32.dll", SetLastError = true)]
public static extern bool CryptMsgClose(
   IntPtr hCryptMsg
);

Microsoft documentation: Link

Last updated