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.

65 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. drprov.h
  5. Abstract:
  6. This module includes all network provider router interface related
  7. definitions
  8. Author:
  9. Joy Chik (1/27/2000)
  10. --*/
  11. #ifndef _DRPROV_H_
  12. #define _DRPROV_H_
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <windef.h>
  17. #include <winbase.h>
  18. #include <winsvc.h>
  19. #include <winnetwk.h>
  20. #include <winnetp.h>
  21. #include <npapi.h>
  22. #include <wchar.h>
  23. #include <rdpdr.h>
  24. #include <rdpnp.h>
  25. #define USERNAMELEN 256 // Maximum user name length
  26. #define INITIAL_ALLOCATION_SIZE 48*1024 // First attempt size (48K)
  27. #define FUDGE_FACTOR_SIZE 1024 // Second try TotalBytesNeeded
  28. // plus this amount
  29. // Enumeration type
  30. typedef enum _ENUM_TYPE {
  31. SERVER = 0,
  32. SHARE,
  33. CONNECTION,
  34. EMPTY
  35. } ENUM_TYPE;
  36. typedef struct _RDPDR_ENUMERATION_HANDLE_ {
  37. DWORD dwScope;
  38. DWORD dwType;
  39. DWORD dwUsage;
  40. UNICODE_STRING RemoteName; // Remote Name
  41. ENUM_TYPE enumType; // Enumeration type
  42. DWORD enumIndex; // Current enumeration index
  43. DWORD totalEntries; // Total number of entries returned
  44. PBYTE pEnumBuffer; // Enumeration buffer that holds entries returned from
  45. // kernel mode redirector
  46. } RDPDR_ENUMERATION_HANDLE, *PRDPDR_ENUMERATION_HANDLE;
  47. #define MemAlloc(size) HeapAlloc(RtlProcessHeap(), 0, size)
  48. #define MemFree(pointer) HeapFree(RtlProcessHeap(), 0, pointer)
  49. #endif