get_binary_type


template<class character>
bool get_binary_type(const character* name,
                     unsigned* type)

This function obtains the type of a binary executable.

Parameters

const character* name

The name of a binary file whose type is being queried.

unsigned* type

A pointer to an integer that is updated to hold the type of the binary. See enumeration binary_type for the possible types.

Return

bool

true The function succeeded.
false The call failed.