Re: Formatting partitions using Storage Manager control panel

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



First, you must have a utility DLL for your FSD that provides APIs for
formatting (and optionally scanning and defragging) the partition (see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wcedata5/html/wce50grffatutilitylibraryfunctions.asp).
In particular you'll need to provide FormatVolumeUI.

Also, you are going to have to modify the storage manager control panel
applet (clone it first, of course). You need to modify the file originally
at \WINCE500\PUBLIC\WCESHELLFE\OAK\CTLPNL\STGUI\partinfodlg.cpp). Inside
the LoadUtilityLibrary function, there is a comment "// add other filesystem
dll -> utility dll mappings here". Using the code just above that for
FATFSD.DLL -> FATUTIL.DLL, add your own FSD to utility library mapping.

Oh, and finally, make sure the partition isn't mounted; you can't format a
mounted partition.

Tom Gensel (eMVP)



"MichaelT" <MichaelT@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:79F2065A-D00E-42CB-8D7E-5D2000B45F6C@xxxxxxxxxxxxxxxx
> Hello,
>
> We have developed an FSD driver under CE 5 for a flash filesystem. We
> have
> a custom partition driver that allows us to split up the flash into
> partitions (duh) and format the partitions. But we can't format the
> partitions because the "format" button in the partition management section
> of
> the Storage Manager Control Panel is greyed out. What do we have to do to
> get it to recognize that it can call FormatPartition() on the partition?
> The
> create/delete don't matter, since we have the partition information fixed
> in
> the registry.
>
> It already allows a user to click on "format" for the Store, but we dont
> want to do that, just allow users to format partitions.
>
> Mount and Unmount are working fine.
>
> Any ideas? Thanks,
> mike


.


Quantcast