IExtendedTypeLib.AddRefExtendedTypeLib 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.
Overloads
AddRefExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib) |
Creates an extended type library and returns a reference counted (AddRef) interface to it. |
AddRefExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib) |
AddRefExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib)
Creates an extended type library and returns a reference counted (AddRef) interface to it.
public:
int AddRefExtendedTypeLib(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 AddRefExtendedTypeLib(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 AddRefExtendedTypeLib (string lpstrCtrlLibFileName, string lpstrLibNamePrepend, Type ptinfoExtender, uint dwReserved, uint dwFlags, string lpstrDirectoryName, out Microsoft.VisualStudio.OLE.Interop.ITypeLib pptLib);
abstract member AddRefExtendedTypeLib : string * string * Type * uint32 * uint32 * string * ITypeLib -> int
Public Function AddRefExtendedTypeLib (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.
- 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.
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::AddRefExtendedTypeLib(
[in] LPCOLESTR lpstrCtrlLibFileName,
[in] LPCOLESTR lpstrLibNamePrepend,
[in] ITypeInfo* ptinfoExtender,
[in] DWORD dwReserved,
[in] DWORD dwFlags,
[in] LPCOLESTR lpstrDirectoryName,
[out] ITypeLib** pptLib
);
Applies to
AddRefExtendedTypeLib(String, String, Type, UInt32, UInt32, String, ITypeLib)
public:
int AddRefExtendedTypeLib(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 AddRefExtendedTypeLib (string lpstrCtrlLibFileName, string lpstrLibNamePrepend, Type ptinfoExtender, uint dwReserved, uint dwFlags, string lpstrDirectoryName, out System.Runtime.InteropServices.ComTypes.ITypeLib pptLib);
abstract member AddRefExtendedTypeLib : string * string * Type * uint32 * uint32 * string * ITypeLib -> int
Public Function AddRefExtendedTypeLib (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