1.

Solve : Reading Hard Disk Info in VB?

Answer»

I want to read the drive specifications like make, model, etc. of the Hard Disk Drive using a Visual Basic program. PLEASE help.That seems like reinventing the wheel. What are you trying to accomplish?Quote

That seems like reinventing the wheel. What are you trying to accomplish?
I want to know the VB code to read the IDE header information from the hard disk drive. Which library to USE? What is the syntax of the call? What is return structure? If standard libraries do not support such a call, I want to know how to include an Assembler routine inside a VB program (I know the ASM code to read the IDE header, but I do not know how to add ASM code in VB).Try using the W32_DiskDrive WMI class. Check your COM objects, you may have to include a reference.

Quote
I know the ASM code to read the IDE header, but I do not know how to add ASM code in VB

Might be easier to assemble your ASM module and make the call from your VB program. The linker should make all this possible. It's easier to combine object modules than source modules.

8-)

Quote
Might be easier to assemble your ASM module and make the call from your VB program. The linker should make all this possible. It's easier to combine object modules than source modules.
I wish I understood what you just said... :-/I've tried getting HDD info (mainly free space) via. VB.

The techniques I found often produce unpredictable results (telling me I have less free space then I actually do!!!).

PS - I don't have a clue either.... ASM called via VB?hello!! even i want to obtain the hard disk serial number, controller REVISION number, hard disk model number, etc with the help of my program. i am writing the code in VC++. i USED the WMI classes in my code but they dont work for window9X. can u please send me a copy of the code which is in Assembly language. i will see if it can help me. my email id is [emailprotected] will u please mail me a copy of the assembly code? thank u..

Quote
Might be easier to assemble your ASM module and make the call from your VB program. The linker should make all this possible. It's easier to combine object modules than source modules.

Rob that ment

write a DLL in ASM , and then add said DLL to your VB Code and call it to get the answer.

I could also have meant Eat a Cheeze Sandwich, but i dont like Cheeze


Discussion

No Comment Found