FsInit
FsInit is called when loading the plugin. The passed values should be stored in the plugin for later use.
 
Declaration:
 
int __stdcall FsInit(int PluginNr, tProgressProc pProgressProc, tLogProc pLogProc, tRequestProc pRequestProc);
 
Description of parameters:
 
PluginNr Internal number this plugin was given in Total Commander. Has to be passed as the first parameter in all callback functions so Totalcmd knows which plugin has sent the request.
 
pProgressProc Pointer to the progress callback function.
 
pLogProc Pointer to the logging function
 
pRequestProc Pointer to the request text proc
 
Return value:
 
The return value is currently unused. You should return 0 when successful.
 
Remarks:
 
FsInit is NOT called when the user initially installs the plugin. Only FsGetDefRootName.is called in this case, and then the plugin DLL is unloaded again. The plugin DLL is loaded when the user enters the plugin root in Network Neighborhood.