// netconfiguration.h
NTSTATUS NetConfigurationQueryUlong(
[_In_] NETCONFIGURATION Configuration,
[_In_] NET_CONFIGURATION_QUERY_ULONG_FLAGS Flags,
[_In_] PCUNICODE_STRING ValueName,
[_Out_] ULONG *Value
);
View the official Windows Driver Kit DDI referenceNo description available.
Retrieves the specified unsigned long word (REG_DWORD) data from the adapter configuration object and copies the data to a specified location.
Configuration [_In_]Handle to a NETCONFIGURATION object that represents an opened registry key.
Flags [_In_]A valid bitwise OR of NET_CONFIGURATION_QUERY_ULONG_FLAGS-typed flags.
ValueName [_In_]A pointer to a UNICODE_STRING structure that contains a name for the ULONG value.
Value [_Out_]A pointer to a location that receives the data that is assigned to the value that ValueName specifies.
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.