Jump to content

WinCopyObject: Difference between revisions

From EDM2
WinCopyObject created.
 
m formatting
Line 1: Line 1:
== WinCopyObject ==
== WinCopyObject ==
; WinCopyObject(hndlOriginalObject, hndlDestinationObject, reserved) :
; WinCopyObject(hndlOriginalObject, hndlDestinationObject, reserved) : Copies object from its existing location to the destination location.
Copies object from its existing location to the destination location.


=== Parameters ===
=== Parameters ===
; hndlOriginalObject - [[OS2 API:DataType:HOBJECT|HOBJECT]] - input :
; hndlOriginalObject - [[OS2 API:DataType:HOBJECT|HOBJECT]] - input : Handle of Workplace object being copied.
Handle of Workplace object being copied.
; hndlDestinationObject - [[OS2 API:DataType:HOBJECT|HOBJECT]] - input : Handle of the destination folder where hndlOriginalObject will be copied.
; hndlDestinationObject - [[OS2 API:DataType:HOBJECT|HOBJECT]] - input :
; reserved - [[OS2 API:DataType:ULONG|ULONG]] - input : Must be set to zero, reserved paramter.
Handle of the destination folder where hndlOriginalObject will be copied.
; reserved - [[OS2 API:DataType:ULONG|ULONG]] - input :
Must be set to zero, reserved paramter.


=== Constants ===
=== Constants ===

Revision as of 04:57, 1 May 2006

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

WinCreateObject WinDestroyObject WinMoveObject WinQueryObjectWindow WinSaveObject

Notes

The REXX version of this function is SysCopyObject.

OS Version Introduced

OS2 Warp 3.0