diff --git a/PInvoke/Ole/OleAut32/OAIdl.Interfaces.cs b/PInvoke/Ole/OleAut32/OAIdl.Interfaces.cs
index 16fef508..0c720910 100644
--- a/PInvoke/Ole/OleAut32/OAIdl.Interfaces.cs
+++ b/PInvoke/Ole/OleAut32/OAIdl.Interfaces.cs
@@ -249,7 +249,7 @@ namespace Vanara.PInvoke
///
// 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);
/// Sets the documentation string displayed by type browsers.
/// A brief description of the type description.
@@ -396,7 +396,7 @@ namespace Vanara.PInvoke
// 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);
/// Adds a function description to the type description.
/// The index of the new FUNCDESC in the type information.
@@ -549,7 +549,7 @@ namespace Vanara.PInvoke
// 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);
/// Specifies the data alignment for an item of TYPEKIND=TKIND_RECORD.
///
@@ -1197,7 +1197,7 @@ namespace Vanara.PInvoke
///
// 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);
/// Sets the documentation string displayed by type browsers.
/// A brief description of the type description.
@@ -1344,7 +1344,7 @@ namespace Vanara.PInvoke
// 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);
/// Adds a function description to the type description.
/// The index of the new FUNCDESC in the type information.
@@ -1497,7 +1497,7 @@ namespace Vanara.PInvoke
// 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);
/// Specifies the data alignment for an item of TYPEKIND=TKIND_RECORD.
///