FGetStream Function | |
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
public static FileStream FGetStream(
IntPtr pFile
)
Request Example
View SourceParameters
- 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:
FileStreamThe FileStream object or NULL when the handle is not valid
Remarks 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