GopherGetLocatorTypeA function (wininet.h)
[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 GopherGetLocatorTypeA(
[in] LPCSTR lpszLocator,
[out] LPDWORD lpdwGopherType
);
Parameters
[in] lpszLocator
Pointer to a null-terminated string that specifies the Gopher locator to be parsed.
[out] lpdwGopherType
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
The wininet.h header defines GopherGetLocatorType as an alias which automatically selects the ANSI or Unicode version of this function based on the definition of the UNICODE preprocessor constant. Mixing usage of the encoding-neutral alias with code that not encoding-neutral can lead to mismatches that result in compilation or runtime errors. For more information, see Conventions for Function Prototypes.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 2000 Professional [desktop apps only] |
Minimum supported server | Windows 2000 Server [desktop apps only] |
Target Platform | Windows |
Header | wininet.h |
Library | Wininet.lib |
DLL | Wininet.dll |