次の方法で共有


OEMBootCreateDriver Function (Compact 2013)

3/26/2014

OEMBootCreateDriver creates a boot driver and returns a handle to it.

This function is implemented in:

%_WINCEROOT%\Platform\<BSP Name>\Src\Boot\Bldr\Drivers.c

Its syntax is:

handle_t OEMBootCreateDriver (
   void *pContext,
   enum_t classId,
   enum_t index 
);

OEMBootCreateDriver Function Input Parameters

Parameter

Type

Description

pContext

void *

A pointer to the BootLoader_t structure of the boot loader.

classId

enum_t

The driver class. In the sample CE Boot implementation in Windows Embedded Compact 2013, the driver class possibilities are: BOOT_DRIVER_CLASS_TERMINAL, BOOT_DRIVER_CLASS_TRANSPORT, BOOT_DRIVER_CLASS_DOWNLOAD, BOOT_DRIVER_CLASS_DISPLAY, BOOT_DRIVER_CLASS_BLOCK, and BOOT_DRIVER_CLASS_FILESYSTEM.

For more information about these driver classes, see Boot Driver Examples.

index

enum_t

The instance of this boot driver type. You can use this value for reference counting. In the sample CE Boot implementation in Compact 2013, this value must be 0 (zero).

The return value is a handle to the driver instance.

See Also

Concepts

Boot Driver Factory Code