The [Drivers\PCMCIA] key contains subkeys for known PC Cards. Each subkey is the card's Plug-and-Play ID. The values within a Plug and Play ID subkey define the values for a PC Card device with a matching Plug and Play identifier.
Required values for this subkey are described in the following table. Additional values can be stored for purposes specific to the device.
Value name | Value type | Description |
---|---|---|
Dll | REG_SZ | This value specifies the filename for the DLL that contains the installable device driver. The Device Manager will load the DLL. |
Prefix | REG_SZ | This value specifies the device driver's device filename prefix. It is a three character identifier, such as "COM". |
Index | REG_DWORD | This optional value specifies the device index (0 through 9) which the Device Manager should assign to the driver. If the Index value is not present, the Device Manager assigns the lowest index value available. This index will be associated with the device (for example, "PGR1:"). Only index values 0 through 9 are allowed. |
Context | REG_DWORD | This optional value specifies the device context. If the Context value is present (that is, if it was initialized by the device's setup application), the Device Manager passes it as the dwInfo parameter to RegisterDevice. If it is not present, a pointer to a string containing the registry path to the device's [Drivers\Active] key is passed as the parameter. The driver's initialization function can then open this key to read its information. To let the driver read the [Drivers\Active] key data, you should not initialize the Context value. |
Ioctl | REG_DWORD | This optional value specifies an I/O control code the Device Manager sends to an installable driver after loading it. If the Ioctl value is present, the Device Manager opens the loaded driver and calls its xxx_IOControl function, passing the I/O control code specified by the Ioctl value. The driver can do any necessary post-initialization in this context. For example, the driver could load modules that will use the device. In addition, the Device Manager broadcasts a WM_DEVICECHANGE message for the new device and it signals the application notification system via the CeEventHasOccurred function, passing it the NOTIFICATION_EVENT_DEVICE_CHANGE event. |
The following example shows the registry key for the Motorola NewsCard pager. When the Device Manager matches the pager's Plug-and-Play ID with the registry key, it loads Newscard.dll and registers a device for the NewsCard driver. Because the Index value is specified, the Device Manager registers the pager device as "PGR1:" device. If the Index value were not present, the Device Manager would select an appropriate device index (which would most likely be 1 anyway, unless some other device driver had already registered "PGR1:"). However, since an index is specified, only one PC Card of this type can be supported by this device driver because Device Manager cannot register this type of card under any other device name than "PGR1:".
HKEY_LOCAL_MACHINE
[Drivers]
[PCMCIA]
[Motorola,_Inc.-NewsCard_Data_Receiver-E6DD]
DWORD: Index = 0x1
SZ: Prefix = PGR
SZ: Dll = NEWSCARD.DLL