A File Manager extension sends a FM_GETSELCOUNT message to retrieve a count of the selected files in the active File Manager window (either the directory window or the Search Results window).
FM_GETSELCOUNT wParam = 0; // not used, must be zero lParam = 0; // not used, must be zero
This message has no parameters.
The return value is the number of selected files.