I am receiving this error:
Error: no property `offsetof` for type `char*`
from this snippet:
import core.sys.windows.setupapi;
void main() {
SP_DEVICE_INTERFACE_DETAIL_DATA_A DeviceInterfaceDetail;
uint Offset = DeviceInterfaceDetail.DevicePath.offsetof;
}
You may try this at https://run.dlang.io/, build with LDC
, with argument: -mtriple=x86_64-windows-msvc
.