C++
ACBASE_PORT FILE * fsopen( const wchar_t * pName, const wchar_t * pMode, int shflag );
Description
Opens a file with sharing.
shflag should be set to one of the following manifest constants, defined in SHARE.H:
- _SH_COMPACT - Sets Compatibility mode for 16-bit applications
- _SH_DENYNO - Permits read and write access;
- _SH_DENYRD - Denies read access to file
- _SH_DENYRW - Denies read and write access to file
- _SH_DENYWR - Denies write access to file
This method returns the FILE pointer to the opened file, if the file open was successful. Otherwise, it returns null.
Parameters
Parameters | Description |
---|---|
pName | Input absolute or relative path to the file to be opened |
pMode | Input string specifying the type of access requested for the file. See fopen() method for a list of values for this parameter. |
shflag | Input a SH constant |
Links
Previous Declaration
FILE * fsopen(
const TCHAR * pName,
const TCHAR * pMode,
int shflag
);