Skip to content

Latest commit

 

History

History
53 lines (35 loc) · 1.27 KB

GetBinaryType.md

File metadata and controls

53 lines (35 loc) · 1.27 KB

Home

Function name : GetBinaryType

Group: File Management - Library: kernel32


Determines whether a file is executable, and if so, what type of executable file it is. That last property determines which subsystem an executable file runs under.


Code examples:

Using GetBinaryType (WinNT only) to determine the type of an executable file

Declaration:

BOOL GetBinaryType (
  LPCTSTR lpApplicationName,  // full file path
  LPDWORD lpBinaryType        // binary type information
);  

FoxPro declaration:

DECLARE SHORT GetBinaryType IN kernel32;
	STRING    lpApplicationName,;
	INTEGER @ lpBinaryType  

Parameters:

lpApplicationName [in] Pointer to a null-terminated string that contains the full path of the file whose binary type the function shall determine.

lpBinaryType [out] Pointer to a variable to receive information about the executable type of the file specified by lpApplicationName.


Return value:

If the file is executable, the return value is nonzero.


Comments:

WinNT only.