---
name: "GopherCreateLocatorA"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.4.1-4"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/GopherCreateLocatorA"
---

# GopherCreateLocatorA(3w)

## NAME

**GopherCreateLocatorA** (WININET.@)

## SYNOPSIS

BOOL GopherCreateLocatorA\
  (\
   LPCSTR        *lpszHost*,\
   INTERNET\_PORT *nServerPort*,\
   LPCSTR        *lpszDisplayString*,\
   LPCSTR        *lpszSelectorString*,\
   DWORD         *dwGopherType*,\
   LPSTR         *lpszLocator*,\
   LPDWORD       *lpdwBufferLength*\
  )

## DESCRIPTION

Create a Gopher locator string from its component parts.

## PARAMS

*lpszHost* **\[In\]**  host name.

*nServerPort* **\[In\]**  port in host byteorder or **INTERNET\_INVALID\_PORT\_NUMBER** for default.

*lpszDisplayString* **\[In\]**  document/directory to display (**NULL** **-** default directory).

*lpszSelectorString* **\[In\]**  selector string for server (**NULL** **-** none).

*dwGopherType* **\[In\]**  selector type (see GOPHER\_TYPE\_xxx).

*lpszLocator* **\[Out\]**  buffer for locator string.

*lpdwBufferLength* **\[In\]**  locator buffer length.

## RETURNS

**TRUE** on success **FALSE** on failure

## IMPLEMENTATION

Declared in **"wininet.h"**.

Implemented in **"dlls/wininet/gopher.c"**.

Debug channel **"wininet"**.
