GetDiskFreeSpaceEx API call

G

Guest

Hi all

I want to use the GetDiskFreeSpaceEx API call in my VB.NET code
I use the declaration as follows

<DllImport("coredll.dll")>
Public Shared Function GetDiskFreeSpaceEx(ByVal directory As String,
ByRef lpFreeBytesAvailableToCaller As UInt64,
ByRef lpTotalNumberOfBytes As UInt64,
ByRef lpTotalNumberOfFreeBytes As UInt64) As Lon
End Functio

But when I make a call to this function, it throws a unsupported exception
Plesae help

Thanking you
 

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