Article View: comp.os.os2.programmer
Article #728OS/2 2.0 Active Desktop Question
From: Danielle Cohen
Date: Wed, 15 Apr 1992 00:03
Date: Wed, 15 Apr 1992 00:03
19 lines
1140 bytes
1140 bytes
Here's my problem -
In OS/2 2.0 I want to add a program object to the desktop
programaticaly. I know I can do this with a WinCreateObject
call, however it requires a location and I can't quite figure
out how to determine the active desktop. The book file says
to use a constant which doesn't exist. If I put "d:\DESKTOP"
(where D is my bootup drive) it works only on machines that
use the \DESKTOP as the active desktop, but for instance, on
my machine the desktop is in \DESKTOP1, so no object appears.
So how can I query for the active desktop. I search thru
OS2.INI looking for an application/key that might tell me
but didn't see an obvious answer.
Anyways, any suggestions (solutions?!) would be appreciated.
Thanks,
Danielle (dani@hpams0c.ptp.hp.com)
Technical Details
Message-ID:
<11180001@hp-ptp.ptp.hp.com>Path:
arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!hpcc05!hp-ptp!daniShow Full Headers
Complete Article Headers
From: dani@hp-ptp.ptp.hp.com (Danielle Cohen) Date: Wed, 15 Apr 1992 00:03:10 GMT Subject: OS/2 2.0 Active Desktop Question Message-ID: <11180001@hp-ptp.ptp.hp.com> Organization: HP Pacific Technology Park - Sunnyvale, Ca. Path: arc1-ca.pugleaf.net!sparky!uunet!usc!sdd.hp.com!hpscdc!hplextra!hpcc05!hp-ptp!dani Newsgroups: comp.os.os2.programmer Lines: 19