lmstats.h 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. /*
  2. * Copyright 2003 Geoff Thorpe
  3. *
  4. * This library is free software; you can redistribute it and/or
  5. * modify it under the terms of the GNU Lesser General Public
  6. * License as published by the Free Software Foundation; either
  7. * version 2.1 of the License, or (at your option) any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  12. * Lesser General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU Lesser General Public
  15. * License along with this library; if not, write to the Free Software
  16. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  17. */
  18. #ifndef __WINE_LMSTATS_H
  19. #define __WINE_LMSTATS_H
  20. #include <lmcons.h>
  21. #ifdef __cplusplus
  22. extern "C" {
  23. #endif
  24. typedef struct _STAT_WORKSTATION_0 {
  25. LARGE_INTEGER StatisticsStartTime;
  26. LARGE_INTEGER BytesReceived;
  27. LARGE_INTEGER SmbsReceived;
  28. LARGE_INTEGER PagingReadBytesRequested;
  29. LARGE_INTEGER NonPagingReadBytesRequested;
  30. LARGE_INTEGER CacheReadBytesRequested;
  31. LARGE_INTEGER NetworkReadBytesRequested;
  32. LARGE_INTEGER BytesTransmitted;
  33. LARGE_INTEGER SmbsTransmitted;
  34. LARGE_INTEGER PagingWriteBytesRequested;
  35. LARGE_INTEGER NonPagingWriteBytesRequested;
  36. LARGE_INTEGER CacheWriteBytesRequested;
  37. LARGE_INTEGER NetworkWriteBytesRequested;
  38. DWORD InitiallyFailedOperations;
  39. DWORD FailedCompletionOperations;
  40. DWORD ReadOperations;
  41. DWORD RandomReadOperations;
  42. DWORD ReadSmbs;
  43. DWORD LargeReadSmbs;
  44. DWORD SmallReadSmbs;
  45. DWORD WriteOperations;
  46. DWORD RandomWriteOperations;
  47. DWORD WriteSmbs;
  48. DWORD LargeWriteSmbs;
  49. DWORD SmallWriteSmbs;
  50. DWORD RawReadsDenied;
  51. DWORD RawWritesDenied;
  52. DWORD NetworkErrors;
  53. DWORD Sessions;
  54. DWORD FailedSessions;
  55. DWORD Reconnects;
  56. DWORD CoreConnects;
  57. DWORD Lanman20Connects;
  58. DWORD Lanman21Connects;
  59. DWORD LanmanNtConnects;
  60. DWORD ServerDisconnects;
  61. DWORD HungSessions;
  62. DWORD UseCount;
  63. DWORD FailedUseCount;
  64. DWORD CurrentCommands;
  65. } STAT_WORKSTATION_0, *PSTAT_WORKSTATION_0, *LPSTAT_WORKSTATION_0;
  66. typedef struct _STAT_SERVER_0 {
  67. DWORD sts0_start;
  68. DWORD sts0_fopens;
  69. DWORD sts0_devopens;
  70. DWORD sts0_jobsqueued;
  71. DWORD sts0_sopens;
  72. DWORD sts0_stimedout;
  73. DWORD sts0_serrorout;
  74. DWORD sts0_pwerrors;
  75. DWORD sts0_permerrors;
  76. DWORD sts0_syserrors;
  77. DWORD sts0_bytessent_low;
  78. DWORD sts0_bytessent_high;
  79. DWORD sts0_bytesrcvd_low;
  80. DWORD sts0_bytesrcvd_high;
  81. DWORD sts0_avresponse;
  82. DWORD sts0_reqbufneed;
  83. DWORD sts0_bigbufneed;
  84. } STAT_SERVER_0, *PSTAT_SERVER_0, *LPSTAT_SERVER_0;
  85. NET_API_STATUS WINAPI NetStatisticsGet(LPWSTR server, LPWSTR service, DWORD level,
  86. DWORD options, LPBYTE *bufptr);
  87. #ifdef __cplusplus
  88. }
  89. #endif
  90. #endif