IExtendedTypeLib.AddRefExtendedTypeLibOfClsid(Guid, String, Type, UInt32, UInt32, String, Type) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
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.
- 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.
Retours
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
;