PURPOSE
Convenience function for allocating and initializing a PCI Plug and
Play and power management event structure.
PROTOTYPE
WD_EVENT * DLLCALLCONV PciEventCreate(
WD_PCI_ID cardId,
WD_PCI_SLOT pciSlot,
DWORD dwOptions,
DWORD dwAction);
PARAMETERS
| Name | Type | Input/Output |
|---|---|---|
| WD_PCI_ID | ||
| DWORD | Input | |
| DWORD | Input | |
| WD_PCI_SLOT | ||
| DWORD | Input | |
| DWORD | Input | |
| DWORD | Input | |
| DWORD | Input | |
| DWORD | Input |
DESCRIPTION
| Name | Description |
|---|---|
| cardId | PCI card information structure: |
| dwVendorId | PCI vendor ID to register to. If zero, register to all PCI vendor IDs. |
| dwDeviceId | PCI card ID to register to. If zero, register to all PCI device IDs. |
| pciSlot | PCI slot information: |
| dwBus | PCI bus number to register to. If zero, register to all PCI buses. |
| dwSlot | PCI slot to register to. If zero, register to all slots. |
| dwFunction | PCI 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 structure for handling PCI Plug and Plug and power management events, or NULL if the allocation failed.
REMARKS
EXAMPLE
EventUnregister(event_handle); PciEventCreate(cardId, pciSlot, WD_ACKNOWLEDGE, WD_INSERT | WD_REMOVE);