From: "bubble" <bubble@riskm.com.tw>
Subject: linking problem in DPAPI
Date: Wed, 28 Dec 2005 17:15:05 +0800
Date: 2005-12-28T17:15:05+08:00 [thread overview]
Message-ID: <dotl36$pfh$1@netnews.hinet.net> (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;
next reply other threads:[~2005-12-28 9:15 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-28 9:15 bubble [this message]
2005-12-28 12:28 ` linking problem in DPAPI 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
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox