Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
A version of this page is also available for
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 CompareStringfunction 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