Could you tell me how to get the kernel network card MAC address
The following code to obtain the always empty
PINTERNAL_REQUEST pNdisRequest=ExAllocatePool (NonPagedPool, sizeof (INTERNAL_REQUEST));
If (NULL==pNdisRequest)
Return STATUS_UNSUCCESSFUL;
RtlZeroMemory (& amp; PNdisRequest - & gt; Request, sizeof (NDIS_REQUEST));
PNdisRequest - & gt; Request. RequestType=NdisRequestQueryInformation;
PNdisRequest - & gt; Request. DATA. QUERY_INFORMATION. Oids=OID_802_3_PERMANENT_ADDRESS;
PNdisRequest - & gt; Request. DATA. QUERY_INFORMATION. InformationBuffer=buf;
PNdisRequest - & gt; Request. DATA. QUERY_INFORMATION. InformationBufferLength=256;
NdisRequest (& amp; The status of the open - & gt; AdapterHandle, & amp; PNdisRequest - & gt; Request);
If (status==NDIS_STATUS_PENDING) {
NdisWaitEvent (& amp; The open - & gt; The Event, 0);
_asm int 3
The status=NDIS_STATUS_SUCCESS;
}