OS2 API:WinReplaceObjectClass

From EDM2

Jump to: navigation, search

Contents

[edit] WinReplaceObjectClass

WinReplaceObjectClass(oldClassName, newClassName, functionReplacementFlag) 
Replaces a registered class with the new registered class.

[edit] Parameters

oldClassName - PSZ - input 
Old classname string.
newClassName - PSZ - input 
New classname string.
functionReplacementFlap -BOOL - input 
Flag for function replacement.

[edit] Constants

Flag values for functionality replacement:

TRUE 
Replace the old class name with the new class name.
FALSE 
Undo the replacement of the old class name with the new class name.

[edit] Returns

This function returns a APIRET with the values of:

[edit] Module

[edit] Define (C/C++)

INCL_WINWORKPLACE

[edit] Export name/Ordinal

[edit] Calling conversion

Cdecl32

[edit] Example Code

...
PSZ   oldClassname;
PSZ   newClassname;
BOOL fReplace;
BOOL rc;
...
rc = WinReplaceObjectClass (oldClassname, newClassname, fReplace);
...

[edit] Related Functions

WinCreateObject WinDeregisterObjectClass WinRegisterObjectClass

[edit] Notes

The new class name must be a descendant of old class name. If it isn't, an error will be returned.

[edit] OS Version Introduced

Personal tools