REG_COMPARISONTYPE (Compact 2013)

3/28/2014

This enumeration defines how state property values should be compared to target values for conditional change notifications.

Syntax

typedef enum tagREG_COMPARISONTYPE { 
   REG_CT_ANYCHANGE,
   REG_CT_EQUAL,
   REG_CT_NOT_EQUAL,
   REG_CT_GREATER,
   REG_CT_GREATER_OR_EQUAL,
   REG_CT_LESS,
   REG_CT_LESS_OR_EQUAL,
   REG_CT_CONTAINS,
   REG_CT_STARTS_WITH,
   REG_CT_ENDS_WITH
} REG_COMPARISONTYPE;

Elements

  • REG_CT_ANYCHANGE
    Notify on any change.
  • REG_CT_EQUAL
    Registry values are equal.
  • REG_CT_NOT_EQUAL
    Registry values are not equal.
  • REG_CT_GREATER
    Registry value is greater than the target value.
  • REG_CT_GREATER_OR_EQUAL
    Registry value is greater than or equal to the target value.
  • REG_CT_LESS
    Registry value is less than the target value.
  • REG_CT_LESS_OR_EQUAL
    Registry value is less than or equal to the target value.
  • REG_CT_CONTAINS
    State property value contains the target value string.
  • REG_CT_STARTS_WITH
    State property value starts with the target value string.
  • REG_CT_ENDS_WITH
    State property value ends with the target value string.

Remarks

Certain enumeration values are valid only for certain data types. The following table shows which enumeration values are valid for each registry value type.

Enumeration value

REG_SZ

REG_DWORD

REG_CT_ANYCHANGE

Yes

Yes

REG_CT_EQUAL

Yes*

Yes

REG_CT_NOT_EQUAL        

Yes*

Yes

REG_CT_GREATER          

Yes*

Yes

REG_CT_GREATER_OR_EQUAL

Yes*

Yes

REG_CT_LESS             

Yes*

Yes

REG_CT_LESS_OR_EQUAL    

Yes*

Yes

REG_CT_CONTAINS         

Yes

No

REG_CT_STARTS_WITH      

Yes

No

REG_CT_ENDS_WITH        

Yes*

No

* These comparisons are made according to the strcmp function.

Requirements

Header

regext.h

See Also

Reference

State and Notifications Broker Enumerations
State and Notifications Broker Reference
NOTIFICATIONCONDITION
RegistryNotifyApp
RegistryNotifyWindow
RegistryNotifyWindow