CanYouHandleThisFile: Difference between revisions

From TotalcmdWiki
Jump to navigation Jump to search
No edit summary
 
m (Backlinks)
 
Line 8: Line 8:


* ''Filename'' contains the fully qualified name (path+name) of the file to be checked.
* ''Filename'' contains the fully qualified name (path+name) of the file to be checked.
{{backlink|Packer plugins developer guide|Packer plugins developer guide}}
{{back|Packer plugins developer guide overview|Packer plugins developer guide overview}}
{{back|GetPackerCaps|GetPackerCaps}}
{{back|What's new|What's new}}

Latest revision as of 19:44, 18 April 2006

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