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.

64 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. //
  21. // Memory macros
  22. //
  23. #define Alloc(c) ((PVOID)LocalAlloc(LPTR, c))
  24. #define ReAlloc(p, c) ((PVOID)LocalReAlloc(p, c, LPTR | LMEM_MOVEABLE))
  25. #define Free(p) ((VOID)LocalFree(p))
  26. //
  27. // Define a debug print routine
  28. //
  29. #define UIPrint(s) KdPrint(("USERINIT: ")); \
  30. KdPrint(s); \
  31. KdPrint(("\n"));
  32. #define ARRAYSIZE(a) (sizeof(a)/sizeof(a[0]))
  33. //
  34. // Define the path environment variable
  35. //
  36. #define PATH TEXT("PATH")
  37. //
  38. //
  39. // GetProcAddr Prototype for winsta.dll function WinStationQueryInformationW
  40. //
  41. typedef BOOLEAN (*PWINSTATION_QUERY_INFORMATION) (
  42. HANDLE hServer,
  43. ULONG SessionId,
  44. WINSTATIONINFOCLASS WinStationInformationClass,
  45. PVOID pWinStationInformation,
  46. ULONG WinStationInformationLength,
  47. PULONG pReturnLength
  48. );
  49. typedef void (*PTERMSRCHECKNEWINIFILES) (void);