Gets the parent application ID (if the application has a parent). The parent application is the one that called ClientShell on its CApplication handler.
Return value:
Returns the Application ID (APID) of the current process. Each application has a unique APID.