Author: cgutman
Date: Fri Mar 20 03:19:53 2009
New Revision: 40108
URL:
http://svn.reactos.org/svn/reactos?rev=40108&view=rev
Log:
- Implement NdisMQueryAdapterInstanceName
Modified:
trunk/reactos/drivers/network/ndis/ndis/miniport.c
trunk/reactos/drivers/network/ndis/ndis/stubs.c
Modified: trunk/reactos/drivers/network/ndis/ndis/miniport.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/miniport.c [iso-8859-1] Fri Mar 20 03:19:53
2009
@@ -2402,5 +2402,39 @@
ExFreePool(Miniport);
}
+
+/*
+ * @implemented
+ */
+NDIS_STATUS
+EXPORT
+NdisMQueryAdapterInstanceName(
+ OUT PNDIS_STRING AdapterInstanceName,
+ IN NDIS_HANDLE MiniportAdapterHandle)
+/*
+ * FUNCTION:
+ * ARGUMENTS:
+ * NOTES:
+ * NDIS 5.0
+ */
+{
+ PLOGICAL_ADAPTER Adapter = (PLOGICAL_ADAPTER)MiniportAdapterHandle;
+ UNICODE_STRING AdapterName;
+
+ NDIS_DbgPrint(MAX_TRACE, ("Called.\n"));
+
+ AdapterName.Length = 0;
+ AdapterName.MaximumLength =
Adapter->NdisMiniportBlock.MiniportName.MaximumLength;
+ AdapterName.Buffer = ExAllocatePool(PagedPool, AdapterName.MaximumLength);
+ if (!AdapterName.Buffer)
+ return NDIS_STATUS_RESOURCES;
+
+ RtlCopyUnicodeString(&AdapterName,
&Adapter->NdisMiniportBlock.MiniportName);
+
+ *AdapterInstanceName = AdapterName;
+
+ return NDIS_STATUS_SUCCESS;
+}
+
/* EOF */
Modified: trunk/reactos/drivers/network/ndis/ndis/stubs.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/ndis/ndis/…
==============================================================================
--- trunk/reactos/drivers/network/ndis/ndis/stubs.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/ndis/ndis/stubs.c [iso-8859-1] Fri Mar 20 03:19:53 2009
@@ -717,27 +717,6 @@
*/
NDIS_STATUS
EXPORT
-NdisMQueryAdapterInstanceName(
- OUT PNDIS_STRING AdapterInstanceName,
- IN NDIS_HANDLE MiniportAdapterHandle)
-/*
- * FUNCTION:
- * ARGUMENTS:
- * NOTES:
- * NDIS 5.0
- */
-{
- UNIMPLEMENTED
-
- return NDIS_STATUS_FAILURE;
-}
-
-
-/*
- * @unimplemented
- */
-NDIS_STATUS
-EXPORT
NdisMRegisterDevice(
IN NDIS_HANDLE NdisWrapperHandle,
IN PNDIS_STRING DeviceName,