This example starts the DSOM daemon within the Workplace Shell process.

#define  INCL_WPCLASS
#include <os2.h>

enum   {OFF, ON};
APIRET apiRtnCd;

apiRtnCd = WinRestartSOMDD(ON);
if (apiRtnCd == PMERR_SOMDD_NOT_STARTED)
   somPrintf ("DSOM Daemon failed to start; might be active already");


[Back] [Next]