Im actuelly used this for only one thing for some of my games: Checking if Steam Deck is used. The reasons is some of my games is default set to a windowred mode. This is a no go on the Steam deck, where im wanted full screen mode...... Actuelly got to work fine.
?IFDEF WIN32
LOCAL mySteam AS stats_manager_object, i1%
LOCAL isok%=mySteam.Init%(1)
IF isok%<>0
STEAMDECK=Steam_API_Utils_IsSteamRunningOnSteamDeck()
ENDIF
?ENDIF
also if you dont check the steam was init or not and user launch the exe outside steam, then its will crash. Hence im checking for that.