.\" -*- nroff -*- .\" Generated file - DO NOT EDIT! .TH GetBinaryTypeW 3w "Oct 2012" "Wine API" "Wine API" .SH NAME \fBGetBinaryTypeW\fR (KERNEL32.@) .SH SYNOPSIS BOOL GetBinaryTypeW ( LPCWSTR \fIlpApplicationName\fR, LPDWORD \fIlpBinaryType\fR ) .SH DESCRIPTION .PP Determine whether a file is executable, and if so, what kind. .SH PARAMS \fIlpApplicationName\fR \fB[In]\fR Path of the file to check. .PP \fIlpBinaryType\fR \fB[Out]\fR Destination for the binary type. .PP .SH RETURNS .PP \fBTRUE\fR, if the file is an executable, in which case \fIlpBinaryType\fR is set. \fBFALSE\fR, if the file is not an executable or if the function fails. .SH NOTES .PP The type of executable is a property that determines which subsystem an executable file runs under. \fIlpBinaryType\fR can be set to one of the following .PP \fBvalues:\fR SCS_32BIT_BINARY: A Win32 based application SCS_64BIT_BINARY: A Win64 based application SCS_DOS_BINARY: An MS-Dos based application SCS_WOW_BINARY: A Win16 based application SCS_PIF_BINARY: A \fBPIF\fR file that executes an MS-Dos based app SCS_POSIX_BINARY: A \fBPOSIX\fR based application ( Not implemented ) SCS_OS216_BINARY: A 16bit OS/2 based application. .PP To find the binary type, this function reads in the files header information. If extended header information is not present it will assume that the file is a MS-DOS(tm) executable. If extended header information is present it will determine if the file is a \fB16\fR, \fB32\fR or \fB64\fR bit Windows(tm) executable by checking the flags in the header. .PP \fB".com"\fR and \fB".pif"\fR files are only recognized by their file name extension, as per native Windows(tm). .SH IMPLEMENTATION .PP Declared in \fB"winbase.h"\fR. .PP Implemented in \fB"dlls/kernel32/module.c"\fR. .PP Debug channel \fB"module"\fR.