Click here to Skip to main content
12,065,888 members (39,145 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C++ C#
I want to detect SSD drive and my program must first confirm detected drive is physical HDD or SSD.

I am trying with WMI in C#.

Please let me know if you have any idea.

Thanks in advance,

Neal.
Posted 11-Mar-11 2:23am
neal123805
Comments
Albert Holguin 11-Mar-11 10:11am
   
I've had to work on a system that used HDDs and SSDs interchangeably and I can tell you this much... Windows doesn't know the difference! ...so any way you do it, its going to be based on a made up system you or someone else derives and will without a doubt lack consistency across drive manufacturers. Good luck!
neal123 11-Mar-11 14:39pm
   
Yes, albert you are right at this point that windows doesn't know the difference between. So, I also came on same conclusion and as per WMI classes its returning ItnerfaceType property for disk drives. And I found different types of InterfaceType of SSD drives for different manufactureres.
Please check below link and interfaceType of every SSD drives.
http://ssd.allonthis.com/tag/interface-type/
I have also found MediaType but for both still I am not confident so, need more advice from experts.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 4

My personal favorite: "Search for code that reports drive rotation speed. SSD should have 0rpm."
  Permalink  
Comments
Harrison H 11-Mar-11 18:03pm
   
Hahaha. Awesome!
SAKryukov 11-Mar-11 21:28pm
   
Wow! I like this one!
--SA
Björn Ranft 5-Mar-12 18:11pm
   
haha nice trick!5!
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
neal123 11-Mar-11 7:40am
   
Sorry, No solution in that...
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 5

The best i found in other threads about WMI is looking for the name-model in win32_diskdrive and check if the model has "SSD" anywhere in the name.
Another way is to check the winsat-score of the disk using the win32_winsat-class.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Hope this[^] might help you.
  Permalink  
Comments
neal123 11-Mar-11 7:39am
   
Sorry, No solution in that...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web04 | 2.8.160207.1 | Last Updated 17 Mar 2014
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100