handling "FMIFS.dll" with pb ???

Everything else that doesn't fall into one of the other PB categories.
User avatar
bingo
Enthusiast
Enthusiast
Posts: 210
Joined: Fri Apr 02, 2004 12:21 pm
Location: germany/thueringen
Contact:

handling "FMIFS.dll" with pb ???

Post by bingo »

maybe a easy way to format any disk (usb-stick ...) ... :lol:

but how can handle this dll ?

The FormatEx function in FMIFS.DLL is prototyped like this:

VOID FormatEx( PWCHAR DriveRoot,
DWORD MediaFlag,
PWCHAR Format,
PWCHAR Label,
BOOL QuickFormat,
DWORD ClusterSize,
PFMIFSCALLBACK Callback );


The arguments are actually pretty self-explanatory. The callback function is used by FormatEx to communicate with its caller. The definition of PFMIFSCALLBACK is:

typedef BOOLEAN (__stdcall *PFMIFSCALLBACK)(
CALLBACKCOMMAND Command,
DWORD SubAction,
PVOID ActionInfo );


http://mvb.saic.com/freeware/vmslt99b/nt/fmifs.htm
["1:0>1"]
KarLKoX
Enthusiast
Enthusiast
Posts: 681
Joined: Mon Oct 06, 2003 7:13 pm
Location: France
Contact:

Post by KarLKoX »

Something like this ?

Code: Select all

Procedure.l Callback(Command.l, SubAction.l, *ActionInfo.l)

EndProcedure

Procedure PB_FormatEx(*DriverRoot.s, MediaFlag.l, *Format.s, *Label.s, QuickFormat.l, ClusterSize.l, *Callback.l)

Endprocedure
with *Callback.l = @Callback()
"Qui baise trop bouffe un poil." P. Desproges

http://karlkox.blogspot.com/
Post Reply