---
name: "ThunkInitSL"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.0.1-3.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/ThunkInitSL"
---

# ThunkInitSL(3w)

## NAME

**ThunkInitSL** (KERNEL32.46)

## SYNOPSIS

VOID ThunkInitSL\
  (\
   LPBYTE *thunk*,\
   LPCSTR *thkbuf*,\
   DWORD  *len*,\
   LPCSTR *dll16*,\
   LPCSTR *dll32*\
  )

## PARAMS

*thunk* **\[In\]**  start of thunkbuffer.

*thkbuf* **\[In\]**  name/ordinal of thunkbuffer in Win16 dll.

*len* **\[In\]**  length of thunkbuffer.

*dll16* **\[In\]**  name of Win16 dll containing the *thkbuf*.

**\[In\]**  Win32 dll. FIXME: strange,unused.

## DESCRIPTION

Another thunkbuf link routine. The start of the thunkbuf looks like this: 00: **DWORD** length 04: **SEGPTR** address for thunkbuffer pointer \[ok probably\].

## RETURNS

Nothing.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

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

Debug channel **"thunk"**.
