---
name: "IMAPIProp_GetLastError"
section: "3w"
platform: "linux"
package: "libwine-dev"
version: "1.0.1-3.1"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/IMAPIProp_GetLastError"
---

# IMAPIProp\_GetLastError(3w)

## NAME

**IMAPIProp\_GetLastError** (MAPI32.@)

## SYNOPSIS

static inline HRESULT IMAPIProp\_GetLastError\
  (\
   LPMAPIPROP   *iface*,\
   HRESULT      *hRes*,\
   ULONG        *ulFlags*,\
   LPMAPIERROR\* *lppError*\
  )

## DESCRIPTION

Get information about the last error that occurred in an **IMAPIProp** object.

## PARAMS

*iface* **\[In\]**  **IMAPIProp** object that experienced the error.

*hRes* **\[In\]**  Result of the call that returned an error.

*ulFlags* **\[In\]**  0=return Ascii strings, **MAPI\_UNICODE**=return Unicode strings.

*lppError* **\[Out\]**  Destination for detailed error information.

## RETURNS

**Success:** **S\_OK**. \**lppError* contains details about the last error.

**Failure:** **MAPI\_E\_INVALID\_PARAMETER**, if any parameter is invalid, **MAPI\_E\_NOT\_ENOUGH\_MEMORY**, if memory allocation fails.

## NOTES

**-** If this function succeeds, the returned information in \**lppError* must be freed using **[MAPIFreeBuffer(3w)](/MAPIFreeBuffer/3w.md)** once the caller is finished with it.

**-** It is possible for this function to succeed and set \**lppError* to **NULL**, if there is no further information to report about *hRes*.

## IMPLEMENTATION

Defined in **"mapidefs.h"**.

Implemented in **"dlls/mapi32/prop.c"**.

Debug channel **"mapi"**.
