def CTL_CODE(DeviceType, Function, Method, Access):
	"""Calculate a DeviceIoControl code just like in the driver's C code"""
	return (((DeviceType) << 16) | ((Access) << 14) | ((Function) << 2) | (Method))