Share via


FMD_GetBlockStatus

This function returns the status of a block.

DWORD FMD_GetBlockStatus(
  BLOCK_ID blockID
);

Parameters

  • blockID
    [in] The block number used to check status.

Return Values

The following table shows the flags that can be returned to describe the status of the block.

Flag Description
BLOCK_STATUS_UNKNOWN The status could not be determined as a result of a read error.
BLOCK_STATUS_BAD The block is bad.
BLOCK_STATUS_READONLY The block is read-only.
BLOCK_STATUS_RESERVED The block is reserved.

Remarks

It is the responsibility of the caller of the flash media driver (FMD) to check and interpret the block status. If the FMD is used with the FAL, then a read-only block will be mapped to a logical sector but will not allow write access. A reserved block will not be mapped to a logical sector and therefore will not be used by the FAL. A bad block will be ignored.

Requirements

OS Versions: Windows CE .NET 4.2 and later.
Header: Fmd.h.
Link Library: Developer implemented.

See Also

Flash Media Driver

 Last updated on Tuesday, May 18, 2004

© 1992-2003 Microsoft Corporation. All rights reserved.