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.

114 lines
1.9 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. );
  46. VOID
  47. PrintLicense(
  48. IN LPCTSTR szName,
  49. IN const LPLSLicense pLSLicense,
  50. IN LPCTSTR szProductId,
  51. IN FILE *outFile
  52. );
  53. BOOL
  54. ServerEnumCallBack(
  55. IN TLS_HANDLE hHandle,
  56. IN LPCTSTR pszServerName,
  57. IN OUT HANDLE dwUserData
  58. );
  59. INT
  60. CompDate(
  61. IN DWORD dwWhen,
  62. IN const PSYSTEMTIME pstWhen
  63. );
  64. int
  65. usage(
  66. IN int retVal
  67. );
  68. DWORD
  69. LicenseLoop(
  70. IN FILE *OutFile,
  71. IN LPWSTR szName,
  72. IN DWORD dwKeyPackId,
  73. IN LPCTSTR szProductId,
  74. IN BOOL fTempOnly,
  75. IN const PSYSTEMTIME pstStart,
  76. IN const PSYSTEMTIME pstEnd,
  77. IN BOOL fUseLimits
  78. );
  79. DWORD
  80. KeyPackLoop(
  81. IN FILE *OutFile,
  82. IN LPWSTR szName,
  83. IN BOOL fTempOnly,
  84. IN const PSYSTEMTIME pstStart,
  85. IN const PSYSTEMTIME pstEnd,
  86. IN BOOL fUseLimits
  87. );
  88. void
  89. UnixTimeToFileTime(
  90. IN time_t t,
  91. OUT LPFILETIME pft
  92. );
  93. void
  94. UnixTimeToSystemTime(
  95. IN time_t t,
  96. OUT LPSYSTEMTIME pst
  97. );
  98. #endif