PacketOidData

Historical C++/CLI reference: The NdisApi.PacketOidData class encapsulates NDIS Object Identifier (OID) requests for querying and configuring network adapter operational parameters (such as link speed, hardware statistics, or multicast lists). It belongs to the C++/CLI binding in wiresock/ndisapi.

It corresponds to the native _PACKET_OID_DATA structure used by NdisrdRequest.

Historical Class Properties

  • Adapter: Native adapter handle for the query or set operation.
  • Oid: Numeric identifier specifying the requested information.
  • Data: Managed byte[] used to send or receive OID data.

The historical NdisApi.NdisApiDotNet.NdisrdRequest(PacketOidData, bool) method accepts this class; pass true for a set operation or false for a query. The declaration is in ndisapicl.h.

Current C# Binding

The current NdisApiDotNet C# project exposes the unsafe NdisApiDotNet.Native.NdisApi.PACKET_OID_DATA structure, with hAdapterHandle, Oid, Length, and a trailing Data buffer. NdisApiDotNet.NdisApi.NdisrdRequest accepts this structure by ref or pointer, plus a bool set argument. Callers using the unsafe representation must provide storage large enough for the OID payload. See the .NET interface guide for source setup.