Returns a pointer to user-allocated data from a DBPROCESS structure.
LPVOID dbgetuserdata ( PDBPROCESS dbproc );
where
A generic BYTE pointer to the user's private data space. This pointer must have been previously saved with the dbsetuserdata function.
The functions dbgetuserdata and dbsetuserdata allow the application to associate user data with a particular DBPROCESS, without using global variables. One use for these functions is to handle deadlock. See the example under dbsetuserdata. That example reruns the transaction when the application's message handler detects deadlock.
This function is particularly useful when the application has more than one DBPROCESS.