A File Manager extension sends a FM_GETSELCOUNT message to retrieve a count of the selected files in the directory or the Search Results window, depending on which is the active window.
wParam
Not used.
lParam
Not used.
The return value is the number of selected files.