Thread View: borland.public.cppbuilder.nativeapi
5 messages
5 total messages
Started by RaynorPao
Tue, 15 Apr 2003 01:52
Harddisk
Author: RaynorPao
Date: Tue, 15 Apr 2003 01:52
Date: Tue, 15 Apr 2003 01:52
7 lines
1008 bytes
1008 bytes
Hi all: How can I know my harddisk is busy or not? Is there any API can do this? Thanks. RaynorPao.
Re: Harddisk
Author: Remy Lebeau (TeamB)
Date: Tue, 15 Apr 2003 04:08
Date: Tue, 15 Apr 2003 04:08
12 lines
1318 bytes
1318 bytes
"RaynorPao" <RaynorPao.nospam@nospam.pchome.com.tw> wrote in message news:3e9b6213$1@newsgroups.borland.com... > How can I know my harddisk is busy > or not? Is there any API can do this? There is no API for that. Why would you need one, though? That is a very unusual task to perform on your part. Gambit
Re: Harddisk
Author: Michael F. S. Christensen
Date: Tue, 15 Apr 2003 15:26
Date: Tue, 15 Apr 2003 15:26
21 lines
1738 bytes
1738 bytes
Hi. Well... I for one, could imagine an application capable of showing a virtual harddisk - in full blown DirectX or OpelGL 3D : 3D model: where is the head right now, lastest writes shown with red tracks, latest writes with green... Ability to zoom and rotate disk and getting realtime updates. - That would be awsome, nerdy and pretty coll wouldn't it? Graphing: busy time in % during the year, month, day, hour, minute... Tray icon: Blink like LED on cabinet Best regards Michael F. S. Christensen > There is no API for that. Why would you need one, though? That is a very > unusual task to perform on your part. > > Gambit
Re: Harddisk
Author: Andrue Cope
Date: Tue, 15 Apr 2003 15:47
Date: Tue, 15 Apr 2003 15:47
23 lines
2046 bytes
2046 bytes
Michael F. S. Christensen, > 3D model: where is the head right now, lastest writes shown with red tracks, > latest writes with green... Ability to zoom and rotate disk and getting > realtime updates. - That would be awsome, nerdy and pretty coll wouldn't it? > Tricky to get it accurate though. You can't easily equate physical sector number to cylinder/head/sector on modern drives. Just because a given PSN mathematically equates to a given C:H:S doesn't mean that that's actually where the drive is reading it from. Modern drives have fewer sectors on the inner tracks than on the outer which you could probably account for but then you have the issue of spare sectors. To account for them (and most drives still start off with a few) you'd have to read the relevant table from the engineer section. Not easy and of course the format is not standardised. But if anyone does write such a tool let me know - it would indeed by cool :) Andrue Cope [Bicester, UK]
Re: Harddisk
Author: MWP
Date: Tue, 15 Apr 2003 17:47
Date: Tue, 15 Apr 2003 17:47
30 lines
2301 bytes
2301 bytes
Well i can give you a hit as to getting HDD time usage. Under WinXP (not sure about 2K) there are logical and physical disk performance counters (run "perfmon"). With a bit of work, % of time usage can be obtained using perfmon APIs. Andrue Cope <not.a.valid@email.address.sorry> wrote: >Michael F. S. Christensen, > >> 3D model: where is the head right now, lastest writes shown with red tracks, >> latest writes with green... Ability to zoom and rotate disk and getting >> realtime updates. - That would be awsome, nerdy and pretty coll wouldn't it? >> > >Tricky to get it accurate though. > >You can't easily equate physical sector number to cylinder/head/sector on >modern drives. Just because a given PSN mathematically equates to a given >C:H:S doesn't mean that that's actually where the drive is reading it from. > >Modern drives have fewer sectors on the inner tracks than on the outer which >you could probably account for but then you have the issue of spare sectors. >To account for them (and most drives still start off with a few) you'd have to >read the relevant table from the engineer section. Not easy and of course the >format is not standardised. > >But if anyone does write such a tool let me know - it would indeed by cool :) > >Andrue Cope >[Bicester, UK] >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads