standardize the DEV_* structs, or provide a device hook function to get OS handle