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.

95 lines
4.3 KiB

  1. #define SZ_CLASS_CLIENT SZ_CLASS_CLIENTA
  2. #define SZ_CLIENT_MICROSOFT SZ_CLIENT_MICROSOFTA
  3. #define SZ_CLASS_PROTOCOL SZ_CLASS_PROTOCOLA
  4. #define SZ_CLASS_ADAPTER SZ_CLASS_ADAPTERA
  5. #define SZ_PROTOCOL_IPXSPX SZ_PROTOCOL_IPXSPXA
  6. #define SZ_PROTOCOL_TCPIP SZ_PROTOCOL_TCPIPA
  7. #define SZ_CLASS_SERVICE SZ_CLASS_SERVICEA
  8. #define SZ_SERVICE_VSERVER SZ_SERVICE_VSERVERA
  9. typedef struct tagNETADAPTERA {
  10. CHAR szDisplayName[260]; // so-called friendly name of adapter
  11. CHAR szDeviceID[260]; // e.g. "PCI\VEN_10b7&DEV_9050"
  12. CHAR szEnumKey[260]; // e.g. "Enum\PCI\VEN_10b7&DEV_9050&SUBSYS_00000000&REV_00\407000"
  13. CHAR szClassKey[40]; // PnP-assigned class name + ID, e.g. "Net\0000"
  14. CHAR szManufacturer[60]; // Company that manufactured the card, e.g. "3Com"
  15. CHAR szInfFileName[50]; // File title of INF file, e.g. "NETEL90X.INF"
  16. BYTE bNicType; // a NIC_xxx constant, defined above
  17. BYTE bNetType; // a NETTYPE_xxx constant, defined above
  18. BYTE bNetSubType; // a SUBTYPE_xxx constant, defined above
  19. BYTE bIcsStatus; // an ICS_xxx constant, defined above
  20. BYTE bError; // a NICERR_xxx constant, defined above
  21. BYTE bWarning; // a NICWARN_xxx constant, defined above
  22. DWORD devnode; // configmg device node
  23. } NETADAPTERA;
  24. typedef struct tagNETSERVICEA {
  25. CHAR szDisplayName[260]; // (supposedly) friendly name of service
  26. CHAR szDeviceID[260]; // e.g. "VSERVER"
  27. CHAR szClassKey[40]; // PnP-assigned class name + ID, e.g. "NetService\0000"
  28. } NETSERVICEA;
  29. #define NETADAPTER NETADAPTERA
  30. #define NETSERVICE NETSERVICEA
  31. #define SZ_CLASS_ADAPTERA "Net"
  32. #define SZ_CLASS_CLIENTA "NetClient"
  33. #define SZ_CLASS_PROTOCOLA "NetTrans"
  34. #define SZ_CLASS_SERVICEA "NetService"
  35. #define SZ_PROTOCOL_TCPIPA "MSTCP"
  36. #define SZ_PROTOCOL_NETBEUIA "NETBEUI"
  37. #define SZ_PROTOCOL_IPXSPXA "NWLINK"
  38. #define SZ_SERVICE_VSERVERA "VSERVER"
  39. #define SZ_CLIENT_MICROSOFTA "VREDIR"
  40. #define SZ_CLIENT_NETWAREA "NWREDIR"
  41. #define EnumNetAdapters EnumNetAdaptersA
  42. #define IsProtocolBoundToAdapter IsProtocolBoundToAdapterA
  43. #define IsAdapterBroadband IsAdapterBroadbandA
  44. int WINAPI EnumNetAdaptersA(NETADAPTERA FAR** pprgNetAdapters);
  45. BOOL WINAPI IsProtocolBoundToAdapterA(LPCSTR pszProtocolID, const NETADAPTERA* pAdapter);
  46. BOOL WINAPI IsAdapterBroadbandA(const NETADAPTERA* pAdapter);
  47. //HRESULT WINAPI InstallNetAdapterA(LPCSTR pszDeviceID, LPCSTR pszInfPath, HWND hwndParent, PROGRESS_CALLBACK pfnProgress, LPVOID pvCallbackParam);
  48. BOOL WINAPI IsClientInstalledA(LPCSTR pszClientDeviceID, BOOL bExhaustive);
  49. void WINAPI SaveBroadbandSettingsA(LPCSTR pszBroadbandAdapterNumber);
  50. HRESULT WINAPI DetectHardwareA(LPCSTR pszDeviceID);
  51. void WINAPI EnableAutodialA(BOOL bAutodial, LPCSTR szConnection = NULL);
  52. void WINAPI SetDefaultDialupConnectionA(LPCSTR pszConnectionName);
  53. void WINAPI GetDefaultDialupConnectionA(LPSTR pszConnectionName, int cchMax);
  54. int WINAPI EnumMatchingNetBindingsA(LPCSTR pszParentBinding, LPCSTR pszDeviceID, LPSTR** pprgBindings);
  55. #define IsProtocolInstalled IsProtocolInstalledA
  56. #define InstallProtocol InstallProtocolA
  57. #define RemoveProtocol RemoveProtocolA
  58. #define FindConflictingService FindConflictingServiceA
  59. //#define EnumNetAdapters EnumNetAdaptersA
  60. #define InstallNetAdapter InstallNetAdapterA
  61. //#define IsProtocolBoundToAdapter IsProtocolBoundToAdapterA
  62. #define EnableNetAdapter EnableNetAdapterA
  63. #define IsClientInstalled IsClientInstalledA
  64. #define RemoveClient RemoveClientA
  65. #define RemoveGhostedAdapters RemoveGhostedAdaptersA
  66. #define RemoveUnknownAdapters RemoveUnknownAdaptersA
  67. #define DoesAdapterMatchDeviceID DoesAdapterMatchDeviceIDA
  68. //#define IsAdapterBroadband IsAdapterBroadbandA
  69. #define SaveBroadbandSettings SaveBroadbandSettingsA
  70. #define UpdateBroadbandSettings UpdateBroadbandSettingsA
  71. #define DetectHardware DetectHardwareA
  72. #define EnumMatchingNetBindings EnumMatchingNetBindingsA
  73. #define EnableAutodial EnableAutodialA
  74. #define SetDefaultDialupConnection SetDefaultDialupConnectionA
  75. #define GetDefaultDialupConnection GetDefaultDialupConnectionA