WinDeregisterObjectClass: Difference between revisions
Appearance
mNo edit summary |
|||
Line 1: | Line 1: | ||
Remove a Workplace Shell class. | |||
=== Parameters | ==Syntax== | ||
WinDeregisterObjectClass (className) | |||
== Parameters == | |||
; className - [[PSZ]] - input : Class name. | ; className - [[PSZ]] - input : Class name. | ||
== Returns == | |||
True if successful, false if not successful. | True if successful, false if not successful. | ||
* [[TRUE]] | * [[TRUE]] | ||
* [[FALSE]] | * [[FALSE]] | ||
== Define (C/C++) == | |||
INCL_WINWORKPLACE | INCL_WINWORKPLACE | ||
== Calling Convention == | |||
[[Cdecl32]] | [[Cdecl32]] | ||
== Example Code == | |||
... | ... | ||
PSZ className; | PSZ className; | ||
Line 24: | Line 26: | ||
... | ... | ||
== Related Functions == | |||
*[[WinRegisterObjectClass]] | *[[WinRegisterObjectClass]] | ||
*[[WinReplaceObjectClass]] | *[[WinReplaceObjectClass]] | ||
== Notes == | |||
Object class(es) are automatically registered when a dynamic load library containing an object definition is invoked. | Object class(es) are automatically registered when a dynamic load library containing an object definition is invoked. | ||
Revision as of 04:59, 20 May 2018
Remove a Workplace Shell class.
Syntax
WinDeregisterObjectClass (className)
Parameters
- className - PSZ - input
- Class name.
Returns
True if successful, false if not successful.
Define (C/C++)
INCL_WINWORKPLACE
Calling Convention
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.