Skip to content

Commit

Permalink
Fixed #262 and adjusted other functions in ICreateTypeInfo to include…
Browse files Browse the repository at this point in the history
… enums.
  • Loading branch information
dahall committed Dec 27, 2021
1 parent b003cb6 commit 52af822
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions PInvoke/Ole/OleAut32/OAIdl.Interfaces.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public interface ICreateTypeInfo
/// </returns>
// https://docs.microsoft.com/en-us/windows/win32/api/oaidl/nf-oaidl-icreatetypeinfo-settypeflags HRESULT SetTypeFlags(UINT uTypeFlags);
[PreserveSig]
HRESULT SetTypeFlags(uint uTypeFlags);
HRESULT SetTypeFlags([MarshalAs(UnmanagedType.U4)] System.Runtime.InteropServices.ComTypes.TYPEFLAGS uTypeFlags);

/// <summary>Sets the documentation string displayed by type browsers.</summary>
/// <param name="pStrDoc">A brief description of the type description.</param>
Expand Down Expand Up @@ -396,7 +396,7 @@ public interface ICreateTypeInfo
// https://docs.microsoft.com/en-us/windows/win32/api/oaidl/nf-oaidl-icreatetypeinfo-addreftypeinfo HRESULT AddRefTypeInfo(//
// ITypeInfo *pTInfo, HREFTYPE *phRefType);
[PreserveSig]
HRESULT AddRefTypeInfo([In] ITypeInfo pTInfo, in uint phRefType);
HRESULT AddRefTypeInfo([In] ITypeInfo pTInfo, out uint phRefType);

/// <summary>Adds a function description to the type description.</summary>
/// <param name="index">The index of the new FUNCDESC in the type information.</param>
Expand Down Expand Up @@ -549,7 +549,7 @@ public interface ICreateTypeInfo
// https://docs.microsoft.com/en-us/windows/win32/api/oaidl/nf-oaidl-icreatetypeinfo-setimpltypeflags HRESULT
// SetImplTypeFlags(// UINT index, INT implTypeFlags);
[PreserveSig]
HRESULT SetImplTypeFlags(uint index, int implTypeFlags);
HRESULT SetImplTypeFlags(uint index, System.Runtime.InteropServices.ComTypes.IMPLTYPEFLAGS implTypeFlags);

/// <summary>Specifies the data alignment for an item of TYPEKIND=TKIND_RECORD.</summary>
/// <param name="cbAlignment">
Expand Down Expand Up @@ -1197,7 +1197,7 @@ public interface ICreateTypeInfo2 : ICreateTypeInfo
/// </returns>
// https://docs.microsoft.com/en-us/windows/win32/api/oaidl/nf-oaidl-icreatetypeinfo-settypeflags HRESULT SetTypeFlags(UINT uTypeFlags);
[PreserveSig]
new HRESULT SetTypeFlags(uint uTypeFlags);
new HRESULT SetTypeFlags([MarshalAs(UnmanagedType.U4)] System.Runtime.InteropServices.ComTypes.TYPEFLAGS uTypeFlags);

/// <summary>Sets the documentation string displayed by type browsers.</summary>
/// <param name="pStrDoc">A brief description of the type description.</param>
Expand Down Expand Up @@ -1344,7 +1344,7 @@ public interface ICreateTypeInfo2 : ICreateTypeInfo
// https://docs.microsoft.com/en-us/windows/win32/api/oaidl/nf-oaidl-icreatetypeinfo-addreftypeinfo HRESULT AddRefTypeInfo(//
// ITypeInfo *pTInfo, HREFTYPE *phRefType);
[PreserveSig]
new HRESULT AddRefTypeInfo([In] ITypeInfo pTInfo, in uint phRefType);
new HRESULT AddRefTypeInfo([In] ITypeInfo pTInfo, out uint phRefType);

/// <summary>Adds a function description to the type description.</summary>
/// <param name="index">The index of the new FUNCDESC in the type information.</param>
Expand Down Expand Up @@ -1497,7 +1497,7 @@ public interface ICreateTypeInfo2 : ICreateTypeInfo
// https://docs.microsoft.com/en-us/windows/win32/api/oaidl/nf-oaidl-icreatetypeinfo-setimpltypeflags HRESULT
// SetImplTypeFlags(// UINT index, INT implTypeFlags);
[PreserveSig]
new HRESULT SetImplTypeFlags(uint index, int implTypeFlags);
new HRESULT SetImplTypeFlags(uint index, System.Runtime.InteropServices.ComTypes.IMPLTYPEFLAGS implTypeFlags);

/// <summary>Specifies the data alignment for an item of TYPEKIND=TKIND_RECORD.</summary>
/// <param name="cbAlignment">
Expand Down

0 comments on commit 52af822

Please sign in to comment.