Can External Detect if it's running in a standalone?

Joe Kaplan's icon

Greetings,

Are there any functions in Min Devkit or the MaxSDK that can tell me if the external is running in a standalone?

I know there are ways for the patch itself to find out if it's to know if it's running in a standalone. It even looks possible with the JS API. But I'm not finding anyway to do this inside the External.

Gemini seems to hallucinate a few functions.

I suppose as a last resort, I could also use C or C++ functions to get the filename of the app check that is not max.exe or max.app. But it seems like their ought to be a more reliable way to do this. Thanks for any input!