Skip to main content

IOCTL DISK SAVE SMI

This IOCTL creates a 'restore' point for faster boot-up for Colibri PXA3xx modules. For more information about this feature, please have a look at FastLoad (Colibri).

This IOCTL will be blocked until the 'restore' point is created or an error occurs.

Define


#define IOCTL_DISK_SAVE_SMI CTL_CODE(FILE_DEVICE_DISK, 2029, METHOD_BUFFERED, FILE_ANY_ACCESS)

Sample Code


void SaveFlashDiskFastLoad()
{
HANDLE hStore;
DWORD ret;

hStore = OpenStore(TEXT("DSK0:")); // DSK0: is FlashDisk
// OpenStore() is not compatible between CE5 and CE6
if(hStore != INVALID_HANDLE_VALUE)
{
DeviceIoControl(hStore, IOCTL_DISK_SAVE_SMI, NULL, 0, NULL, 0, NULL, NULL);
CloseHandle(hStore);
}
}



Send Feedback!