User32DefWindowProc Method
Calls the default window procedure to provide default processing for any window messages that an application does not process.
This function ensures that every message is processed.
DefWindowProc(IntPtr, UInt32, IntPtr, IntPtr) is called with the same parameters received by the window procedure.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", CharSet = CharSet.Auto)]
public static IntPtr DefWindowProc(
IntPtr hWnd,
uint msg,
IntPtr wParam,
IntPtr lParam
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Auto>]
Public Shared Function DefWindowProc (
hWnd As IntPtr,
msg As UInteger,
wParam As IntPtr,
lParam As IntPtr
) As IntPtr
Dim hWnd As IntPtr
Dim msg As UInteger
Dim wParam As IntPtr
Dim lParam As IntPtr
Dim returnValue As IntPtr
returnValue = User32.DefWindowProc(hWnd,
msg, wParam, lParam)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Auto)]
static IntPtr DefWindowProc(
IntPtr hWnd,
unsigned int msg,
IntPtr wParam,
IntPtr lParam
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Auto)>]
static member DefWindowProc :
hWnd : IntPtr *
msg : uint32 *
wParam : IntPtr *
lParam : IntPtr -> IntPtr
No code example is currently available or this language may not be supported.
- hWnd IntPtr
-
A handle to the window procedure that received the message.
- msg UInt32
-
The message to be processed.
- wParam IntPtr
-
Additional message information. The content of this parameter depends on the value of the msg parameter.
- lParam IntPtr
-
Additional message information. The content of this parameter depends on the value of the msg parameter.
IntPtr
The return value specifies the result of the message processing and depends on the message.