다음을 통해 공유


BP_LowLevelFormat (Windows CE 5.0)

Send Feedback

This function erases, verifies and writes logical sectors in a specified range. This function should be called when preparing flash memory for a download of multiple .bin files.

BOOL BP_LowLevelFormat(DWORD dwStartBlock,DWORD dwNumBlocks,DWORD dwFlags);

Parameters

  • dwStartBlock
    [in] Starting physical block to format.
  • dwNumBlocks
    [in] Number of physical blocks to format
  • dwFlags
    [in] Format settings. The following table shows the possible values for dwFlags.
    Value Description
    FORMAT_SKIP_BLOCK_CHECK Skips a read/write verification to check for bad blocks. This is recommended for NOR flash.
    FORMAT_SKIP_RESERVED Reserved blocks are not erased.

Return Values

Returns TRUE on success. Returns FALSE on failure.

Remarks

The logical sector zero is assigned to the first sector in the first good block starting from dwStartBlock and an MBR is written to logical sector zero. The function will erase dwNumBlocks number of blocks, skipping bad blocks in all cases and reserved blocks if specified in dwFlags. Bad blocks and reserved blocks count against the dwNumBlocks specified value.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Bootpart.h
Link Library: Bootpart.lib

See Also

BinFS and the Bootpart Library | Flash Media Drivers

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.