CanYouHandleThisFile

From TotalcmdWiki
Jump to: navigation, search

CanYouHandleThisFile allows the plugin to handle files with different extensions than the one defined in Total Commander. It is called when the plugin defines PK_CAPS_BY_CONTENT, and the user tries to open an archive with Ctrl+PageDown.

 BOOL __stdcall CanYouHandleThisFile (char *FileName);

Description

CanYouHandleThisFile should return true (nonzero) if the plugin recognizes the file as an archive which it can handle. The detection must be by contents, NOT by extension. If this function is not implemented, Totalcmd assumes that only files with a given extension can be handled by the plugin.

  • Filename contains the fully qualified name (path+name) of the file to be checked.

Back to Packer plugins developer guide Back to Packer plugins developer guide overview Back to GetPackerCaps Back to What's new