The following code illustrates how to query a multimedia system value.
#define INCL_MCIOS2 #include <os2me.h> CHAR szWorkPath[CCHMAXPATH]; mciQuerySysValue(MSV_WORKPATH, szWorkPath); /* Get temporary file path. */