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

# IUnknown\_ProfferService(3w)

## NAME

**IUnknown\_ProfferService** (SHLWAPI.514)

## SYNOPSIS

HRESULT IUnknown\_ProfferService\
  (\
   IUnknown\*         *lpUnknown*,\
   REFGUID           *service*,\
   IServiceProvider\* *pService*,\
   DWORD\*            *pCookie*\
  )

## DESCRIPTION

Calls IProfferService methods to proffer/revoke specified *service*.

## PARAMS

*lpUnknown* **\[In\]**  Object to get an **IServiceProvider** interface from.

*service* **\[In\]**  Service Id for IProfferService::Proffer/Revoke calls.

*pService* **\[In\]**  Service to proffer. If NULL::Revoke is called.

*pCookie* **\[IO\]**  Group Id for IOleCommandTarget::Exec() call.

## RETURNS

**Success:** **S\_OK**. IProffer method returns **S\_OK**

**Failure:** An **HRESULT** error code.

## NOTES

*lpUnknown* is expected to support the **IServiceProvider** interface.

## IMPLEMENTATION

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

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

Debug channel **"shell"**.
