WDF_OBJECT_ATTRIBUTES_INIT(&timerAttributes); timerAttributes.ParentObject = device;
// Save hardware state // Disable interrupt amd wireless button driver
[SourceDisksNames] 1 = %DiskName%,,,""
[WirelessButton_Device.NT.Services] AddService=WirelessButton,0x00000002,WirelessButton_Service timerAttributes.ParentObject = device
// Create debounce timer (50ms) WDF_TIMER_CONFIG timerConfig; WDF_OBJECT_ATTRIBUTES timerAttributes; devContext = GetDeviceContext(device)
devContext = GetDeviceContext(device); devContext->Device = device; devContext->WirelessState = FALSE;
return STATUS_SUCCESS;