Im trying to call this dll in the system32 dir. but with know luck!!

this is a web app the asp is calling MY GenCrypto.dll and this dll calles advapi32.dll from the system32 dir

error's like = "he system cannot find the file specified"

or "dependencies missing for GenCrypto.dll"

Sample code


Private Declare Function CryptAcquireContext Lib "advapi32.dll" Alias "CryptAcquireContextW"(ByRef phProv As Integer, ByRef pszContainer As Byte, ByRef pszProvider As Byte, ByVal dwProvType As Integer, ByVal dwFlags As Integer) As Integer

this code fails with "The system cannot find the file specified"

what's missing, security, a link, to the oject, or am i just stupid?

the same dll code has been built for an GenCrypto.exe (works fine) and the dll being called by the web app not working..

Thanks