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.

56 lines
1.4 KiB

  1. /**************************************************************************\
  2. * Module Name: dipscb.tpl
  3. *
  4. * Template C file for server dispatch generation.
  5. *
  6. * Copyright (c) Microsoft Corp. 1990 All Rights Reserved
  7. *
  8. * Created: 10-Dec-90
  9. *
  10. * History:
  11. * 10-Dec-90 created by SMeans
  12. *
  13. \**************************************************************************/
  14. #include "precomp.h"
  15. #pragma hdrstop
  16. #define __fnINWPARAMCHAR __fnDWORD
  17. #ifdef FE_SB
  18. /*
  19. * fnGETDBCSTEXTLENGTHS uses same code as fnGETTEXTLENGTHS for
  20. * sender/receiver of forward to kernel and receiver of callback
  21. * to client. Only sender of callback to client uses different code.
  22. * (see inc\ntcb.h SfnGETDBCSTEXTLENGTHS)
  23. */
  24. #define __fnGETDBCSTEXTLENGTHS __fnGETTEXTLENGTHS
  25. /*
  26. * fnEMGETSEL, __fnSETSEL, __fnGBGETEDITSEL
  27. */
  28. #define __fnEMGETSEL __fnOPTOUTLPDWORDOPTOUTLPDWORD
  29. #define __fnEMSETSEL __fnDWORD
  30. #define __fnCBGETEDITSEL __fnOPTOUTLPDWORDOPTOUTLPDWORD
  31. #endif // FE_SB
  32. typedef DWORD (*PNT_CALLBACK_ROUTINE)(
  33. IN PCAPTUREBUF CallbackMsg
  34. );
  35. DWORD __%%FOR_ALL%%(PCAPTUREBUF CallbackMsg);
  36. CONST PNT_CALLBACK_ROUTINE apfnDispatch[] = {
  37. __%%FOR_ALL_BUT_LAST%%,
  38. __%%FOR_LAST%%
  39. };
  40. #if DBG
  41. PCSZ apszDispatchNames[] = {
  42. "%%FOR_ALL_BUT_LAST%%",
  43. "%%FOR_LAST%%"
  44. };
  45. CONST ULONG ulMaxApiIndex = sizeof(apfnDispatch) / sizeof(PNT_CALLBACK_ROUTINE);
  46. #endif