win32file.GetBinaryType

int = GetBinaryType(appName)

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.

Parameters

appName : string

Fully qualified path of file to test