ITsSbResourcePluginStore::QuerySessionByUserName method

Returns the session object for the specified user on the specified target.

Syntax

HRESULT QuerySessionByUserName(
  [in]   BSTR UserName,
  [in]   TARGET_TYPE TargetType,
  [in]   BSTR TargetName,
  [out]  ITsSbSession **ppSession
);

Parameters

  • UserName [in]
    The user name.

  • TargetType [in]
    The type of target.

  • TargetName [in]
    The target name.

  • ppSession [out]
    A pointer to a pointer to an ITsSbSession session object. When you have finished using the object, release it by calling the Release method.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

A resource plug-in can use this method to retrieve a session object for a specified user on a specified target. Unlike the global store, the resource plug-in store does not copy the session object retrieved because the resource plug-in owns this session object.

Requirements

Minimum supported client

None supported [desktop apps only]

Minimum supported server

Windows Server 2008 R2 [desktop apps only]

IDL

Sbtsv.idl

See also

ITsSbResourcePluginStore

ITsSbSession

 

 

Send comments about this topic to Microsoft

Build date: 10/26/2012