CanYouHandleThisFile

From TotalcmdWiki
Revision as of 19:44, 18 April 2006 by Sheepdog (talk | contribs) (Backlinks)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to 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