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

# RegisterExtensionForMIMETypeA(3w)

## NAME

**RegisterExtensionForMIMETypeA** (SHLWAPI.324)

## SYNOPSIS

BOOL RegisterExtensionForMIMETypeA\
  (\
   LPCSTR *lpszExt*,\
   LPCSTR *lpszType*\
  )

## DESCRIPTION

Set the file extension for a **MIME** content key.

## PARAMS

*lpszExt* **\[In\]**  File extension to set.

*lpszType* **\[In\]**  Content type to set the extension for.

## RETURNS

**Success:** **TRUE**. The file extension is set in the registry.

**Failure:** **FALSE**.

## IMPLEMENTATION

Exported by ordinal only. Use **[GetProcAddress(3w)](/GetProcAddress/3w.md)** to obtain a pointer to the function.

Implemented in **"dlls/shlwapi/reg.c"**.

Debug channel **"shell"**.
