Jump to content

WinRegisterObjectClass: Difference between revisions

From EDM2
Ak120 (talk | contribs)
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
== WinRegisterObjectClass ==
Register a workplace class.
; WinRegisterObjectClass(className, moduleName) : Register a workplace class.


=== Parameters ===
==Syntax==
; className - [[PSZ]] - input : Class name string.
WinRegisterObjectClass(className, moduleName)
; moduleName - PSZ - input : Dynamic link library name.


=== Returns ===
== Parameters ==
; ''className'' ([[PSZ]]) - input : Class name string.
; ''moduleName'' (PSZ) - input : Dynamic link library name.
 
== Returns ==
This function returns a [[BOOL]] with the values of:
This function returns a [[BOOL]] with the values of:
*[[TRUE]]
*[[TRUE]]
*[[FALSE]]
*[[FALSE]]


=== Define (C/C++) ===
== Define (C/C++) ==
INCL_WINWORKPLACE
INCL_WINWORKPLACE


=== Calling conversion ===
== Calling Convention ==
[[Cdecl32]]
[[Cdecl32]]


=== Example Code ===
== Example Code ==
  ...
  ...
  PSZ  className;  
  PSZ  className;  
Line 26: Line 28:
  ...
  ...


=== Related Functions ===
== Related Functions ==
*[[WinCreateObject]]
*[[WinCreateObject]]
*[[WinDeregisterObjectClass]]
*[[WinDeregisterObjectClass]]
*[[WinReplaceObjectClass]]
*[[WinReplaceObjectClass]]


=== Notes ===
== Notes ==
The DLL must be created using the [[System Object Model]].
The DLL must be created using the [[System Object Model]].


[[Category:Win]]
[[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

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.