IAPI::GetSharedSequenceNumber

property GetSharedSequenceNumber. ( Available since v2.35.0  )

Retrieves incremental, unique and safe* sequence numbers for applications’ usage. (aka 1, 2, 3, 4…n, n+1)

(* No duplicated occurrences)

HRESULT GetSharedSequenceNumber (
  BSTR prefixName,
  BSTR persistencyFilename,
  long *pVal
);

Parameters

prefixName

[in] .   Key string which allows to distinguish sequence numbers

persistencyFilename

[in,defaultvalue(“”)] . Filename to be used for storing incremented sequence numbers

pVal

[out, retval] The returned value is an incremental and unique sequence number

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI