Jump to content

WinSaveObject: Difference between revisions

From EDM2
Ak120 (talk | contribs)
No edit summary
Ak120 (talk | contribs)
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== WinSaveObject ==
Saves the state of the object.
; WinSaveObject(objectHndl, asynchronousFlag) : Saves the state of the object.


=== Parameters ===
==Syntax==
WinSaveObject(objectHndl, asynchronousFlag)
 
===Parameters===
; objectHndl - [[HOBJECT]] - input : The object handle.
; objectHndl - [[HOBJECT]] - input : The object handle.
; asynchronousFlag - [[BOOL]] - input : To save the object asynchronously or not.
; asynchronousFlag - [[BOOL]] - input : To save the object asynchronously or not.


=== Returns ===
===Returns===
This function returns a [[BOOL]] with the values of:
This function returns a [[BOOL]] with the values of:
* [[TRUE]]
* [[TRUE]]
Line 14: Line 16:
INCL_WINWORKPLACE
INCL_WINWORKPLACE


=== Calling conversion ===
=== Calling Convention ===
[[Cdecl32]]
[[Cdecl32]]


Line 26: Line 28:
  ...
  ...


=== Related Functions ===
==Related Functions==
*[[WinCopyObject]]
*[[WinCopyObject]]
*[[WinCreateObject]]
*[[WinCreateObject]]
*[[WinDestroyObject]]
*[[WinDestroyObject]]
*[[WinMoveObject]]
*[[WinMoveObject]]
*[[WinQueryObjectWindow]]
*WinQueryObjectWindow


=== Notes ===
==Notes==
Asynchronously saved object are saved in a separate thread. This is the prefered way.  Otherwise, synchronouly, the object is save on the user interface thread.
Asynchronously saved object are saved in a separate thread. This is the preferred way.  Otherwise, synchronously, the object is save on the user interface thread.


Using [[HOBJECT]] for .INI files or files in which an application uses a rename/save/delete sequence is not supported.  
Using [[HOBJECT]] for .INI files or files in which an application uses a rename/save/delete sequence is not supported.  

Latest revision as of 11:27, 2 March 2018

Saves the state of the object.

Syntax

WinSaveObject(objectHndl, asynchronousFlag)

Parameters

objectHndl - HOBJECT - input
The object handle.
asynchronousFlag - BOOL - input
To save the object asynchronously or not.

Returns

This function returns a BOOL with the values of:

Define (C/C++)

INCL_WINWORKPLACE

Calling Convention

Cdecl32

Example Code

...
HOBJECT hobj;
BOOL    fAsync;
BOOL    rc;
...
rc = WinSaveObject (hobj, fAsync);
...

Related Functions

Notes

Asynchronously saved object are saved in a separate thread. This is the preferred way. Otherwise, synchronously, the object is save on the user interface thread.

Using HOBJECT for .INI files or files in which an application uses a rename/save/delete sequence is not supported.

OS Version Introduced

OS/2 Warp 3.0