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

Is there any plan to support NVME? #8

Open
Polarbear1026 opened this issue Jun 7, 2023 · 4 comments
Open

Is there any plan to support NVME? #8

Polarbear1026 opened this issue Jun 7, 2023 · 4 comments

Comments

@Polarbear1026
Copy link

Is there any plan or update to support NVME or other types HDD?

@krugertech
Copy link
Owner

I have no immediate plans to include NVME support. You are welcome to add in support and submit a PR.

There is an answer on SO that may be of use to you, but you would need to verify it is indeed working and port the code over to C#.
https://stackoverflow.com/questions/69479818/nvme-s-m-a-r-t-data-retrieval

And here is the Microsoft API for working with NVME drives.
https://learn.microsoft.com/en-us/windows/win32/fileio/working-with-nvme-devices

@Charltsing
Copy link

https://github.com/hiyohiyo/CrystalDiskInfo

Support for nvme is a tedious work

@krugertech
Copy link
Owner

Update

So to recap, Microsoft has provided source code here in C++ to read NVME SMART data. This code can be ported to C# and requires unsafe code blocks and making calls to these Win32 APIs.

Here is C# port of the Microsoft NVME SMART code by bor888. (no license specified, need to reach out to the author to inquire)
Here is a C# project monitoring solution for NVME drives and uses an MIT compatible BSD3 licensed.

@Charltsing
Copy link

https://github.com/MicaApps/DiskInfo
https://github.com/hiyohiyo/CrystalDiskInfo

You can refer to these two projects and convert C++to C#

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

No branches or pull requests

3 participants