Jump to content

WinRegisterObjectClass: Difference between revisions

From EDM2
Ak120 (talk | contribs)
No edit summary
Line 1: Line 1:
#REDIRECT [[OS2 API:PMI:WinRegisterObjectClass]]
== WinRegisterObjectClass ==
; WinRegisterObjectClass(className, moduleName) : Register a workplace class.
 
=== 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 conversion ===
[[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]]

Revision as of 23:21, 30 November 2016

WinRegisterObjectClass

WinRegisterObjectClass(className, moduleName)
Register a workplace class.

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 conversion

Cdecl32

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.