Gets the application ID (APID) for the current process. Each application has a unique APID identifying the application. The APID is needed when sending an application message via SendAPMessage.
Return value:
Returns the Application ID (APID) for the current process.