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

# WintrustAddDefaultForUsage(3w)

## NAME

**WintrustAddDefaultForUsage** (WINTRUST.@)

## SYNOPSIS

BOOL WintrustAddDefaultForUsage\
  (\
   const char\*                 *pszUsageOID*,\
   CRYPT\_PROVIDER\_REGDEFUSAGE\* *psDefUsage*\
  )

## DESCRIPTION

Write **OID** and callback functions to the registry.

## PARAMS

*pszUsageOID* **\[In\]**  Pointer to a **GUID**.

*psDefUsage* **\[In\]**  Pointer to a structure that specifies the callback functions.

## RETURNS

**Success:** **TRUE**.

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

## NOTES

WintrustAddDefaultForUsage will only return **TRUE** or **FALSE**, no last error is set, not even when the registry cannot be written to.

## IMPLEMENTATION

Declared in **"wintrust.h"**.

Implemented in **"dlls/wintrust/register.c"**.

Debug channel **"wintrust"**.
