Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Description
Function called to execute an intercepted MMIO read for the emulated device.
Syntax
typedef HRESULT (CALLBACK *HDV_PCI_READ_INTERCEPTED_MEMORY)(
_In_opt_ void* DeviceContext,
_In_ HDV_PCI_BAR_SELECTOR BarIndex,
_In_ UINT64 Offset,
_In_ UINT64 Length,
_Out_writes_(Length) BYTE* Value
);
Parameters
| Parameter | Description |
|---|---|
DeviceContext |
Context pointer that was supplied to HdvCreateDeviceInstance. |
BarIndex |
Index to the BAR the read operation pertains to. |
Offset |
Offset in bytes from the base of the BAR to read. |
Length |
Length in bytes to read (1 / 2 / 4 / 8 bytes). |
Value |
Receives the read value. |
Return Values
| Return Value | Description |
|---|---|
S_OK |
Returned if function succeeds. |
HRESULT |
An error code is returned if the function fails. |
Requirements
| Parameter | Description |
|---|---|
| Minimum supported client | Windows 10, version 1607 |
| Minimum supported server | Windows Server 2016 |
| Target Platform | Windows |
| Library | ComputeCore.lib |
| Dll | ComputeCore.dll |