DosQueryDosProperty allows an OS/2 session to query the setting of a DOS property.
#include <os2.h> SGID SGID; PSZ PszName; ULONG cb; PSZ pch; APIRET rc; rc = DosQueryDosProperty(SGID, PszName, cb, pch);