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.

60 lines
939 B

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. tokentst.h
  5. Abstract:
  6. Header file for test program to test stealing the token while SR impersonates.
  7. Author:
  8. Molly Brown (MollyBro) 26-Mar-2002
  9. Revision History:
  10. --*/
  11. #ifndef __TOKENTST_H__
  12. #define __TOKENTST_H__
  13. #include <stdio.h>
  14. #include <string.h>
  15. #include <nt.h>
  16. #include <ntrtl.h>
  17. #include <nturtl.h>
  18. #include <windows.h>
  19. #include <ntioapi.h>
  20. typedef struct _MONITOR_THREAD_CONTEXT {
  21. HANDLE MainThread;
  22. } MONITOR_THREAD_CONTEXT, *PMONITOR_THREAD_CONTEXT;
  23. DWORD
  24. WINAPI
  25. MonitorThreadProc(
  26. PMONITOR_THREAD_CONTEXT Context
  27. );
  28. BOOL
  29. ModifyFile (
  30. PCHAR FileName1,
  31. PCHAR FileName2
  32. );
  33. NTSTATUS
  34. GetCurrentTokenInformation (
  35. HANDLE ThreadHandle,
  36. PTOKEN_USER TokenUserInfoBuffer,
  37. ULONG TokenUserInfoBufferLength
  38. );
  39. #endif /* __TOKENTST_H__ */