Compartilhar via


REG_COMPARISONTYPE

A version of this page is also available for

Windows Embedded CE 6.0 R3

4/8/2010

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 done according to the Win32 API CompareString function using LOCALE_SYSTEM_DEFAULT and NORM_IGNORECASE.

Requirements

Header regext.h
Windows Embedded CE Windows Embedded CE 6.0 and later
Windows Mobile Windows Mobile Version 5.0 and later

See Also

Reference

State and Notifications Broker Reference
NOTIFICATIONCONDITION
RegistryNotifyApp
RegistryNotifyWindow
RegistryNotifyWindow

Other Resources

State and Notifications Broker