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

# SHRegisterValidateTemplate(3w)

## NAME

**SHRegisterValidateTemplate** (SHLWAPI.@)

## SYNOPSIS

HRESULT SHRegisterValidateTemplate\
  (\
   LPCWSTR *filename*,\
   BOOL    *unknown*\
  )

## DESCRIPTION

observed from the ie **5.5** installer:

**-** allocates a buffer with the size of the given file

**-** read the file content into the buffer

**-** creates the key szTemplateKey

**-** sets **"205523652929647911071668590831910975402"**=dword:00002e37 at the key.

## PARAMS

*filename* **\[In\]**  An existing file its content is read into an allocated buffer.

*unknown* **\[In\]**  **.**

## RETURNS

**Success:** **ERROR\_SUCCESS**.

## IMPLEMENTATION

Not declared in a Wine header. The function is either undocumented, or missing from Wine.

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

Debug channel **"shell"**.
