S
Schorschi
' VOID FormatEx(
' PWCHAR DriveRoot,
' DWORD MediaFlag,
' PWCHAR FSType,
' PWCHAR Label,
' BOOL QuickFormat,
' DWORD ClusterSize,
' PFMIFSCALLBACK CallBackFunc
' );
Anyone try calling this from VB .NET?
<DllImport("FMIFS.DLL", _
EntryPoint:="FormatEx", _
SetLastError:=True, _
CharSet:=CharSet.Unicode, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Private Shared Sub FormatEx _
(ByVal thePath As String, ByVal theFlag As Int32, ByVal
theType As String, ByVal theLabel As String, ByVal theQuickOrNot As
Byte, ByVal theSize As Integer, ByVal theCallBack As
FormatExCallBackDelegate)
'
End Sub
Does this seem right?
The call to FormatEx jumps and I get a call-back to my delegate
function, but I am getting really weird results. I can't seem to find
any docs on FormatEx beyond what is at sysinternals. But it does not
define all the FormatEx call-back commands?
' PWCHAR DriveRoot,
' DWORD MediaFlag,
' PWCHAR FSType,
' PWCHAR Label,
' BOOL QuickFormat,
' DWORD ClusterSize,
' PFMIFSCALLBACK CallBackFunc
' );
Anyone try calling this from VB .NET?
<DllImport("FMIFS.DLL", _
EntryPoint:="FormatEx", _
SetLastError:=True, _
CharSet:=CharSet.Unicode, _
ExactSpelling:=True, _
CallingConvention:=CallingConvention.StdCall)> _
Private Shared Sub FormatEx _
(ByVal thePath As String, ByVal theFlag As Int32, ByVal
theType As String, ByVal theLabel As String, ByVal theQuickOrNot As
Byte, ByVal theSize As Integer, ByVal theCallBack As
FormatExCallBackDelegate)
'
End Sub
Does this seem right?
The call to FormatEx jumps and I get a call-back to my delegate
function, but I am getting really weird results. I can't seem to find
any docs on FormatEx beyond what is at sysinternals. But it does not
define all the FormatEx call-back commands?