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.

84 lines
1.9 KiB

  1. /*++
  2. Copyright (C) Microsoft Corporation, 1994 - 1999
  3. Module Name:
  4. rpcperf.h
  5. Abstract:
  6. Header file shared by performance tests. It is also used
  7. as a pre-compiled header on NT.
  8. Author:
  9. Mario Goertzel (mariogo) 01-Apr-1994
  10. Revision History:
  11. --*/
  12. #ifdef WIN32
  13. #include <nt.h>
  14. #include <ntrtl.h>
  15. #include <nturtl.h>
  16. #include <windows.h>
  17. #endif
  18. #ifdef WIN
  19. #include <windows.h>
  20. #endif
  21. #include <rpc.h>
  22. #include <stdio.h>
  23. #include <stdlib.h>
  24. #pragma hdrstop
  25. // Common functions shared by RPC development performance tests
  26. extern char *Endpoint;
  27. extern char *Protseq;
  28. extern char *NetworkAddr;
  29. extern unsigned long Iterations;
  30. extern unsigned long Interval;
  31. extern unsigned int MinThreads;
  32. extern char *AuthnLevelStr;
  33. extern unsigned long AuthnLevel;
  34. extern long Options[7];
  35. extern char *LogFileName;
  36. extern unsigned int OutputLevel;
  37. extern int AppendOnly;
  38. extern RPC_NOTIFICATION_TYPES NotificationType;
  39. extern char *ServerPrincipalName;
  40. extern int TlsIndex;
  41. extern void ParseArgv(int, char **);
  42. extern void PauseForUser(char *);
  43. extern void FlushProcessWorkingSet();
  44. extern void StartTime();
  45. extern unsigned long FinishTiming();
  46. extern void EndTime(char *);
  47. extern void ApiError(char *, unsigned long);
  48. extern void Dump(char *,...);
  49. extern void Verbose(char *, ...);
  50. extern void Trace(char *,...);
  51. #define printf Dump
  52. #define dbgprintf Trace
  53. #define CHECK_STATUS(status, string) if (status) { \
  54. printf("%s failed - %d (%08x)\n", (string), (status), (status)); \
  55. exit(1); \
  56. } else dbgprintf("%s okay\n", (string));
  57. #define PERF_TEST_NOTIFY (WM_USER + 101)
  58. #define WMSG_RPCMSG (WM_USER + 'w'+'m'+'s'+'g')
  59. #define WMSG_SCAVENGE (WMSG_RPCMSG + 1)
  60. void RunMessageLoop(HWND hWnd);
  61. void PumpMessage(void);
  62. HWND CreateSTAWindow(char *lpszWinName);
  63. void InitAllocator(void);