Jump to content

WinMoveObject: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
== WinMoveObject ==
Moves an object from one location to the desired location.
; WinMoveObject(moveObject, destinationObject, option) : Moves object from one location to the desired location.
 
==Syntax==
WinMoveObject(moveObject, destinationObject, option)


=== Parameters ===
=== Parameters ===
; moveObject - [[HOBJECT]] - input : Handle of the object to be moved.
;moveObject - [[HOBJECT]] - input : Handle of the object to be moved.
; destinationObject - [[HOBJECT]] - input : Handle of the destination folder to move the moveObject into.
;destinationObject - [[HOBJECT]] - input : Handle of the destination folder to move the moveObject into.
; option - [[ULONG]] - input : The only supported option is [[CO_FAILIFEXISTS]].
;option - [[ULONG]] - input : The only supported option is CO_FAILIFEXISTS.


=== Constants ===
=== Constants ===
Line 17: Line 19:
from OS/2 Warp Presentation Manager API book:
from OS/2 Warp Presentation Manager API book:
2. True if successful, false if not successful.
2. True if successful, false if not successful.
* [[OS2 API:DataType:TRUE|TRUE]]
* [[TRUE]]
* [[OS2 API:DataType:FALSE|FALSE]]
* [[FALSE]]
-->
-->
Returns from [[WinGetLastError]] should [[WinMoveObject]] fail:
Returns from [[WinGetLastError]] should WinMoveObject fail:
* [[OS2_API:PMI:error#WPERR_ALREADY_EXISTS|WPERR_ALREADY_EXISTS]]
* [[OS2_API:PMI:error#WPERR_ALREADY_EXISTS|WPERR_ALREADY_EXISTS]]
* [[OS2_API:PMI:error#WPERR_INVALID_FLAGS|WPERR_INVALID_FLAGS]]
* [[OS2_API:PMI:error#WPERR_INVALID_FLAGS|WPERR_INVALID_FLAGS]]
=== Module ===


=== Define (C/C++) ===
=== Define (C/C++) ===
INCL_WINWORKPLACE
INCL_WINWORKPLACE
=== Export name/Ordinal ===


=== Calling Convention ===
=== Calling Convention ===
Line 53: Line 51:


=== Notes ===
=== Notes ===
The REXX function is [[SysMoveObject]].
The REXX function is ''SysMoveObject''.


=== OS Version Introduced ===
=== OS Version Introduced ===

Revision as of 08:53, 21 February 2017

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