WinRegisterObjectClass: Difference between revisions
Appearance
m Redirected page to OS2 API:PMI:WinRegisterObjectClass |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Register a workplace class. | |||
==Syntax== | |||
WinRegisterObjectClass(className, moduleName) | |||
== Parameters == | |||
; ''className'' ([[PSZ]]) - input : Class name string. | |||
; ''moduleName'' (PSZ) - input : Dynamic link library name. | |||
== Returns == | |||
This function returns a [[BOOL]] with the values of: | |||
*[[TRUE]] | |||
*[[FALSE]] | |||
== Define (C/C++) == | |||
INCL_WINWORKPLACE | |||
== Calling Convention == | |||
[[Cdecl32]] | |||
== Example Code == | |||
... | |||
PSZ className; | |||
PSZ moduleName; | |||
BOOL rc; | |||
... | |||
rc = WinRegisterObjectClass (className, moduleName); | |||
... | |||
== Related Functions == | |||
*[[WinCreateObject]] | |||
*[[WinDeregisterObjectClass]] | |||
*[[WinReplaceObjectClass]] | |||
== Notes == | |||
The DLL must be created using the [[System Object Model]]. | |||
[[Category:Win]] |
Latest revision as of 04:48, 15 June 2025
Register a workplace class.
Syntax
WinRegisterObjectClass(className, moduleName)
Parameters
- className (PSZ) - input
- Class name string.
- moduleName (PSZ) - input
- Dynamic link library name.
Returns
This function returns a BOOL with the values of:
Define (C/C++)
INCL_WINWORKPLACE
Calling Convention
Example Code
... PSZ className; PSZ moduleName; BOOL rc; ... rc = WinRegisterObjectClass (className, moduleName); ...
Related Functions
Notes
The DLL must be created using the System Object Model.