Krugertech.IO.Smart icon indicating copy to clipboard operation
Krugertech.IO.Smart copied to clipboard

Is there any plan to support NVME?

Open Polarbear1026 opened this issue 1 year ago • 4 comments

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

Polarbear1026 avatar Jun 07 '23 08:06 Polarbear1026

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

krugertech avatar Jun 07 '23 11:06 krugertech

https://github.com/hiyohiyo/CrystalDiskInfo

Support for nvme is a tedious work

Charltsing avatar Oct 17 '23 05:10 Charltsing

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.

krugertech avatar Jun 26 '24 18:06 krugertech

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

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

Charltsing avatar Jun 27 '24 07:06 Charltsing