Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

System.Runtime.InteropServices.IEnumSTATDATA has a wrong IID #45316

Closed
smourier opened this issue Nov 29, 2020 · 1 comment · Fixed by #45498
Closed

System.Runtime.InteropServices.IEnumSTATDATA has a wrong IID #45316

smourier opened this issue Nov 29, 2020 · 1 comment · Fixed by #45498

Comments

@smourier
Copy link

smourier commented Nov 29, 2020

IEnumSTATDATA is currently defined in runtime/src/libraries/System.Runtime.InteropServices/src/System/Runtime/InteropServices/ComTypes/IEnumSTATDATA.cs as

00000103-0000-0000-C000-000000000046

namespace System.Runtime.InteropServices.ComTypes
{
	/// <summary>
	/// The IEnumSTATDATA interface is used to enumerate through an array of
	/// STATDATA structures, which contain advisory connection information for
	/// a data object. IEnumSTATDATA has the same methods as all enumerator
	/// interfaces: Next, Skip, Reset, and Clone.
	/// </summary>
	[ComImport]
	[Guid("00000103-0000-0000-C000-000000000046")]
	[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIUnknown)]
	public interface IEnumSTATDATA
	{
		...
	}
}

While Windows SDK's ObjIdl.h defines is as

00000105-0000-0000-C000-000000000046

MIDL_INTERFACE("00000105-0000-0000-C000-000000000046")
IEnumSTATDATA : public IUnknown
{
	...
}

For information, 00000103-0000-0000-C000-000000000046 is IID_IEnumFORMATETC, not IID_IEnumSTATDATA.

I think this bug is here for a long time.

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added area-System.Runtime.InteropServices untriaged New issue has not been triaged by the area owner labels Nov 29, 2020
@elinor-fung elinor-fung added this to the 6.0.0 milestone Dec 2, 2020
@elinor-fung elinor-fung removed the untriaged New issue has not been triaged by the area owner label Dec 2, 2020
@elinor-fung
Copy link
Member

Wow. Yeah, I think this has been wrong for a long time. Good catch.

@ghost ghost locked as resolved and limited conversation to collaborators Jan 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants