How to check 3DSMAX.exe in slave mode or not via MAXscript?

Hello everyone,
I have one very simple question. How can I check if the 3DSMAX.exe run(render) in slave mode (deadline slave mode) via MAXscript ?

Could you please write me a simple example in MAXscript language?

Thank you very much. I am looking forward to your answer.

Merry Xmas.

Hmm. I did some Google searching myself and came up empty. I know it’s possible as we have features taht need to differentiate between modes ourselves, but it may be done within the C++. I’ve asked @Bobo if he has an idea, but if not I’ll be able to check in with the dev team when they’re back next week.

Do you want to know if 3ds Max is running in workstation/slave mode when standalone running outside of Deadline OR when being executed by Deadline by the “3dsmax” plugin? (the Deadline “3dscmd” plugin always executes as slave mode)

If its the former, then ADSK provide this:

IsNetServer()

If you need to go deeper and query the “workstation” mode vs. “slave mode” via MXS when executed from within Deadline in the “3dsmax” plugin, then use the Lightning.dlx interface and query the actual DL job props: https://docs.thinkboxsoftware.com/products/deadline/10.0/1_User%20Manual/manual/app-3ds-max.html#querying-job-properties

Hello everyone ,
Here is my main purpose. I write a preload script and a postload script. I should disable some commands in my script if the scene is render in slave mode in 3DSMAX. I hope the system will return a boolean value of slave mode in MAX.