WinDeregisterObjectClass: Difference between revisions
Appearance
m Martini moved page OS2 API:WinDeregisterObjectClass to OS2 API:PMI:WinDeregisterObjectClass |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; className - [[ | ; className - [[PSZ]] - input : Class name. | ||
=== Returns === | === Returns === | ||
True if successful, false if not successful. | True if successful, false if not successful. | ||
* [[ | * [[TRUE]] | ||
* [[ | * [[FALSE]] | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINWORKPLACE | INCL_WINWORKPLACE | ||
=== Calling conversion === | === Calling conversion === | ||
Line 24: | Line 18: | ||
=== Example Code === | === Example Code === | ||
... | ... | ||
PSZ className; | |||
BOOL rc; | |||
... | ... | ||
rc = WinDeregisterObjectClass (className); | rc = WinDeregisterObjectClass (className); | ||
Line 31: | Line 25: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinRegisterObjectClass]] | ||
[[ | *[[WinReplaceObjectClass]] | ||
=== Notes === | === Notes === | ||
Line 41: | Line 35: | ||
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. | 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. | ||
[[Category:Win]] | |||
[[Category: |
Revision as of 23:23, 30 November 2016
WinDeregisterObjectClass
- WinDeregisterObjectClass (className)
- Remove a Workplace Shell class.
Parameters
- className - PSZ - input
- Class name.
Returns
True if successful, false if not successful.
Define (C/C++)
INCL_WINWORKPLACE
Calling conversion
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.