Skip to content

Instantly share code, notes, and snippets.

@nattybear
Created June 4, 2017 06:19
Show Gist options
  • Save nattybear/b59a5f77a6df3614a15c2308ca71b03e to your computer and use it in GitHub Desktop.
Save nattybear/b59a5f77a6df3614a15c2308ca71b03e to your computer and use it in GitHub Desktop.
HANDLE WINAPI CreateFile (
_In_ LPCSTR lpFileName,
_In_ DWORD dwDesiredAccess,
_In_ DWORD dwShareMode,
_In_opt_ LPSECURITY_ATTRIBUTES lpSecurityAttributes,
_In_ DWORD dwCreationDisposition,
_In_ DWORD dwFlagsAndAttributes,
_In_opt_ HANDLE hTemplateFile
);
@nattybear
Copy link
Author

nattybear commented Jun 4, 2017

lpFileName [in]

  • 생성하거나 열려고 하는 파일이나 장치의 이름. 슬래시 /나 백슬래시 \를 사용 할 수 있다.

  • ANSI 버전 함수에서는 MAX_PATH로 문자 길이 제한이 있다. 이 제한을 32,767로 늘리려면 유니코드 버전의 함수를 불러야 한다.

dwDesiredAccess [in]

dwShareMode [in]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment