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.

26 lines
672 B

  1. #ifndef UTILS_THUNKS_H__INCLUDED
  2. #define UTILS_THUNKS_H__INCLUDED
  3. #ifdef _THUNK
  4. #define BEGIN_ARGS_DECLARATION {
  5. #define END_ARGS_DECLARATION }
  6. #define ARG_IN(par) par = input
  7. #define ARG_OUT(par) par = output
  8. #define ARG_INOUT(par) par = inout
  9. #define FAULT_ERROR_CODE(val) faulterrorcode = val
  10. #else
  11. #define BEGIN_ARGS_DECLARATION ;
  12. #define END_ARGS_DECLARATION
  13. #define ARG_IN(par)
  14. #define ARG_OUT(par)
  15. #define ARG_INOUT(par)
  16. #define FAULT_ERROR_CODE(val)
  17. #endif //_THUNK
  18. #ifdef _THUNK
  19. #define WINAPI
  20. #define FAR
  21. #define BOOL bool
  22. #endif //_THUNK
  23. #endif //UTILS_THUNKS_H__INCLUDED