The argument shflag is a constant expression consisting of one of the following manifest constants, defined in Share.h.
Term Definition
_SH_COMPAT Sets Compatibility mode for 16-bit applications.
_SH_DENYNO Permits read and write access.
_SH_DENYRD Denies read access to the file.
_SH_DENYRW Denies read and write access to the file.
_SH_DENYWR Denies write access to the file.
第三个参数, 看MSDN帮助文档中说的, 是需要Share.h头文件.
如果没有, 你可以直接用fopen, 老版本的c函数,
FILE *pFile = fopen("1.data","rb");