FSDMGR_WriteDisk

This function writes sectors to a disk.

At a Glance

Header file: Fsdmgr.h
Windows CE versions: 2.10 and later

Syntax

DWORD FSDMGR_WriteDisk ( HDSK hDsk, DWORD dwSector,
DWORD cSectors, PBYTE pBuffer, DWORD cbBuffer );

Parameters

hDsk

[in] Handle to the disk; this is the same value that was passed to FSD_MountDisk. This handle is not a true Win32 handle.

dwSector

[in] Specifies starting sector number.

cSectors

[in] Number of sectors to write.

pBuffer

[in] Pointer to the buffer that contains the data to write to the disk.

cbBuffer

[in] Size of the buffer, in bytes.

Return Values

ERROR_SUCCESS indicates success. A standard WinAPI error code indicates failure.

See Also

FSD_MountDisk