WinMoveObject: Difference between revisions
Appearance
m Martini moved page OS2 API:WinMoveObject to OS2 API:PMI:WinMoveObject |
mNo edit summary |
||
Line 3: | Line 3: | ||
=== Parameters === | === Parameters === | ||
; moveObject - [[ | ; moveObject - [[HOBJECT]] - input : Handle of the object to be moved. | ||
; destinationObject - [[ | ; destinationObject - [[HOBJECT]] - input : Handle of the destination folder to move the moveObject into. | ||
; option - [[ | ; option - [[ULONG]] - input : The only supported option is [[CO_FAILIFEXISTS]]. | ||
=== Constants === | === Constants === | ||
* | *CO_FAILIFEXISTS | ||
=== Returns === | === Returns === | ||
<!-- From the toolkit API doc: --> | <!-- From the toolkit API doc: --> | ||
[[ | [[HOBJECT]] of the object moved or [[NULLHANDLE]] if the object exists already exists or the current object's handle is NULLHANDLE. | ||
<!-- | <!-- | ||
OR | OR | ||
Line 20: | Line 20: | ||
* [[OS2 API:DataType:FALSE|FALSE]] | * [[OS2 API:DataType:FALSE|FALSE]] | ||
--> | --> | ||
Returns from [[ | 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]] | ||
Line 36: | Line 36: | ||
=== Example Code === | === Example Code === | ||
... | ... | ||
HOBJECT moveObject; | |||
HOBJECT destinationObject; | |||
ULONG option; | |||
HOBJECT rc; | |||
... | ... | ||
rc = WinMoveObject (moveObject, destinationObject, option); | rc = WinMoveObject (moveObject, destinationObject, option); | ||
Line 45: | Line 45: | ||
=== Related Functions === | === Related Functions === | ||
[[ | *[[WinCreateObject]] | ||
[[ | *[[WinQueryObject]] | ||
[[ | *[[WinCopyObject]] | ||
[[ | *[[WinSaveObject]] | ||
[[ | *[[WinOpenObject]] | ||
[[ | *[[WinSetObjectData]] | ||
=== Notes === | === Notes === | ||
The REXX function is [[ | The REXX function is [[SysMoveObject]]. | ||
=== OS Version Introduced === | === OS Version Introduced === | ||
OS/2 Warp 3.0 | *OS/2 Warp 3.0 | ||
[[Category: | [[Category:Win]] |
Revision as of 22:02, 10 November 2016
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
- 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:
Module
Define (C/C++)
INCL_WINWORKPLACE
Export name/Ordinal
Calling conversion
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