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.

72 lines
2.8 KiB

  1. /****************************** mirport.h **********************************\
  2. * Module Name: mirport.h *
  3. * *
  4. * This file contains imported definitions and function prototypes for *
  5. * the Right-To-Left (RTL) Mirroring support API (NT5 and BiDi memphis *
  6. * *
  7. * This is a temp file and should be removed when the build is picking *
  8. * the latest winuser.h and wingdi.h from the NT5 tree *
  9. * *
  10. * Created: 16-Feb-1998 02:10:11 am *
  11. * Author: Mohamed Sadek [a-msadek] *
  12. * *
  13. * Copyright (c) 1998 Microsoft Corporation *
  14. \**************************************************************************/
  15. //winuser.h
  16. #ifndef WS_EX_NOINHERITLAYOUT
  17. #define WS_EX_NOINHERITLAYOUT 0x00100000L // Disable inheritence of mirroring by children
  18. #else
  19. #error "WS_EX_NOINHERITLAYOUT is already defined in winuser.h"
  20. #endif // WS_EX_NOINHERITLAYOUT
  21. #ifndef WS_EX_LAYOUTRTL
  22. #define WS_EX_LAYOUTRTL 0x00400000L // Right to left mirroring
  23. #else
  24. #error "WS_EX_LAYOUTRTL is already defined in winuser.h"
  25. #endif // WS_EX_LAYOUTRTL
  26. WINUSERAPI BOOL WINAPI GetProcessDefaultLayout(DWORD *pdwDefaultLayout);
  27. WINUSERAPI BOOL WINAPI SetProcessDefaultLayout(DWORD dwDefaultLayout);
  28. //wingdi.h
  29. #ifndef NOMIRRORBITMAP
  30. #define NOMIRRORBITMAP (DWORD)0x80000000 /* Do not Mirror the bitmap in this call*/
  31. #else
  32. #error "NOMIRRORBITMAP is already defined in wingdi.h"
  33. #endif // NOMIRRORBITMAP
  34. WINGDIAPI DWORD WINAPI SetLayout(HDC, DWORD);
  35. WINGDIAPI DWORD WINAPI GetLayout(HDC);
  36. #ifndef LAYOUT_RTL
  37. #define LAYOUT_RTL 0x00000001 // Right to left
  38. #else
  39. #error "LAYOUT_RTL is already defined in wingdi.h"
  40. #endif // LAYOUT_RTL
  41. #ifndef LAYOUT_BTT
  42. #define LAYOUT_BTT 0x00000002 // Bottom to top
  43. #else
  44. #error "LAYOUT_BTT is already defined in wingdi.h"
  45. #endif // LAYOUT_BTT
  46. #ifndef LAYOUT_VBH
  47. #define LAYOUT_VBH 0x00000004 // Vertical before horizontal
  48. #else
  49. #error "LAYOUT_VBH is already defined in wingdi.h"
  50. #endif // LAYOUT_VBH
  51. #define LAYOUT_ORIENTATIONMASK LAYOUT_RTL | LAYOUT_BTT | LAYOUT_VBH
  52. #ifndef LAYOUT_BITMAPORIENTATIONPRESERVED
  53. #define LAYOUT_BITMAPORIENTATIONPRESERVED 0x00000008
  54. #else
  55. #error "LAYOUT_BITMAPORIENTATIONPRESERVED is already defined in wingdi.h"
  56. #endif // LAYOUT_BITMAPORIENTATIONPRESERVED