FileDialog.HookProc(IntPtr, Int32, IntPtr, IntPtr) Method

Definition

Defines the common file dialog hook procedure that is overridden to add common functionality to a file dialog.

C#
[System.Security.SecurityCritical]
protected override IntPtr HookProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam);
C#
protected override IntPtr HookProc(IntPtr hwnd, int msg, IntPtr wParam, IntPtr lParam);

Parameters

hwnd
IntPtr

Window handle for the Win32 dialog.

msg
Int32

Message to be processed by the Win32 dialog.

wParam
IntPtr

Parameters for dialog actions.

lParam
IntPtr

Parameters for dialog actions.

Returns

IntPtr

Returns Zero to indicate success; otherwise, a non-zero value is returned to indicate failure.

Attributes

Applies to

Product Versions
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7