mciLoadCommandResource

UINT APIENTRY
    mciLoadCommandResource(
        HANDLE
hInstance,
        LPCWSTR
lpResName,
        UINT
wType
        );

The mciLoadCommandResource function loads the specified resource and registers it as an MCI command table.

Parameters
hInstance
Specifies the driver module’s instance handle. This argument is ignored if the resource resides in an external file.
lpResName
Points to a string representing the name of the resource.
wType
Specifies the device type. Customized device-specific tables must specify a type of zero.
Return Value

If an error occurs, returns MCI_NO_COMMAND_TABLE. Otherwise, returns a command table index number.

Comments

The mciLoadCommandResource function first attempts to locate a file, using the lpResName argument as the filename, with an extension of .mci. If a file is found, the command table is loaded from the file. This file can also contain string resources.

If a file is not found, then lpResName is assumed to be the name of a resource that is linked to the driver.

For more information see Loading and Unloading a Command Table.