How to use ScanVolumeEx in C#

  • Thread starter Thread starter luthfi
  • Start date Start date
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
 
Never mind, it turns out that MSDN documentation on SCAN_PARAMS struct was
missing one field.
 
Since some one else is likely to have this issue as well, please tell
us what the SCAN_PARAMS struct should be.
 
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.
 
Back
Top