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

# SHWaitForSendMessageThread(3w)

## NAME

**SHWaitForSendMessageThread** (SHLWAPI.194)

## SYNOPSIS

DWORD SHWaitForSendMessageThread\
  (\
   HANDLE *hand*,\
   DWORD  *dwTimeout*\
  )

## DESCRIPTION

Wait for a message to arrive, with a timeout.

## PARAMS

*hand* **\[In\]**  Handle to query.

*dwTimeout* **\[In\]**  Timeout in ticks or **INFINITE** to never timeout.

## RETURNS

**STATUS\_TIMEOUT** if no message is received before *dwTimeout* ticks passes. Otherwise returns the value from MsgWaitForMultipleObjectsEx when a message is available.

## 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"**.
