IExtendedTypeLib.AddRefExtendedTypeLibOfClsid Method
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.
Namespace: Microsoft.VisualStudio.Shell.Interop
Assembly: Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)
Syntax
'Declaración
Function AddRefExtendedTypeLibOfClsid ( _
ByRef rclsidControl As Guid, _
lpstrLibNamePrepend As String, _
ptinfoExtender As Type, _
dwReserved As UInteger, _
dwFlags As UInteger, _
lpstrDirectoryName As String, _
<OutAttribute> ByRef pptinfo As Type _
) As Integer
'Uso
Dim instance As IExtendedTypeLib
Dim rclsidControl As Guid
Dim lpstrLibNamePrepend As String
Dim ptinfoExtender As Type
Dim dwReserved As UInteger
Dim dwFlags As UInteger
Dim lpstrDirectoryName As String
Dim pptinfo As Type
Dim returnValue As Integer
returnValue = instance.AddRefExtendedTypeLibOfClsid(rclsidControl, _
lpstrLibNamePrepend, ptinfoExtender, _
dwReserved, dwFlags, lpstrDirectoryName, _
pptinfo)
int AddRefExtendedTypeLibOfClsid(
ref Guid rclsidControl,
string lpstrLibNamePrepend,
Type ptinfoExtender,
uint dwReserved,
uint dwFlags,
string lpstrDirectoryName,
out Type pptinfo
)
int AddRefExtendedTypeLibOfClsid(
[InAttribute] Guid% rclsidControl,
[InAttribute] String^ lpstrLibNamePrepend,
[InAttribute] Type^ ptinfoExtender,
[InAttribute] unsigned int dwReserved,
[InAttribute] unsigned int dwFlags,
[InAttribute] String^ lpstrDirectoryName,
[OutAttribute] Type^% pptinfo
)
abstract AddRefExtendedTypeLibOfClsid :
rclsidControl:Guid byref *
lpstrLibNamePrepend:string *
ptinfoExtender:Type *
dwReserved:uint32 *
dwFlags:uint32 *
lpstrDirectoryName:string *
pptinfo:Type byref -> int
function AddRefExtendedTypeLibOfClsid(
rclsidControl : Guid,
lpstrLibNamePrepend : String,
ptinfoExtender : Type,
dwReserved : uint,
dwFlags : uint,
lpstrDirectoryName : String,
pptinfo : Type
) : int
Parameters
- rclsidControl
Type: System.Guid%
[in] CLSID of the type being extended.
- lpstrLibNamePrepend
Type: System.String
[in] Pointer to a string to prepend to the file name of the extended type library.
- ptinfoExtender
Type: System.Type
[in] Pointer to the ITypeInfo used as the extender.
- dwReserved
Type: System.UInt32
[in] Value not used. Use zero (0).
- dwFlags
Type: System.UInt32
[in] Value not used. Use zero (0).
- lpstrDirectoryName
Type: System.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: System.Type%
[out] Pointer to the ITypeInfo of the extended type.
Return Value
Type: System.Int32
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
;
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.