Jump to content

WinDeregisterObjectClass: Difference between revisions

From EDM2
No edit summary
Line 8: Line 8:


== Returns ==
== Returns ==
True if successful, false if not successful.
; rc (BOOL) - returns
* [[TRUE]]
:Success indicator.
* [[FALSE]]
:True if successful, false if not successful.
:;[[TRUE]]
::Successful completion
:;[[FALSE]]
::Error occurred.


== Define (C/C++) ==
== Define (C/C++) ==

Revision as of 20:00, 7 April 2024

Remove a Workplace Shell class.

Syntax

WinDeregisterObjectClass (className)

Parameters

className (PSZ) - input
Class name.

Returns

rc (BOOL) - returns
Success indicator.
True if successful, false if not successful.
TRUE
Successful completion
FALSE
Error occurred.

Define (C/C++)

INCL_WINWORKPLACE

Calling Convention

Cdecl32

Example Code

...
PSZ    className;
BOOL   rc;
...
rc = WinDeregisterObjectClass (className);
...

Related Functions

Notes

Object class(es) are automatically registered when a dynamic load library containing an object definition is invoked.

The only advantage of deregistering an object is to improve system performance.

All registered classes are maintained in Interface Repository. Some classes has its representation in OS2.INI and are cached upon system initialization. Should a class not be needed it should be removed.