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.

52 lines
1.4 KiB

  1. #define IMSG_%%FOR_ALL%% %%INDEX%%
  2. #ifndef PROTOS_ONLY
  3. CONST FNSCSENDMESSAGE gapfnScSendMessage[] = {
  4. MSGFN(%%FOR_ALL_BUT_LAST%%),
  5. MSGFN(%%FOR_LAST%%)
  6. };
  7. CONST INT gcapfnScSendMessage = ARRAY_SIZE(gapfnScSendMessage);
  8. #endif
  9. #ifdef _USERK_
  10. #define MSGCALLFN(func) NtUserfn ## func
  11. typedef LRESULT (APIENTRY *FNMESSAGECALL)(PWND, UINT, WPARAM, LPARAM,
  12. ULONG_PTR, DWORD, BOOL);
  13. #define MESSAGECALLPROTO(func) \
  14. LRESULT CALLBACK MSGCALLFN(func)( \
  15. PWND pwnd, UINT msg, WPARAM wParam, LPARAM lParam, \
  16. ULONG_PTR xParam, DWORD xpfnWndProc, BOOL bAnsi)
  17. MESSAGECALLPROTO(%%FOR_ALL%%);
  18. /*
  19. * Some function names don't exist in the kernel so override them.
  20. */
  21. #define NtUserfnINDESTROYCLIPBRD NtUserfnDWORD
  22. #define NtUserfnEMGETSEL NtUserfnOPTOUTLPDWORDOPTOUTLPDWORD
  23. #define NtUserfnEMSETSEL NtUserfnDWORD
  24. #define NtUserfnINWPARAMDBCSCHAR NtUserfnDWORD
  25. #define NtUserfnCBGETEDITSEL NtUserfnOPTOUTLPDWORDOPTOUTLPDWORD
  26. #define NtUserfnPOWERBROADCAST NtUserfnDWORD
  27. #define NtUserfnLOGONNOTIFY NtUserfnKERNELONLY
  28. #define NtUserfnINLPKDRAWSWITCHWND NtUserfnKERNELONLY
  29. #ifndef PROTOS_ONLY
  30. CONST FNMESSAGECALL gapfnMessageCall[] = {
  31. MSGCALLFN(%%FOR_ALL_BUT_LAST%%),
  32. MSGCALLFN(%%FOR_LAST%%)
  33. };
  34. #else
  35. extern CONST FNMESSAGECALL gapfnMessageCall[];
  36. #endif
  37. #endif