Rechercher une page de manuel
GetBinaryTypeW.3w
Langue: en
Version: Jun 2009 (debian - 07/07/09)
Section: 3 (Bibliothèques de fonctions)
NAME
GetBinaryTypeW (KERNEL32.@)SYNOPSIS
BOOL GetBinaryTypeW(
LPCWSTR lpApplicationName,
LPDWORD lpBinaryType
)
DESCRIPTION
Determine whether a file is executable, and if so, what kind.
PARAMS
lpApplicationName [In] Path of the file to check.lpBinaryType [Out] Destination for the binary type.
RETURNS
TRUE, if the file is an executable, in which case lpBinaryType is set. FALSE, if the file is not an executable or if the function fails.
NOTES
The type of executable is a property that determines which subsystem an executable file runs under. lpBinaryType can be set to one of the following
values: SCS_32BIT_BINARY: A Win32 based application SCS_DOS_BINARY: An MS-Dos based application SCS_WOW_BINARY: A Win16 based application SCS_PIF_BINARY: A PIF file that executes an MS-Dos based app SCS_POSIX_BINARY: A POSIX based application ( Not implemented ) SCS_OS216_BINARY: A 16bit OS/2 based application.
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 16 or 32 bit Windows(tm) executable by checking the flags in the header.
".com" and ".pif" files are only recognized by their file name extension, as per native Windows(tm).
IMPLEMENTATION
Defined in "winbase.h".
Implemented in "dlls/kernel32/module.c".
Debug channel "module".
Contenus ©2006-2024 Benjamin Poulain
Design ©2006-2024 Maxime Vantorre