home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 19
/
CD_ASCQ_19_010295.iso
/
vrac_os2
/
back_os2.zip
/
BACKGRND.C
next >
Wrap
C/C++ Source or Header
|
1994-11-05
|
444b
|
22 lines
#define INCL_WIN
#include <os2.h>
#include <string.h>
VOID main(int argc, char *argv[])
{
HAB hab;
HMQ hmq;
HOBJECT hObject;
char name[300];
hab = WinInitialize(0);
hmq = WinCreateMsgQueue(hab, 0);
hObject = WinQueryObject("<WP_DESKTOP>");
strcpy(name, "BACKGROUND=");
strcat(name, (argc >= 2) ? argv[1] : "(none)");
WinSetObjectData(hObject, name);
WinDestroyMsgQueue(hmq);
WinTerminate(hab);
}