Share via


IOCTL_FLASH_LOCK_PARTITIONS (Windows Embedded CE 6.0)

1/6/2010

This IOCTL locks one or more partitions, such that blocks can not be unlocked without a power reset. All other partitions on store will be unlocked. This IOCTL allows for regions that are not contiguous to be locked, but the flash part may not support this behavior.

Parameters

  • dwIoControlCode
    [in] Specifies this IOCTL.
  • lpInBuffer
    [in] Pointer to an array of PARTITION_ID structures. Each element of the array specifies a partition identifier to lock.
  • nInBufferSize
    [in] Size of the PARTITION_ID structure multiplied by the number of elements in the array.
  • lpOutBuffer
    Not used. Set to NULL.
  • nOutBufferSize
    Not used. Set to zero (0).
  • lpBytesReturned
    Not used. Set to NULL.

Return Values

Returns a nonzero value if successful. If this IOCTL fails, the return value is zero. To obtain extended error information, call GetLastError.

Requirements

Header FlashMdd.h
Windows Embedded CE Windows Embedded CE 6.0 R2

See Also

Reference

Flash Driver MDD IOCTLs