// netconfiguration.h
NTSTATUS NetConfigurationQueryLinkLayerAddress(
[_In_] NETCONFIGURATION Configuration,
[_Out_] NET_ADAPTER_LINK_LAYER_ADDRESS *LinkLayerAddress
);
View the official Windows Driver Kit DDI referenceNo description available.
The NetConfigurationQueryLinkLayerAddress function retrieves the software-configurable link layer address that was stored in the registry for a NIC.
Configuration [_In_]Handle to a NETCONFIGURATION object that represents an opened registry key.
LinkLayerAddress [_Out_]A pointer to a NET_ADAPTER_LINK_LAYER_ADDRESS object that represents the link layer address stored in the registry key.
The function returns STATUS_SUCCESS if the operation succeeds. Otherwise, this function may return an appropriate NTSTATUS error code.
The client driver obtains a handle to a NETCONFIGURATION object by calling NetAdapterOpenConfiguration or NetConfigurationOpenSubConfiguration.