Win32 API P-Invoke to bring a disk online, offline, and set unique ID?

I'm not sure exactly what Dispart does but I'd suggest looking at WMI which might have this kind of functionality. It's usually a good place to look when you need to do something less common in Windows There's the Storage WMI Classes which might have something useful: msdn.microsoft.com/en-us/library/ff56701... Edit: removed the suggestions about Volumes since I had missed that you're not interested in that.

I'm not sure exactly what Dispart does but I'd suggest looking at WMI which might have this kind of functionality. It's usually a good place to look when you need to do something less common in Windows. There's the Storage WMI Classes which might have something useful: msdn.microsoft.com/en-us/library/ff56701... Edit: removed the suggestions about Volumes since I had missed that you're not interested in that.

I did find win32_diskdrive but it doesn't have any useful methods for what I am trying to accomplish. – Andy Schneider May 25 '10 at 15:31.

If not, I would look into using WMI. In particular, take a look at the WMI WIN32_DiskDrive or WIN32_LogicalDisk classes.

It looks like CreateFile and DeviceOControl may be where I need to start. Any examples would be great. I'm no Win32 programmer :) – Andy Schneider May 26 '10 at 14:56 I can write something up, but it's going to take some time.

You can examples of using the API at pinvoke. Net/default. Aspx/kernel32.deviceiocontrol.

This article may also be of use: blogs.msdn. Com/b/jeffrey_wall/archive/2004/09/13/229137. Aspx – Garett May 26 '10 at 15:34.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions