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.5 KiB

  1. /****************************** Module Header ******************************\
  2. * Module Name: userinit.h
  3. *
  4. * Copyright (c) 1991, Microsoft Corporation
  5. *
  6. * Main header file for userinit
  7. *
  8. * History:
  9. * 21-Aug-92 Davidc Created.
  10. \***************************************************************************/
  11. #ifndef RC_INVOKED
  12. #include <nt.h>
  13. #include <ntrtl.h>
  14. #include <nturtl.h>
  15. #endif
  16. #include <windows.h>
  17. #include <winstaw.h>
  18. #include <wincrypt.h>
  19. #include <autoenr.h>
  20. #include <strsafe.h>
  21. //
  22. // Memory macros
  23. //
  24. #define Alloc(c) ((PVOID)LocalAlloc(LPTR, c))
  25. #define ReAlloc(p, c) ((PVOID)LocalReAlloc(p, c, LPTR | LMEM_MOVEABLE))
  26. #define Free(p) ((VOID)LocalFree(p))
  27. //
  28. // Define a debug print routine
  29. //
  30. #define UIPrint(s) KdPrint(("USERINIT: ")); \
  31. KdPrint(s); \
  32. KdPrint(("\n"));
  33. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  34. //
  35. // Define the path environment variable
  36. //
  37. #define PATH TEXT("PATH")
  38. //
  39. //
  40. // GetProcAddr Prototype for winsta.dll function WinStationQueryInformationW
  41. //
  42. typedef BOOLEAN (*PWINSTATION_QUERY_INFORMATION) (
  43. HANDLE hServer,
  44. ULONG SessionId,
  45. WINSTATIONINFOCLASS WinStationInformationClass,
  46. PVOID pWinStationInformation,
  47. ULONG WinStationInformationLength,
  48. PULONG pReturnLength
  49. );
  50. typedef void (*PTERMSRCHECKNEWINIFILES) (void);