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.

83 lines
1.4 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996.
  5. //
  6. // File: net.hxx
  7. //
  8. // Contents:
  9. // Net helper functions.
  10. //
  11. // History:
  12. //--------------------------------------------------------------------------
  13. #ifndef __NET_HXX__
  14. #define __NET_HXX__
  15. #include <mach.hxx>
  16. #ifdef DFSACTIVATION
  17. extern HANDLE ghDfs;
  18. NTSTATUS
  19. DfsFsctl(
  20. HANDLE DfsHandle,
  21. ULONG FsControlCode,
  22. PVOID InputBuffer,
  23. ULONG InputBufferLength,
  24. PVOID OutputBuffer,
  25. PULONG OutputBufferLength);
  26. NTSTATUS
  27. DfsOpen(
  28. PHANDLE DfsHandle);
  29. #endif
  30. typedef DWORD (APIENTRY * GET_UNIVERSAL_NAME_FUNC)(
  31. LPCWSTR lpLocalPath,
  32. DWORD dwInfoLevel,
  33. LPVOID lpBuffer,
  34. LPDWORD lpBufferSize
  35. );
  36. typedef NET_API_STATUS (NET_API_FUNCTION * NET_SHARE_GET_INFO_FUNC)(
  37. LPTSTR servername,
  38. LPTSTR netname,
  39. DWORD level,
  40. LPBYTE *bufptr
  41. );
  42. DWORD
  43. ScmWNetGetUniversalName(
  44. LPCWSTR lpLocalPath,
  45. DWORD dwInfoLevel,
  46. LPVOID lpBuffer,
  47. LPDWORD lpBufferSize
  48. );
  49. NET_API_STATUS
  50. ScmNetShareGetInfo(
  51. LPTSTR servername,
  52. LPTSTR netname,
  53. DWORD level,
  54. LPBYTE *bufptr
  55. );
  56. #ifdef _CHICAGO_
  57. HRESULT
  58. ScmGetUniversalName(
  59. LPCWSTR lpLocalPath,
  60. LPWSTR lpBuffer,
  61. LPDWORD lpBufferSize
  62. );
  63. RPC_STATUS
  64. IP_BuildAddressVector(
  65. NETWORK_ADDRESS_VECTOR **ppAddressVector
  66. );
  67. #endif
  68. #endif