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.

118 lines
2.1 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1999
  5. //
  6. // File: lsreport.h
  7. //
  8. // Contents: Prototypes and structures for LSReport.
  9. //
  10. // History: 06-05-99 t-BStern Created
  11. //
  12. //---------------------------------------------------------------------------
  13. #ifndef __lsls_h
  14. #define __lsls_h
  15. #include <windows.h>
  16. #include <stdio.h>
  17. #include <stdlib.h>
  18. #include <tchar.h>
  19. #include <windef.h>
  20. #include <winnt.h>
  21. #include <rpc.h>
  22. #include <hydrals.h>
  23. #include <tlsapi.h>
  24. #include <winsta.h>
  25. typedef struct _ServerHolder {
  26. LPWSTR *pszNames;
  27. DWORD dwCount;
  28. } ServerHolder, *PServerHolder;
  29. BOOL
  30. InitLSReportStrings(VOID);
  31. DWORD
  32. ShowError(
  33. IN DWORD dwStatus,
  34. IN INT_PTR *args,
  35. IN BOOL fSysError
  36. );
  37. DWORD
  38. ExportLicenses(
  39. IN FILE *OutFile,
  40. IN PServerHolder pshServers,
  41. IN BOOL fTempOnly,
  42. IN const PSYSTEMTIME pstStart,
  43. IN const PSYSTEMTIME pstEnd,
  44. IN BOOL fUseLimits,
  45. IN BOOL fHwid
  46. );
  47. VOID
  48. PrintLicense(
  49. IN LPCTSTR szName,
  50. IN const LPLSLicense pLSLicense,
  51. IN LPCTSTR szProductId,
  52. IN FILE *outFile,
  53. IN BOOL fHwid
  54. );
  55. BOOL
  56. ServerEnumCallBack(
  57. IN TLS_HANDLE hHandle,
  58. IN LPCTSTR pszServerName,
  59. IN OUT HANDLE dwUserData
  60. );
  61. INT
  62. CompDate(
  63. IN DWORD dwWhen,
  64. IN const PSYSTEMTIME pstWhen
  65. );
  66. int
  67. usage(
  68. IN int retVal
  69. );
  70. DWORD
  71. LicenseLoop(
  72. IN FILE *OutFile,
  73. IN LPWSTR szName,
  74. IN DWORD dwKeyPackId,
  75. IN LPCTSTR szProductId,
  76. IN BOOL fTempOnly,
  77. IN const PSYSTEMTIME pstStart,
  78. IN const PSYSTEMTIME pstEnd,
  79. IN BOOL fUseLimits,
  80. IN BOOL fHwid
  81. );
  82. DWORD
  83. KeyPackLoop(
  84. IN FILE *OutFile,
  85. IN LPWSTR szName,
  86. IN BOOL fTempOnly,
  87. IN const PSYSTEMTIME pstStart,
  88. IN const PSYSTEMTIME pstEnd,
  89. IN BOOL fUseLimits,
  90. IN BOOL fHwid
  91. );
  92. void
  93. UnixTimeToFileTime(
  94. IN time_t t,
  95. OUT LPFILETIME pft
  96. );
  97. void
  98. UnixTimeToSystemTime(
  99. IN time_t t,
  100. OUT LPSYSTEMTIME pst
  101. );
  102. #endif