RnaTerminate

DWORD
WINAPI RnaTerminate(HANDLE hConn, HANDLE hThread)
 

This function is called by an SMM to notify RNA of the end of the session termination. SMM calls this function to response to the RnaSessStop call from RNA.

hConn
The RNA connection for the session.
hThread
The thread handle RNA will wait before it unloads the SMM. If it is NULL, RNA will unload the SMM immediately.
ERROR_INVALID_HANDLE The RNA connection handle is invalid.