RegisterTypeLibForUser function
Registers a type library for use by the calling user.
Syntax
HRESULT RegisterTypeLibForUser( ITypeLib *ptlib, _In_ OLECHAR *szFullPath, _In_opt_ OLECHAR *szHelpDir );
Parameters
- ptlib
-
The type library.
- szFullPath [in]
-
The fully qualified path specification for the type library.
- szHelpDir [in, optional]
-
The directory in which the Help file for the library being registered can be found. This parameter can be null.
Return value
This function can return one of these values.
| Return code | Description |
|---|---|
|
Success. |
|
One or more of the arguments is not valid. |
|
Insufficient memory to complete the operation. |
|
The function could not write to the file. |
|
The system registration database could not be opened. |
|
The type library could not be opened. |
Remarks
RegisterTypeLibForUser has functionality identical to RegisterTypeLib except that type library is registered for use only by the calling user identity.
Requirements
|
Header |
|
|---|---|
|
Library |
|
|
DLL |
|