1 message in net.java.dev.jna.usersGetLastError always returns zero
FromSent OnAttachments
Kim ValentineAug 3, 2007 4:11 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:GetLastError always returns zeroActions...
From:Kim Valentine (km_v@yahoo.co.uk)
Date:Aug 3, 2007 4:11:23 am
List:net.java.dev.jna.users

Hi,

I am trying to use various Kernel32 APIs that signal errors by returning zero
or false, but the reason for the failure has to be obtained by calling GetLastError, I
mapped that API, but always get zero returned. I suspect that some call required
by JNA is calling a windows function that overwrites the lastError. I tried
setting up my own JNI dll that only contained a call to GetLastError, but this
too always returns zero. Has anyone any ideas how I can get this error code? Rgds Kim