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

# RtlFindNextForwardRunSet(3w)

## NAME

**RtlFindNextForwardRunSet** (NTDLL.@)

## SYNOPSIS

ULONG RtlFindNextForwardRunSet\
  (\
   PCRTL\_BITMAP *lpBits*,\
   ULONG        *ulStart*,\
   PULONG       *lpPos*\
  )

## DESCRIPTION

Find the next run of set bits in a bitmap.

## PARAMS

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

*ulStart* **\[In\]**  Bit position to start searching from.

*lpPos* **\[Out\]**  Start of run.

## RETURNS

**Success:** The length of the next set run in the bitmap. *lpPos* is set to the start of the run.

**Failure:** **0**, if no run is found or any parameters are invalid.

## IMPLEMENTATION

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

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

Debug channel **"ntdll"**.
