Jump to content

WinCopyObject: Difference between revisions

From EDM2
Line 34: Line 34:


=== Related Functions ===
=== Related Functions ===
[[OS2 API:WinCreateObject|WinCreateObject]]
* [[OS2 API:WinCreateObject|WinCreateObject]]
[[OS2 API:WinDestroyObject|WinDestroyObject]]
* [[OS2 API:WinDestroyObject|WinDestroyObject]]
[[OS2 API:WinMoveObject|WinMoveObject]]
* [[OS2 API:WinMoveObject|WinMoveObject]]
[[OS2 API:WinQueryObjectWindow|WinQueryObjectWindow]]
* [[OS2 API:WinQueryObjectWindow|WinQueryObjectWindow]]
[[OS2 API:WinSaveObject|WinSaveObject]]
* [[OS2 API:WinSaveObject|WinSaveObject]]


=== Notes ===
=== Notes ===

Revision as of 15:04, 30 August 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:

Module

Define (C/C++)

INCL_WINWORKPLACE

Export name/Ordinal

Calling conversion

Cdecl32

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