home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
vp21beta.zip
/
OEXMPSRC.RAR
/
OBJCLASS
/
LISTCLS.PAS
next >
Wrap
Pascal/Delphi Source File
|
2000-08-15
|
1KB
|
52 lines
{█▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█}
{█ █}
{█ Virtual Pascal Examples Version 2.1 █}
{█ LISTCLS command line utility. █}
{█ ─────────────────────────────────────────────────█}
{█ Copyright (C) 1995-2000 vpascal.com █}
{█ █}
{▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀}
{$I-,D-,Use32+}
{ Displays a list of all object classes registered with }
{ the Workplace Shell }
Program ListCls;
Uses
Os2Def, Os2PmApi;
{$PMTYPE VIO}
Var
p,q : pObjClass;
Size : ULong;
begin
p := nil;
{ Return number of bytes needed to hold class list }
If WinEnumObjectClasses( p, Size ) then
begin
GetMem( p, Size );
{ Get list of objects }
If WinEnumObjectClasses( p, Size ) then
begin
{ Output list of objects to screen }
Writeln( 'Classes registered with WPS: ');
q := p;
While ( q <> nil ) do
begin
Writeln( q^.pszClassName, ' in DLL ', q^.pszModName );
q := q^.pNext;
end;
Writeln;
end
else
Writeln( 'WinEnumObjectClasses reports failure!' );
FreeMem( p, Size );
end
else
Writeln( 'WinEnumObjectClasses reports failure!' );
end.