Discuss this help topic in SecureBlackbox Forum

TElCustomFileSystemAdapter.GetFileStream

TElCustomFileSystemAdapter     See also     


Filter: C#/Java  VB.NET  Pascal  C++  PHP  


Retrieves a stream associated with the specified file.

Declaration

[C#/Java]
    int GetFileStream(string Path, uint OpenMode, TSBFileShareMode ShareMode, ref System.IO.Stream FileStream);

[VB.NET]
    Function GetFileStream(ByVal Path As String, ByVal OpenMode As UInt32, ByVal ShareMode As TSBFileShareMode, ByRef FileStream As System.IO.Stream) As Integer

[Pascal]
    function GetFileStream(const Path : string; OpenMode : cardinal; ShareMode : TSBFileShareMode; var FileStream : TStream) : integer; virtual; abstract;

[C++]
    int32_t GetFileStream(const std::string &Path, uint32_t OpenMode, TSBFileShareMode ShareMode, TStream &FileStream);

[PHP]
    integer GetFileStream(string $Path, integer $OpenMode, integer $ShareMode, TStream &$FileStream)

Parameters

  • Path - path to the file.
  • OpenMode - specifies file open mode.
  • ShareMode - specifies shared access mode.
  • FileStream - the stream associated with the specified file.

Possible open modes:


Possible share modes:


Return value

    Returns a VFS error code.

Possible values:


Description

    Use this method to get access to the file using stream interface.

See also:     FileOpen    

Discuss this help topic in SecureBlackbox Forum