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

# RtlFindClearBitsAndSet(3w)

## NAME

**RtlFindClearBitsAndSet** (NTDLL.@)

## SYNOPSIS

ULONG RtlFindClearBitsAndSet\
  (\
   PRTL\_BITMAP *lpBits*,\
   ULONG       *ulCount*,\
   ULONG       *ulHint*\
  )

## DESCRIPTION

Find a block of clear bits in a bitmap, and set them if found.

## PARAMS

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

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

*ulHint* **\[In\]**  Suggested starting position for clear 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"**.
