Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

87 lines
2.0 KiB

  1. #pragma once
  2. // size of the buffer to use when querying an interface
  3. // binding from NDIS (IOCTL_NDISUIO_QUERY_BINDING)
  4. #define QUERY_BUFFER_SIZE 1024
  5. #define QUERY_BUFFER_MAX 65536 // 64K should be more than enough for an interface binding structure
  6. DWORD
  7. DevioGetNdisuioHandle(
  8. PHANDLE pHandle);
  9. DWORD
  10. DevioCheckNdisBinding(
  11. PNDISUIO_QUERY_BINDING pndBinding,
  12. ULONG nBindingLen);
  13. DWORD
  14. DevioGetIntfBindingByIndex(
  15. HANDLE hNdisuio, // IN opened handle to NDISUIO. If INVALID_HANDLE_VALUE, open one locally
  16. UINT nIntfIndex, // IN interface index to look for
  17. PRAW_DATA prdOutput); // OUT result of the IOCTL
  18. DWORD
  19. DevioGetInterfaceBindingByGuid(
  20. HANDLE hNdisuio, // IN opened handle to NDISUIO. If INVALID_HANDLE_VALUE, open one locally
  21. LPWSTR wszGuid, // IN interface GUID as "{guid}"
  22. PRAW_DATA prdOutput); // OUT result of the IOCTL
  23. DWORD
  24. DevioGetIntfStats(
  25. PINTF_CONTEXT pIntf);
  26. DWORD
  27. DevioGetIntfMac(
  28. PINTF_CONTEXT pIntf);
  29. DWORD
  30. DevioNotifyFailure(
  31. LPWSTR wszIntfGuid);
  32. DWORD
  33. DevioOpenIntfHandle(
  34. LPWSTR wszIntfGuid,
  35. PHANDLE phIntf);
  36. DWORD
  37. DevioCloseIntfHandle(
  38. PINTF_CONTEXT pIntf);
  39. DWORD
  40. DevioSetIntfOIDs(
  41. PINTF_CONTEXT pIntfContext,
  42. PINTF_ENTRY pIntfEntry,
  43. DWORD dwInFlags,
  44. PDWORD pdwOutFlags);
  45. DWORD
  46. DevioRefreshIntfOIDs(
  47. PINTF_CONTEXT pIntf,
  48. DWORD dwInFlags,
  49. PDWORD pdwOutFlags);
  50. DWORD
  51. DevioQueryEnumOID(
  52. HANDLE hIntf,
  53. NDIS_OID Oid,
  54. DWORD *pdwEnumValue);
  55. DWORD
  56. DevioSetEnumOID(
  57. HANDLE hIntf,
  58. NDIS_OID Oid,
  59. DWORD dwEnumValue);
  60. DWORD
  61. DevioQueryBinaryOID(
  62. HANDLE hIntf,
  63. NDIS_OID Oid,
  64. PRAW_DATA pRawData,
  65. DWORD dwMemEstimate);
  66. DWORD
  67. DevioSetBinaryOID(
  68. HANDLE hIntf,
  69. NDIS_OID Oid,
  70. PRAW_DATA pRawData);