Partilhar via


Método IExtendedTypeLib.AddRefExtendedTypeLib (String, String, Type, UInt32, UInt32, String, ITypeLib)

 

Publicado: abril de 2016

Cria uma biblioteca de tipo estendido e retorna que uma referência contados interface (AddRef) a ele.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (em Microsoft.VisualStudio.Shell.Interop.dll)

Sintaxe

int AddRefExtendedTypeLib(
    string lpstrCtrlLibFileName,
    string lpstrLibNamePrepend,
    Type ptinfoExtender,
    uint dwReserved,
    uint dwFlags,
    string lpstrDirectoryName,
    out ITypeLib pptLib
)
int AddRefExtendedTypeLib(
    String^ lpstrCtrlLibFileName,
    String^ lpstrLibNamePrepend,
    Type^ ptinfoExtender,
    unsigned int dwReserved,
    unsigned int dwFlags,
    String^ lpstrDirectoryName,
    [OutAttribute] ITypeLib^% pptLib
)
abstract AddRefExtendedTypeLib : 
        lpstrCtrlLibFileName:string *
        lpstrLibNamePrepend:string *
        ptinfoExtender:Type *
        dwReserved:uint32 *
        dwFlags:uint32 *
        lpstrDirectoryName:string *
        pptLib:ITypeLib byref -> int
Function AddRefExtendedTypeLib (
    lpstrCtrlLibFileName As String,
    lpstrLibNamePrepend As String,
    ptinfoExtender As Type,
    dwReserved As UInteger,
    dwFlags As UInteger,
    lpstrDirectoryName As String,
    <OutAttribute> ByRef pptLib As ITypeLib
) As Integer

Parâmetros

  • lpstrCtrlLibFileName
    [in] Ponteiro para uma seqüência de caracteres que contém o nome de arquivo da biblioteca de tipos.Esta é a biblioteca de tipos que está sendo estendida.

    Você pode obter o nome de uma biblioteca de tipos de seu GUID e outras informações usando o QueryPathOfRegTypeLib.

  • lpstrLibNamePrepend
    [in] Ponteiro para uma seqüência de caracteres preceder o nome do arquivo da biblioteca tipo estendido.
  • ptinfoExtender
    [in] Ponteiro para o ITypeInfo usado como o extensor.
  • dwReserved
    [in] Valor não usado.Uso de zero (0).
  • dwFlags
    [in] Valor não usado.Uso de zero (0).
  • lpstrDirectoryName
    [in] Ponteiro para uma seqüência de caracteres que contém o caminho completo para escrever a biblioteca de tipo estendido.Use NULL se não salvar a biblioteca.
  • pptLib
    [out] Ponteiro para o ITypeLib da biblioteca tipo (combinado) estendido.

Valor de retorno

Type: System.Int32

Se o método for bem-sucedido, ele retorna S_OK.Se ele falhar, ele retorna um código de erro.

Comentários

COM assinatura

De 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
);

Consulte também

Interface IExtendedTypeLib
Namespace Microsoft.VisualStudio.Shell.Interop

Retornar ao topo