Jump to content

WinMoveObject: Difference between revisions

From EDM2
WinMoveObject created.
 
Prokushev (talk | contribs)
No edit summary
Line 9: Line 9:
Handle of the destination folder to move the moveObject into.
Handle of the destination folder to move the moveObject into.
; option - [[ULONG]] - input :  
; option - [[ULONG]] - input :  
The only supported option is CO_FAILIFEXISTS.
The only supported option is [[CO_FAILIFEXISTS]].


=== Constants ===
=== Constants ===
* CO_FAILIFEXISTS
* [[CO_FAILIFEXISTS]]


=== Returns ===
=== Returns ===
Line 25: Line 25:
-->
-->
Returns from [[WinGetLastError]] should [[WinMoveObject]] fail:
Returns from [[WinGetLastError]] should [[WinMoveObject]] fail:
* WPERR_ALREADY_EXISTS
* [[WPERR_ALREADY_EXISTS]]
* WPERR_INVALID_FLAGS
* [[WPERR_INVALID_FLAGS]]


=== Module ===
=== Module ===

Revision as of 07:56, 8 April 2005

WinMoveObject

WinMoveObject(moveObject, destinationObject, option)

Moves object from one location to the desired location.

Parameters

moveObject - HOBJECT - input

Handle of the object to be moved.

destinationObject - HOBJECT - input

Handle of the destination folder to move the moveObject into.

option - ULONG - input

The only supported option is CO_FAILIFEXISTS.

Constants

Returns

HOBJECT of the object moved or NULLHANDLE if the object exists already exists or the current object's handle is NULLHANDLE. Returns from WinGetLastError should WinMoveObject fail:

Module

Define (C/C++)

INCL_WINWORKPLACE

Export name/Ordinal

Calling conversion

Cdecl32

Example Code

...
HOBJECT moveObject;
HOBJECT destinationObject;
ULONG option;
HOBJECT rc;
...
rc = WinMoveObject (moveObject, destinationObject, option);
...

Related Functions

WinCreateObject WinQueryObject WinCopyObject WinSaveObject WinOpenObject WinSetObjectData

Notes

The REXX function is SysMoveObject.

OS Version Introduced

OS/2 Warp 3.0 and above, eCS 1.0 and above