RtlAllocateHandle(3w)

RtlAllocateHandle3w

Usage

RTL_HANDLE * RtlAllocateHandle
(
RTL_HANDLE_TABLE* HandleTable,
ULONG* HandleIndex
)

Overview

Allocates a handle from the handle table.

Params

HandleTable [In/Out] The handle table.

HandleIndex [Out] Index of the handle returned. Optional.

Returns

Success: Pointer to allocated handle.

Failure: NULL.

Notes

A valid handle must have the bit set as indicated in the code below otherwise subsequent RtlIsValidHandle(3w) calls will fail.

static inline void RtlpMakeHandleAllocated(RTL_HANDLE * Handle) { ULONG_PTR *AllocatedBit = (ULONG_PTR *)(&Handle->Next); *AllocatedBit = *AllocatedBit | 1; }.

See

RtlFreeHandle().

Implementation

Declared in "winternl.h".

Implemented in "dlls/ntdll/handletable.c".

Debug channel "ntdll".

Releases

4 releases since Debian 4.0 (Etch); the text changed 3 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7

From libwine-dev 1.4.1-4 in Debian 7 (Wheezy). Parsed by carta from the page's man source.