Click or drag to resize

FSize Function (IntPtr)

X#
Returns the size in bytes of a specified file.

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION FSize(
	pFile AS IntPtr
) AS INT64
Request Example View Source

Parameters

pFile
Type: IntPtr
The handle of the file. Please see the remark below about the compatibility of X# Runtime file handles and Win32 file handles.

Return Value

Type: Int64
The size of the file or -1 when the file handle is not valid.
See Also