Skip to content

Latest commit

 

History

History
192 lines (101 loc) · 4.42 KB

fmextensionproc.md

File metadata and controls

192 lines (101 loc) · 4.42 KB
description title ms.topic ms.date topic_type api_name api_type api_location ms.assetid
Specifies an application-defined callback function called by File Manager to communicate with a File Manager extension.
FMExtensionProc callback function (Wfext.h)
reference
05/31/2018
APIRef
kbSyntax
FMExtensionProc
FMExtensionProcW
UserDefined
Wfext.h
6e02d655-f7d8-460a-97d2-5b369493e941

FMExtensionProc callback function

Specifies an application-defined callback function called by File Manager to communicate with a File Manager extension.

Syntax

LONG CALLBACK FMExtensionProc(
   HWND hwnd,
   WORD wMsg,
   LONG lParam
);

Parameters

hwnd

Type: HWND

A window handle to File Manager. An extension uses this handle to specify the parent window for any dialog box or message box it must display, and to send query messages to File Manager.

wMsg

Type: WORD

One of the following File Manager messages.

1 through 99

User selected an item from the extension-supplied menu. The value is the identifier of the selected menu item.

FMEVENT_HELPMENUITEM

User pressed F1 while selecting an extension menu or toolbar command item. Indicates that the extension should call WinHelp appropriately for the command item.

FMEVENT_HELPSTRING

User selected an extension menu or toolbar command item. Indicates that the extension should supply a Help string.

FMEVENT_INITMENU

User selected the extension's menu. The extension should initialize items in the menu.

FMEVENT_LOAD

File Manager is loading the extension DLL and prompts the DLL for information about the menu that the DLL supplies.

FMEVENT_SELCHANGE

Selection in the File Manager directory window or Search Results window has changed.

FMEVENT_TOOLBARLOAD

File Manager is creating the toolbar and prompts the extension DLL for information about any buttons the DLL adds to the toolbar.

FMEVENT_UNLOAD

File Manager is unloading the extension DLL.

FMEVENT_USER_REFRESH

User selected the Refresh command from the Window menu. The extension should update items in the menu, if necessary.

lParam

Type: LONG

Message-specific value.

Return value

Type: LONG

Returns a value dependent upon the wMsg parameter message.

Requirements

Requirement Value
Minimum supported client
Windows 2000 Professional [desktop apps only]
Minimum supported server
Windows 2000 Server [desktop apps only]
Header
Wfext.h
Unicode and ANSI names
FMExtensionProcW (Unicode)