This example starts the DSOM daemon and, a short time later, checks to see if it indeed has started successfully.
#define INCL_WPCLASS #include <os2.h> enum {OFF, ON}; WinRestartSOMDD(ON); . . . if ( WinIsSOMDDReady() ) somPrintf ("SOMDD is running\n") else somPrintf ("SOMDD failed to start, possiblly started already" "by another process\n");