
June 8th, 2004, 04:17 PM
|
|
Registered User
|
|
Join Date: Jun 2004
Location: Ličge (Belgium)
Posts: 2
Time spent in forums: < 1 sec
Reputation Power: 0
|
|
|
Calling CreateFile in a 16-bit program
Hi all !
I hope I've chosen the right forum - please excuse me if not.
I'm trying to call the CreateFile function of kernel32.dll from a 16-bit program (written in BPW 7.0), using the thunk functions of the 16-bit kernel (LoadLibraryEx32W, FreeLibrary32W, GetProcAddress32W, GetVDMPointer32W and CallProc32W).
Under Windows NT 4.0 (SP6) and Windows 2000 Pro (SP4) I get an access violation error in NTDLL.DLL.
I've verified all the parameters and I've converted all 16:16 pointers to linear addresses : it still doesn't work.
It's the first time I get an error with the thunk functions.
Could someone explain me what's wrong ?
|