Re: using CryptUnprotectData api from c#

From: Dominick Baier [DevelopMentor] (dbaier_at_pleasepleasenospamdevelop.com)
Date: 06/30/05


Date: Thu, 30 Jun 2005 07:55:42 -0700

Hello ziggy,

i have a wrapper for that up on my blog:
http://www.leastprivilege.com/PermaLink.aspx?guid=ebd9956e-a36c-4b57-8d58-6ff79a60e43f

maybe that helps to track down the problem

---------------------------------------
Dominick Baier - DevelopMentor
http://www.leastprivilege.com

> Hi,
>
> i'm trying to use function from crypt32.dll in dot net, and get
> exception:
>
> An unhandled exception of type 'System.TypeLoadException' occurred in
> WindowsApplication1.exe
>
> Additional information: Could not load type WinApis from assembly
> WindowsApplication1, Version=1.0.2006.19524, Culture=neutral,
> PublicKeyToken=null because the method CryptUnprotectData has no RVA.
>
> can anyone shade some light on the subject?
>
> TIA, z.
>



Relevant Pages