Obtains a reference to a TCP v4 driver object.
Syntax
NTSTATUS WINAPI ReferenceTcpDriver(
_Out_ PDRIVER_OBJECT *ppDriverObject
);
Parameters
ppDriverObject [out]
A pointer to a DRIVER_OBJECT structure. For more information, see the documentation for the WDK.
Return value
If the function succeeds, it returns STATUS_SUCCESS. If it fails, it will return the appropriate status code.
Remarks
This function can be called only from kernel mode. The caller must decrement the reference count by calling the ObDereferenceObject function when it has finished with the object.
Requirements
| Requirement | Value |
|---|---|
| Library | Drvref.lib |
See also
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
