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.

70 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1985 - 1999, Microsoft Corporation
  3. Module Name:
  4. callproc.h
  5. Abstract:
  6. Private DialogProc call routines
  7. Copied from ldrthunk.asm
  8. Author:
  9. Joe Jones (joejo) 11-30-98
  10. Revision History:
  11. --*/
  12. #ifndef _CALLPROC_
  13. #define _CALLPROC_
  14. #if defined(_X86_)
  15. LRESULT
  16. InternalCallWinProc(
  17. WNDPROC proc,
  18. HWND hwnd,
  19. UINT message,
  20. WPARAM wParam,
  21. LPARAM lParam
  22. );
  23. /*
  24. * Bug 246472 - joejo
  25. * fixup all DDE Callbacks since some apps make their callbacks
  26. * C-Style instead of PASCAL.
  27. */
  28. HDDEDATA
  29. UserCallDDECallback(
  30. PFNCALLBACK pfnDDECallback,
  31. UINT wType,
  32. UINT wFmt,
  33. HCONV hConv,
  34. HSZ hsz1,
  35. HSZ hsz2,
  36. HDDEDATA hData,
  37. ULONG_PTR dwData1,
  38. ULONG_PTR dwData2
  39. );
  40. #else
  41. #define InternalCallWinProc(winproc, hwnd, message, wParam, lParam) \
  42. (winproc)(hwnd, message, wParam, lParam)
  43. #define UserCallDDECallback(pfnDDECallback, wType, wFmt, hConv, hsz1, hsz2, hData, dwData1, dwData2) \
  44. (pfnDDECallback)(wType, wFmt, hConv, hsz1, hsz2, hData, dwData1, dwData2)
  45. #endif
  46. PWND FASTCALL ValidateHwnd(HWND hwnd);
  47. LRESULT UserCallWinProc(PACTIVATION_CONTEXT pActCtx, WNDPROC pfn, HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam);
  48. #endif /* _CALLPROC_ */