comp.lang.ada
 help / color / mirror / Atom feed
* linking problem in DPAPI
@ 2005-12-28  9:15 bubble
  2005-12-28 12:28 ` Stephen Leake
  0 siblings, 1 reply; 12+ messages in thread
From: bubble @ 2005-12-28  9:15 UTC (permalink / raw)


dear all:
I got a problem again :)

I am write a little security binding for my application.
and I got a error message.
....app.o(.text+0x3914):app.adb: undefined reference to 
`CryptProtectData@28'

what's the problem?
give me a hint. thanks
my compiler is [gnat gpl 2005] and my OS is windows xp.



with Win32;
With Win32.Windef;

package app.Security Is


   type Data_Blob is record
      Cbdata : Win32.DWORD;
      Pbdata : Win32.PBYTE;
   end record;
   Pragma Convention(c_pass_by_copy,Data_Blob);

   Type Access_Data_Blob Is Access All Data_Blob;

   Type CRYPTPROTECT_PROMPTSTRUCT Is Record
      Cbsize:Win32.Dword;
      DwPromptFlags:Win32.DWord;
      Hwandapp:Win32.Windef.Hwnd;
      SzPrompt:Win32.Lpcwstr;
   End Record;
   Pragma Convention(c_pass_by_copy,CRYPTPROTECT_PROMPTSTRUCT);
   Type Access_CRYPTPROTECT_PROMPTSTRUCT Is Access All 
CRYPTPROTECT_PROMPTSTRUCT;


   Function CryptProtectData(Pdatain:Access_Data_Blob;
                             SzDataDescr:Win32.Lpcwstr;
                             POptionalEntropy:Access_Data_Blob;
                             PvReserved:Win32.Pvoid;
                             pPromptStruct 
:Access_CRYPTPROTECT_PROMPTSTRUCT;
                             dwFlags :Win32.Dword;
                             Pdataout:Access_Data_Blob) Return Win32.Bool;
   Pragma Import(Stdcall,CryptProtectData,"CryptProtectData");
   Pragma Linker_Options("-lcrypt32");




end app.Security;





^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2006-01-03 11:22 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-28  9:15 linking problem in DPAPI bubble
2005-12-28 12:28 ` Stephen Leake
2005-12-29  4:19   ` bubble
2005-12-29 13:39     ` Jeffrey Creem
2005-12-29 21:38     ` Stephen Leake
2005-12-30  4:07       ` bubble
2005-12-31 12:56         ` Stephen Leake
2005-12-31 14:32           ` Pascal Obry
2006-01-03  7:10         ` bubble
2006-01-03 11:22           ` Stephen Leake
2005-12-29  6:23   ` bubble
2005-12-29 21:37     ` Stephen Leake

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox