Reference

ThunkInitLS(3w)

NAME

ThunkInitLS (KERNEL32.43)

SYNOPSIS

DWORD ThunkInitLS
(
LPDWORD thunk,
LPCSTR thkbuf,
DWORD len,
LPCSTR dll16,
LPCSTR dll32
)

PARAMS

thunk [In] Win32 thunk.

thkbuf [In] thkbuffer name in Win16 dll.

len [In] thkbuffer length.

dll16 [In] name of Win16 dll.

[In] name of Win32 dll (FIXME: not used?).

DESCRIPTION

A thunkbuffer link routine The thunkbuf looks like:

00: DWORD length ? don't know exactly 04: SEGPTR pointer ? where does it point to? The pointer pointer is written into the first DWORD of 'thunk'. (probably correctly implemented) [ok probably].

RETURNS

segmented pointer to thunk?

IMPLEMENTATION

Exported by ordinal only. Use GetProcAddress(3w) to obtain a pointer to the function.

Implemented in "dlls/kernel32/thunk.c".

Debug channel "thunk".

History