GetDiskFreeSpaceEx()

  • Thread starter Thread starter Ed
  • Start date Start date
E

Ed

Hi,
I have tried using GetDiskFreeSpaceEx() to obtain the amount of free
space of a DVD RAM in C#. It returned an error and I used a
getlasterror showed that the error was "parameter is incorrect"

I have checked all 4 the parameters and found them to be correct.

Has someone faced similar problems.
Can someone tell me what is the meaning of the error - "parameter is
incorrect" and how it can be solved

Thanks
Ed
 
I have tried using GetDiskFreeSpaceEx() to obtain the amount of free
space of a DVD RAM in C#.

OK, so why did you crosspost to ms.pub.vb.general.discussion?

It returned an error and I used a
getlasterror showed that the error was "parameter is incorrect"

Use Marshal.GetLastWin32Error instead of GetLastError

Can someone tell me what is the meaning of the error - "parameter is
incorrect" and how it can be solved

Not unless you post your code.



Mattias
 
Back
Top