home *** CD-ROM | disk | FTP | other *** search
- /*** black hole object installation ***/
-
- ClassName = "Blakhole";
- DLLName = "Blakhole";
- DLLDir = "C:\OS2\DLL";
- Title = "Black Hole";
- Location = "<WP_DESKTOP>";
- Setup = "";
-
- /*** copy DLL file ***/
-
- "@copy" DLLName||".DLL" DLLDir;
-
- if RxFuncQuery("SysLoadFuncs") then
- do
- call RxFuncAdd 'SysLoadFuncs', 'RexxUtil', 'SysLoadFuncs';
- call SysLoadFuncs;
- end
-
- /*** register "Blakhole" class ***/
-
- result = SysRegisterObjectClass(ClassName, DLLName);
-
- if result
- then
- do
- say ClassName "is registered successfully";
-
- /*** create "Black Hole" object on desktop ***/
-
- if SysCreateObject(ClassName, Title, Location, Setup) then
- do
- say Title "of class" ClassName "is created successfully at" Location;
- end
- else
- do
- say Title "of class" ClassName "is not created at" Location;
- end
- end
- else
- do
- say Class "is not registered (return code:" result||")";
- end
-