WinQueryObject

Get the handle to the object id.

Syntax
WinQueryObject(objectID)

Parameters

 * objectID - PSZ - input:Object id of an existing object as assigned by WinCreateObject or WinSetObjectData, or the fully qualified path name of the object.

Returns
This function returns a HOBJECT or NULLHANDLE with the occurrence of an error.

Returns from WinGetLastError should WinQueryObject fail:
 * WPERR_OBJECT_NOT_FOUND
 * WPERR_INVALID_OBJECTID

Define (C/C++)
INCL_WINWORKPLACE

Calling Convention
Cdecl32

Example Code
... PSZ objectID; HOBJECT rc; ... rc = WinQueryObject (objectID); ...

Related Functions

 * WinCopyObject
 * WinCreateObject
 * WinDestroyObject
 * WinMoveObject
 * WinOpenObject
 * WinSaveObject
 * WinSetObjectData