Lesson8 Regime Programming


 * 1) define RGM_INVALID_DOMAIN         ((PRegime)0x0000)
 * 2) define RGM_SAME_DOMAIN            ((PRegime)0x0001)
 * 3) define RGM_DIFF_DOMAIN            ((PRegime)0x0002)
 * 4) define RGM_DEFAULT                ((PRegime)0x0003)
 * 5) define RGM_DIFF_MACHINE           ((PRegime)0x0004)
 * 6) define RGM_SAME_PROCESS           RGM_SAME_DOMAIN
 * 7) define RGM_DIFF_PROCESS           RGM_DIFF_DOMAIN


 * 1) define RGM_USER_2_KERN            ((PRegime)0x0100)
 * 2) define RGM_KERN_2_USER            ((PRegime)0x0200)

((dw == RGM_SAME_DOMAIN) || \	                                 (dw == RGM_DIFF_DOMAIN) || \	                                  (dw == RGM_DEFAULT) || \	                                  (dw == RGM_DIFF_MACHINE)))
 * 1) define RGM_MAX_NUMBER             ((PRegime)0xFFFF)
 * 2) define IS_INVALID_REGIME(dw)     ((dw == RGM_INVALID_DOMAIN))
 * 3) define IS_RGM_NUMBER(dw)          ((!IS_INVALID_REGIME(dw)) && \