mirror of https://github.com/lianthony/NT4.0
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
61 lines
1.3 KiB
/*++
|
|
|
|
Copyright (c) 1992 Microsoft Corporation
|
|
|
|
Module Name:
|
|
|
|
advprf.c
|
|
|
|
Abstract:
|
|
|
|
Apf profiling utilites.
|
|
These are utilies compiled into the profiling dll along
|
|
with the dummy api calls.
|
|
|
|
|
|
This dll exports apis with the same name as advapi32.dll with a 'Z' prefix.
|
|
|
|
The general form for an api call is:
|
|
|
|
ZAPI_NAME (Parameters)
|
|
{
|
|
- start the timer
|
|
- call API_NAME
|
|
- stop timer
|
|
- record the data
|
|
}
|
|
|
|
|
|
Author:
|
|
|
|
Revision History:
|
|
|
|
Nov 89, created by vaidy (apiprof.c)
|
|
Aug 90, cleanup and updated to work with windows, use new
|
|
generated header files and collect more info -- jamesg
|
|
Jun 91, modified to 32 bits and to work with zuser.c, to profile
|
|
user32.dll api calls -- t-philm
|
|
Jun 91, modified to work with multiple thread\process operation
|
|
by using shared memory segments -- t-phil
|
|
Dec 91, got rid of zhelp.dll -- RezaB
|
|
Jun 92, modified for user.dll to user32.dll name change -- RezaB
|
|
Jul 92, Made common api32prf.c file -- RezaB
|
|
Aug 92, Created for AdvApi32.dll -- RezaB
|
|
|
|
--*/
|
|
|
|
#include <string.h>
|
|
#include <io.h>
|
|
#include <nt.h>
|
|
#include <ntrtl.h>
|
|
#include <nturtl.h>
|
|
#include "windows.h"
|
|
#include "zwinadv.h"
|
|
#include "advapi.h"
|
|
#include "api32prf.h"
|
|
|
|
//
|
|
// Include C file common to all the profiling dlls
|
|
//
|
|
#include "api32prf.c"
|
|
|