Compartilhar via


IExtendedTypeLib.AddRefExtendedTypeLibOfClsid Method

Definition

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.

public:
 int AddRefExtendedTypeLibOfClsid(Guid % rclsidControl, System::String ^ lpstrLibNamePrepend, Type ^ ptinfoExtender, System::UInt32 dwReserved, System::UInt32 dwFlags, System::String ^ lpstrDirectoryName, [Runtime::InteropServices::Out] Type ^ % pptinfo);
public int AddRefExtendedTypeLibOfClsid (ref Guid rclsidControl, string lpstrLibNamePrepend, Type ptinfoExtender, uint dwReserved, uint dwFlags, string lpstrDirectoryName, out Type pptinfo);
abstract member AddRefExtendedTypeLibOfClsid : Guid * string * Type * uint32 * uint32 * string * Type -> int
Public Function AddRefExtendedTypeLibOfClsid (ByRef rclsidControl As Guid, lpstrLibNamePrepend As String, ptinfoExtender As Type, dwReserved As UInteger, dwFlags As UInteger, lpstrDirectoryName As String, ByRef pptinfo As Type) As Integer

Parameters

rclsidControl
Guid

[in] CLSID of the type being extended.

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.

pptinfo
Type

[out] Pointer to the ITypeInfo of the extended type.

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::AddRefExtendedTypeLibOfClsid(  
   [in] REFCLSID rclsidControl,   
   [in] LPCOLESTR lpstrLibNamePrepend,   
   [in] ITypeInfo* ptinfoExtender,   
   [in] DWORD dwReserved,   
   [in] DWORD dwFlags,   
   [in] LPCOLESTR lpstrDirectoryName,   
   [out] ITypeInfo** pptinfo  
;  

Applies to