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.

46 lines
1.2 KiB

  1. /*******************************************************************************
  2. *
  3. * procs.h
  4. *
  5. * declaration of ProcEnumerateProcesses
  6. *
  7. * copyright notice: Copyright 1997, Citrix Systems Inc.
  8. * Copyright (c) 1998 - 1999 Microsoft Corporation
  9. *
  10. * $Author: butchd $ Don Messerli
  11. *
  12. * $Log: M:\NT\PRIVATE\UTILS\CITRIX\WINUTILS\WINADMIN\VCS\PROCS.H $
  13. *
  14. * Rev 1.0 30 Jul 1997 17:12:06 butchd
  15. * Initial revision.
  16. *
  17. *******************************************************************************/
  18. #ifndef _PROCS_H
  19. #define _PROCS_H
  20. #include <allproc.h>
  21. typedef struct _ENUMTOKEN
  22. {
  23. ULONG Current;
  24. ULONG NumberOfProcesses;
  25. union
  26. {
  27. PTS_ALL_PROCESSES_INFO ProcessArray;
  28. PBYTE pProcessBuffer;
  29. };
  30. BOOLEAN bGAP;
  31. }
  32. ENUMTOKEN, *PENUMTOKEN;
  33. BOOL WINAPI ProcEnumerateProcesses( HANDLE hServer,
  34. PENUMTOKEN pEnumToken,
  35. LPTSTR pImageName,
  36. PULONG pLogonId,
  37. PULONG pPID,
  38. PSID *ppSID );
  39. #define MAX_PROCESSNAME 18
  40. #endif // _PROCS_H