You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
ICreateTypeInfo.AddRefTypeInfo is used to obtain an href value to be used later in the AddImplType method.
The remarks start with the following sentence:
The second parameter returns a pointer to the handle of the added type information.
The method is currently declared as following: HRESULT AddRefTypeInfo([In] ITypeInfo pTInfo, in uint phRefType);
With this declaration, it is impossible to obtain a value. phRefType should really be declared as an out parameter.
What code is involved
PInvoke/Ole/OleAut32/OAIdl.Interfaces.cs
Expected behavior
Define phRefType as out, so that a value can be obtained. Looking into OAIdl.h, you can see that the parameter is originally a pointer.
Thank you and best regards,
Sebastian
The text was updated successfully, but these errors were encountered:
Describe the bug
ICreateTypeInfo.AddRefTypeInfo is used to obtain an href value to be used later in the AddImplType method.
The remarks start with the following sentence:
The method is currently declared as following:
HRESULT AddRefTypeInfo([In] ITypeInfo pTInfo, in uint phRefType);
With this declaration, it is impossible to obtain a value. phRefType should really be declared as an out parameter.
What code is involved
PInvoke/Ole/OleAut32/OAIdl.Interfaces.cs
Expected behavior
Define phRefType as out, so that a value can be obtained. Looking into OAIdl.h, you can see that the parameter is originally a pointer.
Thank you and best regards,
Sebastian
The text was updated successfully, but these errors were encountered: