Expand Minimize

GopherGetLocatorType function

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

Parses a Gopher locator and determines its attributes.

Syntax


BOOL GopherGetLocatorType(
  _In_   LPCTSTR lpszLocator,
  _Out_  LPDWORD lpdwGopherType
);

Parameters

lpszLocator [in]

Pointer to a null-terminated string that specifies the Gopher locator to be parsed.

lpdwGopherType [out]

Pointer to a variable that receives the type of the locator. The type is a bitmask that consists of a combination of the gopher type values.

Return value

Returns TRUE if successful, or FALSE otherwise. To get extended error information, call GetLastError.

Remarks

GopherGetLocatorType returns information about the item referenced by a Gopher locator. Note that it is possible for multiple attributes to be set on a file. For example, both GOPHER_TYPE_TEXT_FILE and GOPHER_TYPE_GOPHER_PLUS are set for a text file stored on a Gopher+ server.

Like all other aspects of the WinINet API, this function cannot be safely called from within DllMain or the constructors and destructors of global objects.

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).

Requirements

Minimum supported client

Windows 2000 Professional

Minimum supported server

Windows 2000 Server

End of client support

Windows XP

End of server support

Windows Server 2003 R2

Header

Wininet.h

Library

Wininet.lib

DLL

Wininet.dll

Unicode and ANSI names

GopherGetLocatorTypeW (Unicode) and GopherGetLocatorTypeA (ANSI)

See also

WinINet Functions

 

 

Show:
© 2014 Microsoft