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

When the platform toolset is set to v140_xp, the symbol BusTypeNvme is not defined in the 64-bit program #238

Open
AsunaU2 opened this issue Dec 11, 2023 · 3 comments

Comments

@AsunaU2
Copy link

AsunaU2 commented Dec 11, 2023

When the platform toolset is set to v140_xp, the symbol BusTypeNvme is not defined in the 64-bit program:
image

At the same time, I noticed that under WIN64, BusTypeNvme is defined as 17. Can I directly set it to 17 to ensure that the compilation passes? Like this:
image

I don't know if doing this will affect functionality in some cases

@AsunaU2
Copy link
Author

AsunaU2 commented Dec 20, 2023

https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddstor/ne-ntddstor-storage_bus_type 你数一下,这玩意正好是第17个

https://learn.microsoft.com/zh-cn/windows/win32/api/VdsLun/ne-vdslun-vds_storage_bus_type

Yes, so I'm wondering if the original code was written to prevent future changes to the enumeration value

@Charltsing
Copy link

https://learn.microsoft.com/en-us/windows-hardware/drivers/ddi/ntddstor/ne-ntddstor-storage_bus_type 你数一下,这玩意正好是第17个
https://learn.microsoft.com/zh-cn/windows/win32/api/VdsLun/ne-vdslun-vds_storage_bus_type

Yes, so I'm wondering if the original code was written to prevent future changes to the enumeration value

微软的定义你可以放心,不会改的

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

No branches or pull requests

2 participants