본문 바로가기
Code review

[WinApi]CreateFile()

by cafrisun 2009. 5. 27.
 

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


반응형

'Code review' 카테고리의 다른 글

[WinApi]ShellExecute()  (0) 2009.05.27
[C]배열과 포인터 - ''[]''의 의미와 사용예  (0) 2009.05.27
[C]continue 문 사용  (0) 2009.05.27