IExtendedTypeLib.CreateExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib) IExtendedTypeLib.CreateExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib) IExtendedTypeLib.CreateExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib) IExtendedTypeLib.CreateExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib) IExtendedTypeLib.CreateExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib) Method

Definition

Creates an ITypeLib interface for an extended type. The interface is not reference counted. The client must handle reference counting.

public:
 int CreateExtendedTypeLib(System::String ^ lpstrCtrlLibFileName, System::String ^ lpstrLibNamePrepend, Type ^ ptinfoExtender, System::UInt32 dwReserved, System::UInt32 dwFlags, System::String ^ lpstrDirectoryName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::ITypeLib ^ % pptLib);
public:
 int CreateExtendedTypeLib(Platform::String ^ lpstrCtrlLibFileName, Platform::String ^ lpstrLibNamePrepend, Platform::Type ^ ptinfoExtender, unsigned int dwReserved, unsigned int dwFlags, Platform::String ^ lpstrDirectoryName, [Runtime::InteropServices::Out] Microsoft::VisualStudio::OLE::Interop::ITypeLib ^ &  pptLib);
public int CreateExtendedTypeLib (string lpstrCtrlLibFileName, string lpstrLibNamePrepend, Type ptinfoExtender, uint dwReserved, uint dwFlags, string lpstrDirectoryName, out Microsoft.VisualStudio.OLE.Interop.ITypeLib pptLib);
abstract member CreateExtendedTypeLib : string * string * Type * uint32 * uint32 * string *  -> int
Public Function CreateExtendedTypeLib (lpstrCtrlLibFileName As String, lpstrLibNamePrepend As String, ptinfoExtender As Type, dwReserved As UInteger, dwFlags As UInteger, lpstrDirectoryName As String, ByRef pptLib As ITypeLib) As Integer

Parameters

lpstrCtrlLibFileName
String String String String 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
String String String String String

[in] Pointer to a string to prepend to the file name of the extended type library.

ptinfoExtender
Type Type Type Type Type

[in] Pointer to the ITypeInfo used as the extender.

dwReserved
UInt32 UInt32 UInt32 UInt32 UInt32

[in] Value not used. Use zero (0).

dwFlags
UInt32 UInt32 UInt32 UInt32 UInt32

[in] Value not used. Use zero (0).

lpstrDirectoryName
String String String String 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
ITypeLib ITypeLib ITypeLib ITypeLib ITypeLib

[out] Pointer to the ITypeLib of the extended (combined) type library.

Returns

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

Remarks

COM Signature

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  
);  

Applies to