GopherAttributeEnumerator callback function

[The GopherAttributeEnumerator function is available for use in the operating systems specified in the Requirements section.]

Prototype for a callback function that processes attribute information from a Gopher server. This callback function is installed by a call to the GopherGetAttribute function.

The GOPHER_ATTRIBUTE_ENUMERATOR type defines a pointer to this callback function. GopherAttributeEnumerator is a placeholder for the application-defined function name.


BOOL GopherAttributeEnumerator(
   DWORD                   dwError



Pointer to a GOPHER_ATTRIBUTE_TYPE structure. The lpBuffer parameter of GopherGetAttribute is used for storing this structure. The lpBuffer size must be equal to or greater than the value of MIN_GOPHER_ATTRIBUTE_LENGTH.


Error value. This parameter is NO_ERROR if the attribute was parsed and written to the buffer successfully. If a problem was encountered, an error value is returned.

Return value

Return TRUE to continue the enumeration, or FALSE to stop it immediately. This function is primarily used for returning the results of a Gopher+ ASK item.


Note  WinINet does not support server implementations. In addition, it should not be used from a service. For server implementations or services use Microsoft Windows HTTP Services (WinHTTP).


Minimum supported client

Windows 2000 Professional [desktop apps only]

Minimum supported server

Windows 2000 Server [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003 R2



See also

WinINet Functions