STOREINFO

This structure is used to identify an instance of the store.

At a Glance

Header file: Cesync.h
Windows CE versions: 2.0 and later

Syntax

typedef struct tagStoreInfo {
UINT cbStruct;
UINT uFlags;
TCHAR szProgId[ 256 ];
TCHAR szStoreDesc[ 200 ];
UINT uTimerRes;
UINT cbMaxStoreId;
UINT cbStoreId;
LPBYTE lpbStoreId;
} STOREINFO, *PSTOREINFO;

Members

cbStruct

[in] Size of this structure

uFlags

[out] Combination of the following flags:

Value Description
SCF_SINGLE_THREAD Set if the implementation only supports single thread operation.
SCF_SIMULATE_RTS Set if the implementation wants to simulate detection of real-time change/deletes

szProgId

[out] Null-terminated string that contains the name of the programmatic identifier of the store object.

szStoreDesc

[out] Null-terminated string that contains the description of the store, to be displayed to the user.

uTimerRes

[in/out] Resolution of timer in micro-seconds. 5,000 by default. Applicable only when SCF_SIMULATE_RTS is set in uFlags.

cbMaxStoreId

[in] Maximum size of the store identifier that can be stored in buffer pointed by lpbStoreId.

cbStoreId

[out] Actual size of the store identifier stored in buffer pointed by lpbStoreId

lpbStoreId

[out] Long pointer to a buffer whose contents uniquely identifies the current store instance, for example, a schedule file.

Remarks

Calls to the IReplStore interface methods can come from different threads. If the client does not support multi-threading, it must set fSingleThreadOnly to FALSE, so the server will serialize the calls to the methods and make them all come from the primary thread of the application. szStoreDesc can have a value such as “Schedule+ File”. It is displayed to the user whenever the store identifier indicates a different store, such as a different Schedule+ file, has been installed.

See Also

IReplStore::GetStoreInfo