Ok, it works. Thanks a lot. Where can i get a documentation about the
Coredll.dll?
For those who need it in VB.net (like me):
Option Strict On
Option Explicit On
Imports System.Runtime.InteropServices
Module SpezialFunktionen
#Region " GetFreeSpace "
<DllImport("coredll.dll")> Private Function GetDiskFreeSpaceEx( _
ByVal directoryName As String, _
ByRef freeBytesAvailable As Long, _
ByRef totalBytes As Long, _
ByRef totalFreeBytes As Long) As Boolean
End Function
Public Function GetFreeDiskSpace(ByVal directoryName As String) As Long
Dim FreeBytesAvailable As Long
Dim TotalBytes As Long
Dim TotalFreeBytes As Long
If GetDiskFreeSpaceEx(directoryName, FreeBytesAvailable, TotalBytes,
TotalFreeBytes) Then
Return FreeBytesAvailable
Else
Return Nothing
End If
End Function
#End Region
End Module
best regards Benjamin Wagner
:
Ok, thanks a lot. Try this out.
best regards Benjamin
:
Ok, whats the Login and the Password for this Page, or did you have another
Page?
best regards Benjamin
:
.... forgot this:
u/p: guest/guest
--
Sergey Bogdanov [.NET CF MVP, MCSD]
http://www.sergeybogdanov.com
DocDeath wrote:
Hi,
i want to know the free DiskSpace of my StorageCard. But the CF does not
have the routines. Any Workaround with the normal CF? (without OpenNetCF)
Thanks a lot Benjamin Wagner