Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
4/8/2010

This function is an application-defined callback function that processes messages sent to a window.

Syntax

LRESULT CALLBACK WindowProc(
  HWND 
hwnd, 
  UINT 
uMsg, 
  WPARAM 
wParam, 
  LPARAM 
lParam 
); 

Parameters

hwnd

[in] Handle to the window.

uMsg

[in] Specifies the message.

wParam

[in] Specifies additional message information. The contents of this parameter depend on the value of the uMsgparameter.

lParam

[in] Specifies additional message information. The contents of this parameter depend on the value of the uMsgparameter.

Return Value

The return value is the result of the message processing and depends on the message sent.

Requirements

Header winuser.h
Windows Embedded CE Windows CE 1.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also