Expand Minimize

IoGetDriverObjectExtension routine

The IoGetDriverObjectExtension routine retrieves a previously allocated per-driver context area.

Syntax


PVOID IoGetDriverObjectExtension(
  _In_  PDRIVER_OBJECT DriverObject,
  _In_  PVOID ClientIdentificationAddress
);

Parameters

DriverObject [in]

Specifies the driver object with which the context area is associated.

ClientIdentificationAddress [in]

Specifies the unique identifier, provided when it was allocated, of the context area to be retrieved.

Return value

IoGetDriverObjectExtension returns a pointer to the context area, if any or returns NULL.

Remarks

Drivers call IoGetDriverObjectExtension to retrieve a pointer to a previously allocated extension area.

Requirements

Version

Available starting with Windows 2000.

Header

Wdm.h (include Wdm.h, Ntddk.h, or Ntifs.h)

Library

Ntoskrnl.lib

IRQL

<= DISPATCH_LEVEL

See also

IoAllocateDriverObjectExtension

 

 

Send comments about this topic to Microsoft

Show:
© 2014 Microsoft