.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH CreateFileW 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBCreateFileW\fR (KERNEL32.@) .SH SYNOPSIS HANDLE CreateFileW ( LPCWSTR \fIfilename\fR, DWORD \fIaccess\fR, DWORD \fIsharing\fR, LPSECURITY_ATTRIBUTES \fIsa\fR, DWORD \fIcreation\fR, DWORD \fIattributes\fR, HANDLE \fItemplate\fR ) .SH DESCRIPTION .PP CreateFileW [\fBKERNEL32\fR.@] Creates or opens a file or other object. .PP Creates or opens an object, and returns a handle that can be used to \fIaccess\fR that object. .SH PARAMS \fIfilename\fR \fB[In]\fR pointer to \fIfilename\fR to be accessed. .PP \fIaccess\fR \fB[In]\fR \fIaccess\fR mode requested. .PP \fIsharing\fR \fB[In]\fR share mode. .PP \fIsa\fR \fB[In]\fR pointer to security \fIattributes\fR. .PP \fIcreation\fR \fB[In]\fR how to create the file. .PP \fIattributes\fR \fB[In]\fR \fIattributes\fR for newly created file. .PP \fItemplate\fR \fB[In]\fR handle to file with extended \fIattributes\fR to copy. .PP .SH RETURNS .PP \fBSuccess:\fR Open handle to specified file .PP \fBFailure:\fR \fBINVALID_HANDLE_VALUE\fR .SH IMPLEMENTATION .PP Declared in \fB"winbase.h"\fR. .PP Implemented in \fB"dlls/kernel32/file.c"\fR. .PP Debug channel \fB"file"\fR.