Skip to content

Latest commit

 

History

History
101 lines (71 loc) · 4.79 KB

nf-searchapi-iurlaccessor3-getimpersonationsidblobs.md

File metadata and controls

101 lines (71 loc) · 4.79 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:searchapi.IUrlAccessor3.GetImpersonationSidBlobs
IUrlAccessor3::GetImpersonationSidBlobs (searchapi.h)
Retrieves an array of user security identifiers (SIDs) for a specified URL. This method enables protocol handlers to specify which users can access the file and the search protocol host to impersonate a user in order to index the file.
GetImpersonationSidBlobs
GetImpersonationSidBlobs method [search]
GetImpersonationSidBlobs method [search]
IUrlAccessor3 interface
GetImpersonationSidBlobs method [search]
IUrlAccessor4 interface
IUrlAccessor3 interface [search]
GetImpersonationSidBlobs method
IUrlAccessor3.GetImpersonationSidBlobs
IUrlAccessor3::GetImpersonationSidBlobs
IUrlAccessor4 interface [search]
GetImpersonationSidBlobs method
IUrlAccessor4::GetImpersonationSidBlobs
_search_IUrlAccessor3_GetImpersonationSidBlobs
search._search_IUrlAccessor3_GetImpersonationSidBlobs
searchapi/IUrlAccessor3::GetImpersonationSidBlobs
searchapi/IUrlAccessor4::GetImpersonationSidBlobs
search\_search_IUrlAccessor3_GetImpersonationSidBlobs.htm
search
VS|SEARCH|~\search\wds3x\reference\ifaces\protocolhandlers\iurlaccessor3\getimpersonationsidblobs.htm
12/05/2018
GetImpersonationSidBlobs, GetImpersonationSidBlobs method [search], GetImpersonationSidBlobs method [search],IUrlAccessor3 interface, GetImpersonationSidBlobs method [search],IUrlAccessor4 interface, IUrlAccessor3 interface [search],GetImpersonationSidBlobs method, IUrlAccessor3.GetImpersonationSidBlobs, IUrlAccessor3::GetImpersonationSidBlobs, IUrlAccessor4 interface [search],GetImpersonationSidBlobs method, IUrlAccessor4::GetImpersonationSidBlobs, _search_IUrlAccessor3_GetImpersonationSidBlobs, search._search_IUrlAccessor3_GetImpersonationSidBlobs, searchapi/IUrlAccessor3::GetImpersonationSidBlobs, searchapi/IUrlAccessor4::GetImpersonationSidBlobs
searchapi.h
Windows
Windows XP with SP2, Windows Vista with SP2 [desktop apps only]
Windows Server 2003 with SP1 [desktop apps only]
Urlaccsdk.idl
Windows
Windows Search (WS) 4.0
19H1
IUrlAccessor3::GetImpersonationSidBlobs
searchapi/IUrlAccessor3::GetImpersonationSidBlobs
c++
APIRef
kbSyntax
COM
Searchapi.h
IUrlAccessor3.GetImpersonationSidBlobs
IUrlAccessor4.GetImpersonationSidBlobs

IUrlAccessor3::GetImpersonationSidBlobs

-description

Retrieves an array of user security identifiers (SIDs) for a specified URL. This method enables protocol handlers to specify which users can access the file and the search protocol host to impersonate a user in order to index the file.

-parameters

-param pcwszURL [in]

Type: LPCWSTR

The URL to access on behalf of an impersonated user.

-param pcSidCount [out]

Type: DWORD*

Receives a pointer to the number of user SIDs returned in ppSidBlobs.

-param ppSidBlobs [out]

Type: BLOB**

Receives the address of a pointer to the array of candidate impersonation user SIDs.

-returns

Type: HRESULT

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

-remarks

If the file is encrypted, this method identifies who can both decrypt and access it. If the method cannot identify this information, it fails with error code E_ACCESSDENIED.

This method assumes that the IUrlAccessor2 object failed to initialize and returned the code PRTH_S_TRY_IMPERSONATING. Then, the search protocol host calls this method to retrieve a list of SIDs to use for impersonation and reverts to using IUrlAccessor2, impersonating one of the allowed users when opening the item.

Impersonating a user does not elevate the caller's privileges. If the caller cannot directly retrieve the list of users authorized to access a resource, the caller won't be able to do that with this method, either. Only the search protocol host and the indexer have adequate privileges to impersonate users currently logged on.

-see-also

IUrlAccessor3

IUrlAccessor4

Search Protocol Handler Error Messages