Expand Minimize

WsGetSecurityContextProperty function

Gets a property of the specified security context.

Syntax


HRESULT WINAPI  WsGetSecurityContextProperty(
  _In_      WS_SECURITY_CONTEXT* securityContext,
  _In_      WS_SECURITY_CONTEXT_PROPERTY_ID id,
  void* value,
  _In_      ULONG valueSize,
  _In_opt_  WS_ERROR* error
);

Parameters

securityContext [in]

The security context that is queried for its property.

id [in]

The id of the property (one of WS_SECURITY_CONTEXT_PROPERTY_ID).

value

The address to place the retrieved value. The pointer must have an alignment compatible with the type of the property.

valueSize [in]

The size of the buffer that the caller has allocated for the retrieved value.

error [in, optional]

Specifies where additional error information should be stored if the function fails.

Return value

This function can return one of these values.

Return codeDescription
E_INVALIDARG

The property id was not supported for this object or the specified buffer was not large enough for the value.

E_OUTOFMEMORY

Ran out of memory.

Other Errors

This function may return other errors not listed above.

 

Requirements

Minimum supported client

Windows 7 [desktop apps | Windows Store apps]

Minimum supported server

Windows Server 2008 R2 [desktop apps | Windows Store apps]

Header

WebServices.h

Library

WebServices.lib

DLL

WebServices.dll

 

 

Community Additions

ADD
Show:
© 2014 Microsoft