IExtendedTypeLib.AddRefExtendedTypeLibOfClsid(Guid, String, Type, UInt32, UInt32, String, Type) Méthode

Définition

Crée une interface ITypeInfo pour un type étendu et lui retourne une interface de références comptabilisées (AddRef). Utilise le CLSID du type qui est étendu.

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

Paramètres

rclsidControl
Guid

[in] CLSID du type en cours d'extension.

lpstrLibNamePrepend
String

[in] Pointeur vers une chaîne à ajouter au nom de fichier de la bibliothèque de types étendue.

ptinfoExtender
Type

[in] Pointeur vers l'interface ITypeInfo utilisée comme extendeur.

dwReserved
UInt32

[in] Valeur non utilisée. Utilisez zéro (0).

dwFlags
UInt32

[in] Valeur non utilisée. Utilisez zéro (0).

lpstrDirectoryName
String

[in] Pointeur vers une chaîne contenant le chemin d'accès complet pour écrire la bibliothèque de types étendue. Utilise la valeur NULL si vous n'enregistrez pas la bibliothèque.

pptinfo
Type

[out] Pointeur vers ITypeInfo du type étendu.

Retours

Int32

Si la méthode réussit, retourne S_OK. En cas d'échec, retourne un code d'erreur.

Remarques

Signature COM

À partir de 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  
;  

S’applique à