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

# GetNumberOfEventLogRecords(3w)

## NAME

**GetNumberOfEventLogRecords** (ADVAPI32.@)

## SYNOPSIS

BOOL GetNumberOfEventLogRecords\
  (\
   HANDLE *hEventLog*,\
   PDWORD *NumberOfRecords*\
  )

## DESCRIPTION

Retrieves the number of records in an event log.

## PARAMS

*hEventLog* **\[In\]**  Handle to an open event log.

*NumberOfRecords* **\[Out\]**  Number of records in the log.

## RETURNS

**Success:** nonzero. *NumberOfRecords* will contain the number of records in the log.

**Failure:** zero

## IMPLEMENTATION

Declared in **"winbase.h"**.

Implemented in **"dlls/advapi32/eventlog.c"**.

Debug channel **"advapi"**.
