Click or drag to resize

FGetStream Function

X#
Access the FileStream object used by the X# Runtime for Low Level File Access

Namespace:  XSharp.Core
Assembly:  XSharp.Core (in XSharp.Core.dll) Version: 2.19
Syntax
 FUNCTION FGetStream(
	pFile AS IntPtr
) AS FileStream
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: FileStream
The FileStream object or NULL when the handle is not valid
Remarks
Caution note Caution
You are not supposed to close the stream object that you retrieve with this function. The Lifetime management of the stream should be left to the X# Runtime
If you want to close the stream, please use the FClose() function
See Also