次の方法で共有


IExtendedTypeLib.CreateExtendedTypeLib Method

Definition

Overloads

CreateExtendedTypeLib(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.

CreateExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib)

CreateExtendedTypeLib(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.

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 * ITypeLib -> 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

[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

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

ptinfoExtender
Type

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

dwReserved
UInt32

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

dwFlags
UInt32

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

lpstrDirectoryName
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

[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

CreateExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib)

public:
 int CreateExtendedTypeLib(System::String ^ lpstrCtrlLibFileName, System::String ^ lpstrLibNamePrepend, Type ^ ptinfoExtender, System::UInt32 dwReserved, System::UInt32 dwFlags, System::String ^ lpstrDirectoryName, [Runtime::InteropServices::Out] System::Runtime::InteropServices::ComTypes::ITypeLib ^ % pptLib);
public int CreateExtendedTypeLib (string lpstrCtrlLibFileName, string lpstrLibNamePrepend, Type ptinfoExtender, uint dwReserved, uint dwFlags, string lpstrDirectoryName, out System.Runtime.InteropServices.ComTypes.ITypeLib pptLib);
abstract member CreateExtendedTypeLib : string * string * Type * uint32 * uint32 * string * ITypeLib -> 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
lpstrLibNamePrepend
String
ptinfoExtender
Type
dwReserved
UInt32
dwFlags
UInt32
lpstrDirectoryName
String
pptLib
ITypeLib

Returns

Applies to