How to use ScanVolumeEx in C#

L

luthfi

Hi,

I've been trying to use ScanVolumeEx API in C# with no luck, is there any
sample on how to use this API (preferably in C#)?

Thanks,

Luthfi
 
L

luthfi

Never mind, it turns out that MSDN documentation on SCAN_PARAMS struct was
missing one field.
 
L

Lcubed

Since some one else is likely to have this issue as well, please tell
us what the SCAN_PARAMS struct should be.
 
L

luthfi

The struct should have an additional IntPtr field, this is the one I'm
currently using:
[StructLayout(LayoutKind.Sequential)]
internal struct SCAN_PARAMS
{
public int cbSize;
public SCAN_OPTIONS so;
public SCAN_RESULTS sr;
public IntPtr pfnProgress;
public IntPtr pfnMessage;
public IntPtr hevCancel;
}

I've post a feedback on the MSDN documentation but the last time I checked
it still was not corrected yet.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top