IVsSmartOpenScope::OpenScope Method (String^, UInt32, Guid, Object^)
Visual Studio 2015
Open a scope and return a requested interface on it.
Assembly: Microsoft.VisualStudio.Shell.Interop.8.0 (in Microsoft.VisualStudio.Shell.Interop.8.0.dll)
int OpenScope( String^ wszScope, unsigned int dwOpenFlags, [InAttribute] Guid% riid, [OutAttribute] Object^% ppIUnk )
Parameters
- wszScope
-
Type:
System::String^
[in] String containing the name of the file.
- dwOpenFlags
-
Type:
System::UInt32
[in] Bit flags indicating how to open the file. Constructed using values from the CorOpenFlags Enumeration.
- riid
-
Type:
System::Guid
[in] Pointer to the GUID of the desired return interface.
- ppIUnk
-
Type:
System::Object^
[out] Pointer to the requested interface on the scope.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: