IExtendedTypeLib.AddRefExtendedTypeLibOfClsid Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
- 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.
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
;