Jump to content

WinDeregisterObjectClass: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 3: Line 3:


=== Parameters ===
=== Parameters ===
; className - [[OS2 API:DataType:PSZ|PSZ]] - input : Class name.
; className - [[PSZ]] - input : Class name.
 
=== Constants ===


=== Returns ===
=== Returns ===
True if successful, false if not successful.
True if successful, false if not successful.
* [[OS2 API:Constant:TRUE|TRUE]]
* [[TRUE]]
* [[OS2 API:Constant:FALSE|FALSE]]
* [[FALSE]]
 
=== Module ===


=== Define (C/C++) ===
=== Define (C/C++) ===
INCL_WINWORKPLACE
INCL_WINWORKPLACE
=== Export name/Ordinal ===


=== Calling conversion ===
=== Calling conversion ===
Line 24: Line 18:
=== Example Code ===
=== Example Code ===
  ...
  ...
  [[OS2 API:DataType:PSZ|PSZ]]   className;
  PSZ    className;
  [[OS2 API:DataType:BOOL|BOOL]]   rc;
  BOOL  rc;
  ...
  ...
  rc = WinDeregisterObjectClass (className);
  rc = WinDeregisterObjectClass (className);
Line 31: Line 25:


=== Related Functions ===
=== Related Functions ===
[[OS2 API:WinRegisterObjectClass|WinRegisterObjectClass]]
*[[WinRegisterObjectClass]]
[[OS2 API:WinReplaceObjectClass|WinReplaceObjectClass]]
*[[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.


=== OS Version Introduced ===
[[Category:Win]]
 
[[OS2_API | Back to OS/2 API]]
 
 
[[Category:The OS/2 API Project]]

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

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.