Source code of Windows XP (NT5)
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.

65 lines
950 B

  1. /*++
  2. Copyright (c) 1995-1997 Microsoft Corporation
  3. Module Name:
  4. namechk.h
  5. Abstract:
  6. Routines for checking nbt network names.
  7. Author:
  8. Rod Gamache (rodga) 1-Aug-1997
  9. Revision History:
  10. --*/
  11. #include <tdi.h>
  12. #include <nb30.h>
  13. #define MAX_PATH_SIZE 64
  14. #define NETBIOS_NAME_SIZE 16
  15. //
  16. // The format of Adapter Status responses
  17. //
  18. typedef struct
  19. {
  20. ADAPTER_STATUS AdapterInfo;
  21. NAME_BUFFER Names[32];
  22. } tADAPTERSTATUS;
  23. //----------------------------------------------------------------------
  24. //
  25. // Function Prototypes
  26. //
  27. NTSTATUS
  28. ReadRegistry(
  29. IN UCHAR pDeviceName[][MAX_PATH_SIZE]
  30. );
  31. NTSTATUS
  32. DeviceIoCtrl(
  33. IN HANDLE fd,
  34. IN PVOID ReturnBuffer,
  35. IN ULONG BufferSize,
  36. IN ULONG Ioctl,
  37. IN PVOID pInput,
  38. IN ULONG SizeInput
  39. );
  40. NTSTATUS
  41. OpenNbt(
  42. IN CHAR path[][MAX_PATH_SIZE],
  43. OUT PHANDLE pHandle
  44. );