WinCopyObject: Difference between revisions
Appearance
mNo edit summary |
|||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; hndlOriginalObject - [[ | ; hndlOriginalObject - [[HOBJECT]] - input : Handle of Workplace object being copied. | ||
; hndlDestinationObject - | ; hndlDestinationObject - HOBJECT - input : Handle of the destination folder where hndlOriginalObject will be copied. | ||
; reserved - [[ | ; reserved - [[ULONG]] - input : Must be set to zero, reserved paramter. | ||
=== Constants === | === Constants === | ||
Line 11: | Line 11: | ||
=== Returns === | === Returns === | ||
[[ | [[APIRET]] with values of: | ||
* [[ | * [[HOBJECT]] - Newly copied object. | ||
* [[ | * [[NULLHANDLE]] - If pre-existing or destination folder is NULLHANDLE. | ||
=== Define (C/C++) === | === Define (C/C++) === | ||
INCL_WINWORKPLACE | INCL_WINWORKPLACE | ||
=== Calling conversion === | === Calling conversion === | ||
Line 26: | Line 22: | ||
=== Example Code === | === Example Code === | ||
HOBJECT hndlOriginalObject; | |||
HOBJECT hndlDestinationObject; | |||
APIRET rc; | |||
... | ... | ||
rc = WinCopyObject(hndlOriginalObject, hndlDestinationObject, 0L); | rc = WinCopyObject(hndlOriginalObject, hndlDestinationObject, 0L); | ||
Line 34: | Line 30: | ||
=== Related Functions === | === Related Functions === | ||
* [[ | * [[WinCreateObject]] | ||
* [[ | * [[WinDestroyObject]] | ||
* [[ | * [[WinMoveObject]] | ||
* [[ | * [[WinQueryObjectWindow]] | ||
* [[ | * [[WinSaveObject]] | ||
=== Notes === | === Notes === | ||
The REXX version of this function is [[ | The REXX version of this function is [[SysCopyObject]]. | ||
=== OS Version Introduced === | === OS Version Introduced === | ||
OS2 Warp 3.0 | *OS2 Warp 3.0 | ||
[[Category: | [[Category:Win]] |
Revision as of 22:17, 10 November 2016
WinCopyObject
- WinCopyObject(hndlOriginalObject, hndlDestinationObject, reserved)
- Copies object from its existing location to the destination location.
Parameters
- hndlOriginalObject - HOBJECT - input
- Handle of Workplace object being copied.
- hndlDestinationObject - HOBJECT - input
- Handle of the destination folder where hndlOriginalObject will be copied.
- reserved - ULONG - input
- Must be set to zero, reserved paramter.
Constants
None
Returns
APIRET with values of:
- HOBJECT - Newly copied object.
- NULLHANDLE - If pre-existing or destination folder is NULLHANDLE.
Define (C/C++)
INCL_WINWORKPLACE
Calling conversion
Example Code
HOBJECT hndlOriginalObject; HOBJECT hndlDestinationObject; APIRET rc; ... rc = WinCopyObject(hndlOriginalObject, hndlDestinationObject, 0L); ...
Related Functions
Notes
The REXX version of this function is SysCopyObject.
OS Version Introduced
- OS2 Warp 3.0