Leaked source code of windows server 2003
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.

49 lines
1.6 KiB

  1. /**************************************************************************\
  2. * Module Name: callcf.c
  3. *
  4. * Copyright (c) 1985-91, Microsoft Corporation
  5. *
  6. * Template C file for server simple call table generation.
  7. *
  8. * History:
  9. * 4-Jan-1999 mzoran Created.
  10. *
  11. \**************************************************************************/
  12. #include "whwin32p.h"
  13. ASSERTNAME;
  14. #if DBG
  15. CHAR* apszSimpleCallNames[] = {
  16. "%%FOR_ALL_BUT_LAST%%",
  17. "%%FOR_LAST%%",
  18. NULL //For debugging
  19. };
  20. CONST ULONG ulMaxSimpleCall = (sizeof(apszSimpleCallNames) / sizeof(CHAR*))-1;
  21. #endif
  22. #if defined(WOW64DOPROFILE)
  23. WOW64SERVICE_PROFILE_TABLE_ELEMENT SimpleCallProfileElements[] = {
  24. {L"%%FOR_ALL_BUT_LAST%%",0,NULL,TRUE},
  25. {L"%%FOR_LAST%%",0,NULL,TRUE},
  26. {NULL,0,NULL,FALSE} //For debugging
  27. };
  28. #define DEFINE_SIMPLECALL_PROFILE_TABLE(apiname,type) \
  29. WOW64SERVICE_PROFILE_TABLE apiname##ProfileTable = { \
  30. NULL, NULL, SimpleCallProfileElements + SFI_BEGINTRANSLATE##type, \
  31. SFI_ENDTRANSLATE##type - SFI_BEGINTRANSLATE##type \
  32. };
  33. DEFINE_SIMPLECALL_PROFILE_TABLE(NtUserCallNoParam,NOPARAM)
  34. DEFINE_SIMPLECALL_PROFILE_TABLE(NtUserCallOneParam,ONEPARAM)
  35. DEFINE_SIMPLECALL_PROFILE_TABLE(NtUserCallHwnd,HWND)
  36. DEFINE_SIMPLECALL_PROFILE_TABLE(NtUserCallHwndOpt,HWNDOPT)
  37. DEFINE_SIMPLECALL_PROFILE_TABLE(NtUserCallHwndParam,HWNDPARAM)
  38. DEFINE_SIMPLECALL_PROFILE_TABLE(NtUserCallHwndLock,HWNDLOCK)
  39. DEFINE_SIMPLECALL_PROFILE_TABLE(NtUserCallHwndParamLock,HWNDPARAMLOCK)
  40. DEFINE_SIMPLECALL_PROFILE_TABLE(NtUserCallTwoParam,TWOPARAM)
  41. #endif