Jump to content

WinMoveObject: Difference between revisions

From EDM2
mNo edit summary
Line 23: Line 23:
-->
-->
Returns from [[WinGetLastError]] should WinMoveObject fail:
Returns from [[WinGetLastError]] should WinMoveObject fail:
* [[OS2_API:PMI:error#WPERR_ALREADY_EXISTS|WPERR_ALREADY_EXISTS]]
* [[PM Error Codes#WPERR_ALREADY_EXISTS|WPERR_ALREADY_EXISTS]]
* [[OS2_API:PMI:error#WPERR_INVALID_FLAGS|WPERR_INVALID_FLAGS]]
* [[PM Error Codes#WPERR_INVALID_FLAGS|WPERR_INVALID_FLAGS]]


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

Revision as of 02:13, 1 December 2019

Moves an object from one location to the desired location.

Syntax

WinMoveObject(moveObject, destinationObject, option)

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

  • CO_FAILIFEXISTS

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:

Define (C/C++)

INCL_WINWORKPLACE

Calling Convention

Cdecl32

Example Code

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

Related Functions

Notes

The REXX function is SysMoveObject.

OS Version Introduced

  • OS/2 Warp 3.0