PURPOSE
Convenience function for allocating and initializing a PCMCIA Plug
and Play and power management event structure.
PROTOTYPE
WD_EVENT * DLLCALLCONV PcmciaEventCreate( WD_PCMCIA_ID deviceId, WD_PCMCIA_SLOT pcmciaSlot, DWORD dwOptions, DWORD dwAction);
PARAMETERS
| Name | Type | Input/Output |
|---|---|---|
| WD_PCMCIA_ID | ||
| WORD | Input | |
| WORD | Input | |
| WD_PCMCIA_SLOT | ||
| BYTE | Input | |
| BYTE | Input | |
| BYTE | Input | |
| BYTE | N/A | |
| DWORD | Input | |
| DWORD | Input |
DESCRIPTION
| Name | Description |
|---|---|
| deviceId | PCMCIA card ID information structure: |
| PCMCIA Manufacturer ID to register to. If zero, register to all PCMCIA manufacturer IDs. | |
| PCMCIA card ID to register to. If zero, register to all PCMCIA card IDs. | |
| slot | PCMCIA slot information structure: |
| PCMCIA bus number to register to. If zero, register to all PCMCIA buses. | |
| PCMCIA socket to register to. If zero, register to all sockets. | |
| PCMCIA function to register to. If zero, register to all functions. | |
| dwOptions | Can be either zero or: |
| dwAction | A bit-mask indicating which events to register to:
Plug and Play events: Device power state: Systems power state: |
RETURN VALUE
Returns a new events structure for handling PCMCIA Plug and Plug and power management events, or NULL if the allocation failed.
REMARKS
EXAMPLE
PciEventCreate(deviceId, pcmciaSlot, WD_ACKNOWLEDGE, WD_INSERT | WD_REMOVE);