Win32 API & Disk Management  
Author Message
Vitalijus





PostPosted: Visual C# General, Win32 API & Disk Management Top

For Educational purposes I really want to learn how to access hard drive
I mean everysector in the drive and so on, how to move one sector to another one, how to create disk defragmentation software


Visual C#4  
 
 
ahmedilyas





PostPosted: Visual C# General, Win32 API & Disk Management Top

this would be low level stuff which .NET can't do/access. you would require C/C++/Assembly to do this to be honest.

I would guide you to the correct forum but can't seem to locate a C++ forum here in the Microsoft public communities site.



 
 
Vitalijus





PostPosted: Visual C# General, Win32 API & Disk Management Top

I know i can't do this in C#.
That's why i downloaded Platform SDK.


 
 
ahmedilyas





PostPosted: Visual C# General, Win32 API & Disk Management Top

well you have posted in the wrong forums. Which language are you developing with

 
 
RizwanSharp





PostPosted: Visual C# General, Win32 API & Disk Management Top

I know i can't do this in C#.
That's why i downloaded Platform SDK.

Hello,

First, as discussed this is not possible in .Net You have Windows SDK, try to locate functions which may help you in doing this and then you can call those functions from C# application. For intropability help you can use this website http://pinvoke.net I belive you'll find all the functions usage there. It has the usage of functions of all the common dlls in windows from managed application.

Best Regards,

Rizwan