Skip to content

Conversation

@leon-xd
Copy link
Contributor

@leon-xd leon-xd commented Feb 19, 2025

Drivers that use the wdk_sys::PAGED_CODE macro used to have to separately import wdk_sys::ntddk::KeGetCurrentIrql and wdk_sys::APC_LEVEL in order to get the expanded macro to compile.

This change introduces absolute paths in wdk_sys::PAGED_CODE so that developers do not have to introduce these use statements to their code.

@leon-xd leon-xd requested a review from Copilot February 19, 2025 23:09
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 1 out of 1 changed files in this pull request and generated no comments.

@leon-xd leon-xd requested a review from wmmc88 February 19, 2025 23:10
@wmmc88 wmmc88 changed the title fix: added absolute paths to PAGED_CODE macro fix: added absolute paths to items used in PAGED_CODE macro Feb 20, 2025
Copy link
Collaborator

@wmmc88 wmmc88 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(i edited your pr title a bit to be more specific) but nice catch! Thanks for the fix :)

@wmmc88
Copy link
Collaborator

wmmc88 commented Feb 20, 2025

It'd be nice to have a test for this, but it'd rely on the automatic mockgeneration work that is still being explored

@wmmc88 wmmc88 changed the title fix: added absolute paths to items used in PAGED_CODE macro fix: use absolute paths to items used in PAGED_CODE macro Feb 22, 2025
@wmmc88 wmmc88 changed the title fix: use absolute paths to items used in PAGED_CODE macro fix: use absolute paths for items used in PAGED_CODE macro Feb 22, 2025
@leon-xd leon-xd added this pull request to the merge queue Feb 27, 2025
Merged via the queue into microsoft:main with commit 49935f3 Feb 27, 2025
62 checks passed
@leon-xd leon-xd deleted the paged-code-absolute-paths branch February 27, 2025 22:24
leon-xd added a commit to leon-xd/windows-drivers-rs that referenced this pull request Mar 5, 2025
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.

3 participants