OS2 World.Com Forum

Subject  :  adding a shadowId with sysCreateShadow() REXX
Author  :  cssw
Date  :  20 Apr, 2007 on 21:18
Does anyone know how to add a shadowID after calling the REXX API sysCreateShadow() ?

I need exactly what sysCreateShadow creates but I want to have a unique ID on it, so I can later delete or modify its settings?

Also is there a way to retrieve all the possible setttings for using with the setup string for sysSetObjectData() ?

thanks
cssw


Subject  :  Re:adding a shadowId with sysCreateShadow() REXX
Author  :  Blonde Guy
Date  :  20 Apr, 2007 on 23:22
Look at the documentation for WPTOOLS. WPTOOLS.DLL can set and retrieve setup strings, and also manipulate objects by handle, so you don't need an object id or shadow id.

In Classic REXX, this is all you get:

SysCreateShadow( object, destination )

object
The name of the object to shadow. This can be specified as the object's Workplace Shell object ID, or as a fully-qualified path name if the object exists in the file system.

destination
The location in which the shadow will be created. This can be specified as the object ID of an existing folder (e.g. '<WP_DESKTOP>'), or as the path name of an existing file system directory (e.g. 'C:\PROGRAMS').

---
Expert Consulting for OS/2 and eComStation


Subject  :  Re:adding a shadowId with sysCreateShadow() REXX
Author  :  cssw
Date  :  21 Apr, 2007 on 02:32

Blonde Guy (20 Apr, 2007 23:22):
Look at the documentation for WPTOOLS. WPTOOLS.DLL can set and retrieve setup strings, and also manipulate objects by handle, so you don't need an object id or shadow id.

In Classic REXX, this is all you get:

SysCreateShadow( object, destination )

object
The name of the object to shadow. This can be specified as the object's Workplace Shell object ID, or as a fully-qualified path name if the object exists in the file system.

destination
The location in which the shadow will be created. This can be specified as the object ID of an existing folder (e.g. '<WP_DESKTOP>'), or as the path name of an existing file system directory (e.g. 'C:\PROGRAMS').


thanks Neil,

I got the wptools32.zip

NOW I can get it to work for <WP_DESKTOP> but have NOT gotten it to work for fully qualified name of an existing program. Is there some chars that need to be escaped??? i.e '\' and what the escape char??

And is there a way to get HOT KEYS setting too?

cssw


Subject  :  Re:adding a shadowId with sysCreateShadow() REXX
Author  :  davidfor
Date  :  23 Apr, 2007 on 05:32
You can't do what you want to do with SysCreateShadow. This only takes the path to the source object and the path place the shadow is to be created. Both parameters can be an ObjectId.

To do what you want, you can use SysCreateObject. An example I use is:

rc = SysCreateObject('WPShadow',
'FireFox',
'<WP_DESKTOP>',
'SHADOWID=<FirefoxEXE>;OBJECTID=<FirefoxShadow>', ,
'Replace')

In the above 'FireFox' is the name of the shadow object, SHADOWID points to the object I am creating a shadow of and OBJECTID is the ObjectID for this Shadow object. This is the id I could use later to delete it. The parameter with these in it is the "Setup String".

There should be a way to set the hot key (I assume you are using XWorkplace or eWorkplace) with a value in the setup string. At the moment I can't see what the setting would be. You could ask this on the XWorplace user mailing list.

---
David


Powered by UltraBoard 2000 <www.ub2k.com>