IVsRegisterFindScope::RegisterFindScope Method (IVsFindScope^, UInt32)

 

Registers the specified find scope for Find in Files.

Namespace:   Microsoft.VisualStudio.TextManager.Interop
Assembly:  Microsoft.VisualStudio.TextManager.Interop (in Microsoft.VisualStudio.TextManager.Interop.dll)

int RegisterFindScope(
	IVsFindScope^ pScope,
	[OutAttribute] unsigned int% pdwCookie
)

Parameters

pScope
Type: Microsoft.VisualStudio.TextManager.Interop::IVsFindScope^

[in] The scope to use for Find in Files.

pdwCookie
Type: System::UInt32

[out] Cookie for the registered find scope.

Return Value

Type: System::Int32

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

From textmgr.idl:

HRESULT IVsRegisterFindScope::RegisterFindScope(
   [in] IVsFindScope * pScope,
   [out] DWORD_PTR * pdwCookie
);
Return to top
Show: