IVsSmartOpenScope.OpenScope(String, UInt32, Guid, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Open a scope and return a requested interface on it.
public:
int OpenScope(System::String ^ wszScope, System::UInt32 dwOpenFlags, Guid % riid, [Runtime::InteropServices::Out] System::Object ^ % ppIUnk);
public int OpenScope (string wszScope, uint dwOpenFlags, ref Guid riid, out object ppIUnk);
abstract member OpenScope : string * uint32 * Guid * obj -> int
Public Function OpenScope (wszScope As String, dwOpenFlags As UInteger, ByRef riid As Guid, ByRef ppIUnk As Object) As Integer
Parameters
- wszScope
- String
[in] String containing the name of the file.
- dwOpenFlags
- UInt32
[in] Bit flags indicating how to open the file. Constructed using values from the CorOpenFlags Enumeration.
- riid
- Guid
[in] Pointer to the GUID of the desired return interface.
- ppIUnk
- Object
[out] Pointer to the requested interface on the scope.
Returns
If the method succeeds, it returns S_OK. If it fails, it returns an error code.