Define and use an OS enumeration type