OS2 API:WinDeregisterObjectClass

From EDM2

Jump to: navigation, search

Contents

[edit] WinDeregisterObjectClass

WinDeregisterObjectClass (className) 
Remove a Workplace Shell class.

[edit] Parameters

className - PSZ - input 
Class name.

[edit] Constants

[edit] Returns

True if successful, false if not successful.

[edit] Module

[edit] Define (C/C++)

INCL_WINWORKPLACE

[edit] Export name/Ordinal

[edit] Calling conversion

Cdecl32

[edit] Example Code

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

[edit] Related Functions

WinRegisterObjectClass WinReplaceObjectClass

[edit] 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.

[edit] OS Version Introduced

Personal tools