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.

40 lines
1.2 KiB

  1. #include <stdio.h>
  2. #include "winperf.h"
  3. #include "winreg.h"
  4. extern void PerfUtilLogEvent( DWORD evncat, WORD evntyp, const char *szDescription );
  5. extern HANDLE hOurEventSource;
  6. /* Registry Support */
  7. extern DWORD DwPerfUtilRegOpenKeyEx(HKEY hkeyRoot,LPCTSTR lpszSubKey,PHKEY phkResult);
  8. extern DWORD DwPerfUtilRegCloseKeyEx(HKEY hkey);
  9. extern DWORD DwPerfUtilRegCreateKeyEx(HKEY hkeyRoot,LPCTSTR lpszSubKey,PHKEY phkResult,LPDWORD lpdwDisposition);
  10. extern DWORD DwPerfUtilRegDeleteKeyEx(HKEY hkeyRoot,LPCTSTR lpszSubKey);
  11. extern DWORD DwPerfUtilRegDeleteValueEx(HKEY hkey,LPTSTR lpszValue);
  12. extern DWORD DwPerfUtilRegSetValueEx(HKEY hkey,LPCTSTR lpszValue,DWORD fdwType,CONST BYTE *lpbData,DWORD cbData);
  13. extern DWORD DwPerfUtilRegQueryValueEx(HKEY hkey,LPTSTR lpszValue,LPDWORD lpdwType,LPBYTE *lplpbData);
  14. /* Init/Term */
  15. extern DWORD DwPerfUtilInit( VOID );
  16. extern VOID PerfUtilTerm( VOID );
  17. // pointer to shared data area and Mutex used to access the process name table.
  18. extern void * pvPERFSharedData;
  19. extern HANDLE hPERFSharedDataMutex;
  20. extern HANDLE hPERFInstanceMutex;
  21. extern HANDLE hPERFCollectSem;
  22. extern HANDLE hPERFDoneEvent;
  23. extern HANDLE hPERFProcCountSem;
  24. extern HANDLE hPERFNewProcMutex;