IExtendedTypeLib::AddRefExtendedTypeLibOfClsid Method (Guid, String^, Type^, UInt32, UInt32, String^, Type^)
Visual Studio 2015
Creates an ITypeInfo interface for an extended type and returns a reference counted (AddRef) interface to it. Uses the CLSID of the type being extended.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int AddRefExtendedTypeLibOfClsid( [InAttribute] Guid% rclsidControl, String^ lpstrLibNamePrepend, Type^ ptinfoExtender, unsigned int dwReserved, unsigned int dwFlags, String^ lpstrDirectoryName, [OutAttribute] Type^% pptinfo )
Parameters
- rclsidControl
-
Type:
System::Guid
[in] CLSID of the type being extended.
- lpstrLibNamePrepend
-
Type:
System::String^
[in] Pointer to a string to prepend to the file name of the extended type library.
- ptinfoExtender
-
Type:
System::Type^
[in] Pointer to the ITypeInfo used as the extender.
- dwReserved
-
Type:
System::UInt32
[in] Value not used. Use zero (0).
- dwFlags
-
Type:
System::UInt32
[in] Value not used. Use zero (0).
- lpstrDirectoryName
-
Type:
System::String^
[in] Pointer to a string containing the complete path to write out the extended type library. Use NULL if not saving the library.
- pptinfo
-
Type:
System::Type^
[out] Pointer to the ITypeInfo of the extended type.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
From objext.idl:
[C++]
HRESULT IExtendedTypeLib::AddRefExtendedTypeLibOfClsid( [in] REFCLSID rclsidControl, [in] LPCOLESTR lpstrLibNamePrepend, [in] ITypeInfo* ptinfoExtender, [in] DWORD dwReserved, [in] DWORD dwFlags, [in] LPCOLESTR lpstrDirectoryName, [out] ITypeInfo** pptinfo ;
Show: