EnumProps

  int EnumProps(hwnd, lpEnumFunc)    
  HWND hwnd; /* handle of window */
  PROPENUMPROC lpEnumFunc; /* address of callback function */

This function enumerates all entries in the property list of the specified window. It enumerates the entries by passing them, one by one, to the callback function specified by lpEnumFunc. EnumProps continues until the last entry is enumerated or the callback function returns zero.

Parameters

hwnd

Identifies the window whose property list is to be enumerated.

lpEnumFunc

Specifies the procedure-instance address of the callback function. more information, see the description of the EnumPropProc callback function.

Return Value

The return value specifies the last value returned by the callback function. It is -1 if the function did not find a property for enumeration.

Comments

An application can remove only those properties which it has added. It should not remove properties added by other applications or by Windows itself.

The following restrictions apply to the callback function:

1.The callback function must not yield control or do anything that might yield control to other tasks.

2.The callback function can call the RemoveProp function. However, the RemoveProp function can remove only the property passed to the callback function through the callback function's parameters.

3.A callback function should not attempt to add properties.

See Also

RemoveProp, SetProp, GetProp