.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH SearchPathW 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBSearchPathW\fR (KERNEL32.@) .SH SYNOPSIS DWORD SearchPathW ( LPCWSTR \fIpath\fR, LPCWSTR \fIname\fR, LPCWSTR \fIext\fR, DWORD \fIbuflen\fR, LPWSTR \fIbuffer\fR, LPWSTR* \fIlastpart\fR ) .SH DESCRIPTION .PP Searches for a specified file in the search \fIpath\fR. .SH PARAMS \fIpath\fR \fB[In]\fR Path to search (\fBNULL\fR means default). .PP \fIname\fR \fB[In]\fR Filename to search for. .PP \fIext\fR \fB[In]\fR File extension to append to file \fIname\fR. The first character must be a period. This parameter is specified only if the filename given does not contain an extension. .PP \fIbuflen\fR \fB[In]\fR size of \fIbuffer\fR, in characters. .PP \fIbuffer\fR \fB[Out]\fR \fIbuffer\fR for found filename. .PP \fIlastpart\fR \fB[Out]\fR address of pointer to last used character in \fIbuffer\fR (the final \fB'\'\fR). .PP .SH RETURNS .PP \fBSuccess:\fR length of string copied into \fIbuffer\fR, not including terminating \fBNULL\fR character. If the filename found is longer than the length of the \fIbuffer\fR, the length of the filename is returned. .PP \fBFailure:\fR Zero. .SH NOTES .PP If the file is not found, calls SetLastError(\fBERROR_FILE_NOT_FOUND\fR) (tested on \fBNT\fR \fB4.0\fR) .SH IMPLEMENTATION .PP Declared in \fB"dbghelp.h"\fR. .PP Implemented in \fB"dlls/kernel32/path.c"\fR. .PP Debug channel \fB"file"\fR.