Name
Points to the full name of the file (including the path).
This pointer is valid only until return, so if the plugin will process this file,
it should copy this name to an internal variable.
The
OpenFilePlugin function is also called when the user is going to create a new
file (when Shift-F1 is pressed). In that case Name is NULL and other parameters are
undefined. If a plugin does not support creating new files, it must return
INVALID_HANDLE_VALUE, otherwise it must return the handle of a new plugin instance that must
be ready to process
GetOpenPluginInfo and
PutFiles functions. If
Name is NULL, the plugin
needs to request
Name from the user in the
PutFiles
function.
Data
Points to data from the beginning of the file. It can be used to detect
file type. The plugin must not change this data.
DataSize
Size of the passed file data. Currently it can be from 0 to 128Kb,
depending on file size, but you should be ready to process any other value.