IExtendedTypeLib::CreateExtendedTypeLib Method (String^, String^, Type^, UInt32, UInt32, String^, ITypeLib^)
Creates an ITypeLib interface for an extended type. The interface is not reference counted. The client must handle reference counting.
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
int CreateExtendedTypeLib( String^ lpstrCtrlLibFileName, String^ lpstrLibNamePrepend, Type^ ptinfoExtender, unsigned int dwReserved, unsigned int dwFlags, String^ lpstrDirectoryName, [OutAttribute] ITypeLib^% pptLib )
Parameters
- lpstrCtrlLibFileName
-
Type:
System::String^
[in] Pointer to a string containing the type library file name. This is the type library being extended.
You can get the name of a type library from its GUID and other information using QueryPathOfRegTypeLib.
- 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.
- pptLib
-
Type:
Microsoft.VisualStudio.OLE.Interop::ITypeLib^
[out] Pointer to the ITypeLib of the extended (combined) type library.
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::CreateExtendedTypeLib( [in] LPCOLESTR lpstrCtrlLibFileName, [in] LPCOLESTR lpstrLibNamePrepend, [in] ITypeInfo* ptinfoExtender, [in] DWORD dwReserved, [in] DWORD dwFlags, [in] LPCOLESTR lpstrDirectoryName, [out] ITypeLib** pptLib );