Defines the common dialog box hook procedure that is overridden to add specific functionality to the file dialog box.
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.UnmanagedCode)> _ Protected Overrides Function HookProc ( _ hWnd As IntPtr, _ msg As Integer, _ wparam As IntPtr, _ lparam As IntPtr _ ) As IntPtr
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)] protected override IntPtr HookProc( IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam )
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::UnmanagedCode)] protected: virtual IntPtr HookProc( IntPtr hWnd, int msg, IntPtr wparam, IntPtr lparam ) override
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)>] abstract HookProc : hWnd:IntPtr * msg:int * wparam:IntPtr * lparam:IntPtr -> IntPtr [<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.UnmanagedCode)>] override HookProc : hWnd:IntPtr * msg:int * wparam:IntPtr * lparam:IntPtr -> IntPtr
A hook procedure allows the user to connect or insert other routines into a routine or application for the purpose of debugging or enhancing functionality.
By default, the hook procedure centers the dialog box on the screen in response to a WM_INITDIALOG message.
When overriding HookProc in a derived class, be sure to call the base class's HookProc method.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2