Windows NT 4.0 source code leak
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.

61 lines
1.3 KiB

4 years ago
  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. advprf.c
  5. Abstract:
  6. Apf profiling utilites.
  7. These are utilies compiled into the profiling dll along
  8. with the dummy api calls.
  9. This dll exports apis with the same name as advapi32.dll with a 'Z' prefix.
  10. The general form for an api call is:
  11. ZAPI_NAME (Parameters)
  12. {
  13. - start the timer
  14. - call API_NAME
  15. - stop timer
  16. - record the data
  17. }
  18. Author:
  19. Revision History:
  20. Nov 89, created by vaidy (apiprof.c)
  21. Aug 90, cleanup and updated to work with windows, use new
  22. generated header files and collect more info -- jamesg
  23. Jun 91, modified to 32 bits and to work with zuser.c, to profile
  24. user32.dll api calls -- t-philm
  25. Jun 91, modified to work with multiple thread\process operation
  26. by using shared memory segments -- t-phil
  27. Dec 91, got rid of zhelp.dll -- RezaB
  28. Jun 92, modified for user.dll to user32.dll name change -- RezaB
  29. Jul 92, Made common api32prf.c file -- RezaB
  30. Aug 92, Created for AdvApi32.dll -- RezaB
  31. --*/
  32. #include <string.h>
  33. #include <io.h>
  34. #include <nt.h>
  35. #include <ntrtl.h>
  36. #include <nturtl.h>
  37. #include "windows.h"
  38. #include "zwinadv.h"
  39. #include "advapi.h"
  40. #include "api32prf.h"
  41. //
  42. // Include C file common to all the profiling dlls
  43. //
  44. #include "api32prf.c"