e-CryptIt Engine Xojo Plugin

BinHex.Decode Method (console safe)

To start to decode a file. Before calling it you should open the input file and when the OnHqxDecode event is fired then you should read the same amount of bytes from the input stream as asked by the event.

Decode(
   MayReplace as Boolean,
   Verify as Boolean,
   FireNameEvent as Boolean,
   destination as FolderItem,
   readFrom as IStreamReader) as Integer

Parameters

MayReplace
Determines if the BinHex class may overwrite existing files with same name at same path.
Verify
Determines if the BinHex class should attempt to verify that the file is BinHex 4 compatible
FireNameEvent
Determines if the BinHex class should fire the OnNameIsKnown event, where you can then modify the output name and path, when file's original name is known.
destination
The location where to put the decoded file.
readFrom
Use this parameter to specify a custom stream representing the BinHex'ed data to read from. This parameter can take any object that Implements the IStreamReader Interface.

Returns

Integer

Remarks

Returns an error code, zero for no error.
-43 Invalid folderitem
-44 Internal error
-100 Decoding was aborted

See Also

BinHex Class