RpcBindingInqAuthInfo function (rpcdce.h)
The RpcBindingInqAuthInfo function returns authentication and authorization information from a binding handle.
RPC_STATUS RpcBindingInqAuthInfo( RPC_BINDING_HANDLE Binding, RPC_CSTR *ServerPrincName, unsigned long *AuthnLevel, unsigned long *AuthnSvc, RPC_AUTH_IDENTITY_HANDLE *AuthIdentity, unsigned long *AuthzSvc );
Server binding handle from which authentication and authorization information is returned.
Returns a pointer to a pointer to the expected principal name of the server referenced in Binding. The content of the returned name and its syntax are defined by the authentication service in use.
Specify a null value to prevent RpcBindingInqAuthInfo from returning the ServerPrincName parameter. In this case, the application does not call the RpcStringFree function.
Returns a pointer set to the level of authentication used for remote procedure calls made using Binding. See Note.
Specify a null value to prevent the function from returning the AuthnLevel parameter.
The level returned in the AuthnLevel parameter may be different from the level specified when the client called the RpcBindingSetAuthInfo function. This discrepancy occurs when the RPC run-time library does not support the authentication level specified by the client and automatically upgrades to the next higher authentication level.
Returns a pointer set to the authentication service specified for remote procedure calls made using Binding. See Note.
Specify a null value to prevent RpcBindingInqAuthInfo from returning the AuthnSvc parameter.
Returns a pointer to a handle to the data structure that contains the client's authentication and authorization credentials specified for remote procedure calls made using Binding.
Specify a null value to prevent RpcBindingInqAuthInfo from returning the AuthIdentity parameter.
Returns a pointer set to the authorization service requested by the client application that made the remote procedure call on Binding See Note.
Specify a null value to prevent RpcBindingInqAuthInfo from returning the AuthzSvc parameter.
||The call succeeded.|
||The binding handle was invalid.|
||This was the wrong kind of binding for the operation.|
||Binding has no authentication information.|
A client application calls the RpcBindingInqAuthInfo function to view the authentication and authorization information associated with a server binding handle. A similar function, RpcBindingInqAuthInfoEx additionally provides security quality-of-service information on the binding handle.
The RPC run-time library allocates memory for the returned ServerPrincName parameter. The application is responsible for calling the RpcStringFree function for that returned argument string.
|Minimum supported client||Windows 2000 Professional [desktop apps | UWP apps]|
|Minimum supported server||Windows 2000 Server [desktop apps | UWP apps]|
|Header||rpcdce.h (include Rpc.h)|