DSAPI threadsafe programming

All,

I want to lock internet passward, so I review Sandbox sample code, DSAPI Demo-Customized Authentication.

To make the sample threadsafe, I saw this forum and endeavored in vain.

(1)Sandbox User Review (2003/03/28)

#define Thread __declspec( thread ), to crash Domino 7.

(2)Lotus C API Toolkit sample code - mthread

__stdcall is not working on Domino.

(3)LNNotesSession

LNNotesSession(C++ API) can not be used on DSAPI(C API).

Can DSAPI threadsafe-programming be done in Domino 7? how?

Thanks