-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Migrate Shell32
enums to Cswin32
#9909
Conversation
CC: @lonitra |
@@ -8,6 +8,6 @@ internal static partial class Interop | |||
internal static partial class Shell32 | |||
{ | |||
[DllImport(Libraries.Shell32, CharSet = CharSet.Unicode, ExactSpelling = true)] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it be better to change this PInvoke over? The defines should come with that, I believe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NOTIFYICONDATAW
has different versions for different architectures (x86/x64). I wasn't sure how to support that so I left it alone.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elachlan Sorry that I missed your response. The right thing to do is move the struct to the same namespace that it would live under CsWin32 and put a reference to the active CsWin32 issue. microsoft/CsWin32#882
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same for the PInvoke itself
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
@JeremyKuhne anything else I need to address? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, thanks!
Migrates shell32 custom implemented enums to use ones generated from cswin32.
Microsoft Reviewers: Open in CodeFlow