.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH OpenAndMapFileForRead 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBOpenAndMapFileForRead\fR (SETUPAPI.@) .SH SYNOPSIS DWORD OpenAndMapFileForRead ( LPCWSTR \fIlpFileName\fR, LPDWORD \fIlpSize\fR, LPHANDLE \fIlpFile\fR, LPHANDLE \fIlpMapping\fR, LPVOID* \fIlpBuffer\fR ) .SH DESCRIPTION .PP Open and map a file to a buffer. .SH PARAMS \fIlpFileName\fR \fB[In]\fR Name of the file to be opened. .PP \fIlpSize\fR \fB[Out]\fR Pointer to the file size. .PP \fIlpFile\fR \fB[0]\fR Pointer to the file handle .PP \fIlpMapping\fR \fB[0]\fR Pointer to the mapping handle .PP \fIlpBuffer\fR \fB[0]\fR Pointer to the file buffer. .PP .SH RETURNS .PP \fBSuccess:\fR \fBERROR_SUCCESS\fR .PP \fBFailure:\fR Other. .SH NOTE .PP Call UnmapAndCloseFile to release the file. .SH IMPLEMENTATION .PP Not declared in a Wine header. The function is either undocumented, or missing from Wine. .PP Implemented in \fB"dlls/setupapi/misc.c"\fR. .PP Debug channel \fB"setupapi"\fR.