Conditional includes and device name length
Throw exception when trying to drop privileges on windows