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

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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

Namespace:   Microsoft.Win32
Assembly:  PresentationFramework (in PresentationFramework.dll)

<SecurityCriticalAttribute>
Protected Overrides Function HookProc (
	hwnd As IntPtr,
	msg As Integer,
	wParam As IntPtr,
	lParam As IntPtr
) As IntPtr

Parameters

hwnd
Type: System.IntPtr

Window handle for the Win32 dialog.

msg
Type: System.Int32

Message to be processed by the Win32 dialog.

wParam
Type: System.IntPtr

Parameters for dialog actions.

lParam
Type: System.IntPtr

Parameters for dialog actions.

Return Value

Type: System.IntPtr

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

.NET Framework
Available since 3.0
Return to top
Show: