---
name: "SHDefWindowProc"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/SHDefWindowProc"
---

# SHDefWindowProc(3w)

## NAME

**SHDefWindowProc** (SHLWAPI.240)

## SYNOPSIS

LRESULT SHDefWindowProc\
  (\
   HWND   *hWnd*,\
   UINT   *uMessage*,\
   WPARAM *wParam*,\
   LPARAM *lParam*\
  )

## DESCRIPTION

Call The correct (Ascii/Unicode) default window procedure for a window.

## PARAMS

*hWnd* **\[In\]**  Window to call the default procedure for.

*uMessage* **\[In\]**  Message **ID**.

*wParam* **\[In\]**  **WPARAM** of message.

*lParam* **\[In\]**  **LPARAM** of message.

## RETURNS

The result of calling **[DefWindowProcA(3w)](/DefWindowProcA/3w.md)** or **[DefWindowProcW(3w)](/DefWindowProcW/3w.md)**.

## IMPLEMENTATION

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

Implemented in **"dlls/shlwapi/ordinal.c"**.

Debug channel **"shell"**.
