Introduction




Download 1,09 Mb.
bet37/62
Sana21.03.2017
Hajmi1,09 Mb.
#917
1   ...   33   34   35   36   37   38   39   40   ...   62
HANDLE CreateFile(

LPCTSTR lpFileName,

DWORD dwDesiredAccess,

DWORD dwShareMode,

LPSECURITY_ATTRIBUTES lpSecurityAttributes,

DWORD dwCreationDispostion ,

DWORD dwFlagsAndAttributes,

HANDLE hTemplateFile );

Parameters

lpFileName

Pointer to a null-terminated string that specifies the name of the object (file, communications resource, disk device, console, or directory) to create or open.

If *lpFileName is a path, there is a default string size limit of MAX_PATH characters. This limit is related to how the CreateFile function parses paths.

When lpFileName points to a communications resource to open, the developer must include a colon after the name. For example, specify "COM1: " to open that port.



dwDesiredAccess

Specifies the type of access to the object. An application can obtain read access; write access, read-write access, or device query access. This parameter can be any combination of the following values.




Download 1,09 Mb.
1   ...   33   34   35   36   37   38   39   40   ...   62




Download 1,09 Mb.