Code review

[WinApi]CreateFile()

cafrisun 2009. 5. 27. 23:29
 

CreateFile 사용 예

1:    HANDLE hFile;
2:
3:    hFile = CreateFile("test.txt",  // pointer to name of the file
4:                    GENERIC_WRITE,  // access (read-write) mode
5:                                0,  // share mode
6:                             NULL,  // pointer to security attributes
7:                    CREATE_ALWAYS,  // how to create
8:            FILE_ATTRIBUTE_NORMAL,  // file attributes
9:                            NULL);  // handle to file with attributes to copy


반응형