FoxSDK API Reference
ContentsIndexHome
PreviousUpNext
ReadFileContents Function
Syntax
C++
int32 BS_CALL ReadFileContents(HSESSION hSession, const TCHAR* lpszFilePath, int64 nOffset, void* pBuffer, int32 nBufferSize, int32* pRead);

FoxSDKExport.h

Parameters 
Description 
HSESSION hSession 
Handle of opened session 
const TCHAR* lpszFilePath 
File path on disk (examples: "\file.bin", "\Dir1\Dir2\file.ext") 
int64 nOffset 
Offset in file 
void* pBuffer 
A pointer to a output buffer 
int32 nBufferSize 
Output buffer size in bytes = number of bytes to read 
int32* pRead 
Number of bytes readed. 

The function returns BS_SDK_ERROR_NO upon successful execution. In case of an error the error code will be returned (see Error Codes).

This function reads a segment of file from disk to a buffer.

Copyright (c) 2019 IFoerster Development. All rights reserved.
What do you think about this topic? Send feedback!