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

# RtlFindSetBits(3w)

## NAME

**RtlFindSetBits** (NTDLL.@)

## SYNOPSIS

ULONG RtlFindSetBits\
  (\
   PCRTL\_BITMAP *lpBits*,\
   ULONG        *ulCount*,\
   ULONG        *ulHint*\
  )

## DESCRIPTION

Find a block of set bits in a bitmap.

## PARAMS

*lpBits* **\[In\]**  Bitmap pointer.

*ulCount* **\[In\]**  Number of consecutive set bits to find.

*ulHint* **\[In\]**  Suggested starting position for set bits.

## RETURNS

The bit at which the match was found, or **-1** if no match was found.

## IMPLEMENTATION

Declared in **"winternl.h"**.

Implemented in **"dlls/ntdll/rtlbitmap.c"**.

Debug channel **"ntdll"**.
