srv_revert_to_self

Stops impersonation of the security context of a client connection, reverting to the original security context of the Open Data Services application.

Syntax

int srv_revert_to_self ( SRV_PROC * srvproc );

where

srvproc
Is a pointer to the SRV_PROC structure that is the handle for a particular client connection. The srvproc parameter contains the information that the Open Data Services Library uses to manage communication and data between the application and the client.

Returns

SUCCEED if the original security context of the Open Data Services application was restored; otherwise, FAIL.

Remarks

Call this function to stop the impersonation started by srv_impersonate_client.

See Also

This entry For information about
srv_impersonate_client Impersonating the security context of a client connection