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

Implement LOWORD and HIWORD Macros for Extracting Low-Order and High-Order Words from a 32-Bit Value #1300

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vitkuz573
Copy link

@vitkuz573 vitkuz573 commented Nov 3, 2024

Implement LOWORD and HIWORD Macros for 32-Bit Value Extraction

Summary of Changes

  1. Macro Implementation

    • Added LOWORD and HIWORD macros to extract 16-bit segments from 32-bit values.
  2. Unit Tests

    • Introduced tests for LOWORD and HIWORD in MacroTests.cs to verify functionality with various test cases.
  3. Visibility Testing

    • Updated MacrosTests.cs to validate visibility settings for LOWORD and HIWORD.
  4. Native Methods Update

    • Included LOWORD and HIWORD in NativeMethods.txt for project reference.

Files Changed

  • src/Microsoft.Windows.CsWin32/templates/PInvokeClassMacros.cs
  • test/GenerationSandbox.Tests/MacroTests.cs
  • test/GenerationSandbox.Tests/NativeMethods.txt
  • test/Microsoft.Windows.CsWin32.Tests/MacrosTests.cs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant