Click here to Skip to main content
15,906,467 members
Home / Discussions / C#
   

C#

 
AnswerRe: question about a method program Pin
Richard MacCutchan23-May-20 2:00
mveRichard MacCutchan23-May-20 2:00 
AnswerRe: question about a method program Pin
OriginalGriff23-May-20 2:01
mveOriginalGriff23-May-20 2:01 
GeneralRe: question about a method program Pin
Luc Pattyn23-May-20 5:00
sitebuilderLuc Pattyn23-May-20 5:00 
GeneralRe: question about a method program Pin
OriginalGriff23-May-20 5:26
mveOriginalGriff23-May-20 5:26 
GeneralRe: question about a method program Pin
Richard MacCutchan23-May-20 5:52
mveRichard MacCutchan23-May-20 5:52 
GeneralRe: question about a method program Pin
OriginalGriff23-May-20 5:54
mveOriginalGriff23-May-20 5:54 
GeneralRe: question about a method program Pin
Richard MacCutchan23-May-20 6:08
mveRichard MacCutchan23-May-20 6:08 
GeneralRe: question about a method program Pin
OriginalGriff23-May-20 6:11
mveOriginalGriff23-May-20 6:11 
GeneralRe: question about a method program Pin
kalberts23-May-20 6:50
kalberts23-May-20 6:50 
GeneralRe: question about a method program Pin
OriginalGriff23-May-20 9:14
mveOriginalGriff23-May-20 9:14 
GeneralRe: question about a method program Pin
kalberts23-May-20 11:53
kalberts23-May-20 11:53 
GeneralRe: question about a method program Pin
Richard MacCutchan23-May-20 22:04
mveRichard MacCutchan23-May-20 22:04 
GeneralRe: question about a method program Pin
OriginalGriff23-May-20 22:22
mveOriginalGriff23-May-20 22:22 
GeneralRe: question about a method program Pin
Peter_in_278023-May-20 22:32
professionalPeter_in_278023-May-20 22:32 
GeneralRe: question about a method program Pin
Richard MacCutchan23-May-20 22:57
mveRichard MacCutchan23-May-20 22:57 
GeneralRe: question about a method program Pin
F-ES Sitecore24-May-20 6:48
professionalF-ES Sitecore24-May-20 6:48 
GeneralRe: question about a method program Pin
Richard MacCutchan24-May-20 6:57
mveRichard MacCutchan24-May-20 6:57 
GeneralRe: question about a method program Pin
F-ES Sitecore24-May-20 7:34
professionalF-ES Sitecore24-May-20 7:34 
GeneralRe: question about a method program Pin
kalberts24-May-20 7:40
kalberts24-May-20 7:40 
GeneralRe: question about a method program Pin
F-ES Sitecore24-May-20 8:09
professionalF-ES Sitecore24-May-20 8:09 
GeneralRe: question about a method program Pin
Joanna Moses13-Jun-20 5:41
Joanna Moses13-Jun-20 5:41 
QuestionHow to know if a disk is magnetic or flash Pin
kalberts22-May-20 13:43
kalberts22-May-20 13:43 
Win 10, C#:

wmic calls give me the "drive type" as a small integer, a System.IO.drivetype value, running from 0 to 6. All standard disks are drive type 3, "Fixed" (or possibly type 4, "Network").

Is there any general way to distinguish between flash and magnetic "Fixed" disks? I know that I could check the manfacturer's id against a huge table identifying all the disks of all manufacturers ... There obviously is a simpler, more general way: Windows handles flash disks differently from magnetic disks. So how does Windows distinguish - and how can I do the same?

Yes, I could try to do some accesses and decide based on timing. I do not consider that a clean solution. There must be a better one, but which?
AnswerRe: How to know if a disk is magnetic or flash Pin
OriginalGriff22-May-20 20:46
mveOriginalGriff22-May-20 20:46 
GeneralRe: How to know if a disk is magnetic or flash Pin
kalberts23-May-20 6:45
kalberts23-May-20 6:45 
GeneralRe: How to know if a disk is magnetic or flash Pin
OriginalGriff23-May-20 9:14
mveOriginalGriff23-May-20 9:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.