LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 1996)Back to main REXXLIST pageJoin or leave REXXLIST (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Thu, 1 Feb 1996 13:29:01 -0700
Reply-To:   REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
Sender:   REXX Programming discussion list <REXXLIST@UGA.CC.UGA.EDU>
From:   gfraley@PRIMENET.COM
Organization:   Primenet Services for the Internet
Subject:   Re: SysCreateObject Drive Object

In <DLyF3r.6vz@lexmark.com>, gczaja@lexmark.com(Gregory Czaja) writes: >In <3108b015.53494d4d4f4e53@simmons.actrix.gen.nz>, jim@simmons.actrix.gen.nz (Jim Simmons) writes: >>I heard a rumour that <gfraley@primenet.com> said: >>>Robin D.H. Walker writes: >>> >>>>2) To create a shadow of an existing drive object in the Drives >>>> folder GIVEN THAT THE OS/2 DRIVE OBJECTS HAVE NO WPS NAME >>>> from which to create a shadow reference. >>> >>>/* Create an disk object in NOWHERE folder with an object id */ >>>/* Then use that object id for the shadowid */ >>> >>>RC = SysCreateObject("WPDISK",, >>> "Drive A",, >>> "<WP_NOWHERE>",, >>> "NODELETE=NO;DRIVENUM=1;OBJECTID=<MY_ID>",, >>> "Update") >>>RC = SysCreateObject("WPSHADOW",, >>> "Drive A",, >>> "<WP_DESKTOP>",, >>> "NODELETE=NO;SHADOWID=<MY_ID>",, >>> "Update") >>> >>>This way works. I don't know if it is the 'traditional' way! >> >> This will only "work" until the next time you reboot, whence >> any transient objects (created in <WP_NOWHERE>) are deleted. > >Contrary to the popular belief, an object of class WPDisk is not a WPTransient >descendant - it is a WPAbstract. As such, it will survive WPS restart. > >BTW, the class names in the above code should be spelled as "WPDisk" and >"WPShadow" - since class names ARE case sensitive. > >> There is no way to do what was requested (a shadow of the original >> system-created objects) in rexx/os2 because they have no objectid >> and there is no way to get at the object handle, and even if there >> was SysCreateObject does not accept the handle as a parameter. > >I agree with this statement - with the exception of the case when the user >has DeskMan/2 installed: using the command line interface, one could refer >to any object on the desktop, including those not having an ID assigned, >and pass any setup string to them. Shadow creation is also supported using >WPS Extensions. > >Thanks, <G>reg ---> DeskMan/2 utilities >(WZ00329 on TalkLink, 71052,720 on CIS) >

Thanks for the clarification on the transient issue. While classnames may be case sensitive, for some unknown reason, then, the above code (all CAPS) does work.

Gaylen Fraley \\||// Team OS/2 ( .. ) -------------------------------oOO--()--OOo---------------------------- John 3:16 "For God so loved the world, that He gave His only begotten Son, that whosoever believeth in Him, should not perish, but have everlasting life." -----------------------------------------------------------------------


Back to: Top of message | Previous page | Main REXXLIST page