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.

36 lines
1.3 KiB

  1. /****************************************************************************
  2. USEREX.H
  3. Owner: cslim
  4. Copyright (c) 1997-2000 Microsoft Corporation
  5. Windows User API extension functions
  6. History:
  7. 01-JUN-2000 cslim Ported from IME code
  8. 19-JUL-1999 cslim Created
  9. *****************************************************************************/
  10. #if !defined (_USEREX_H__INCLUDED_)
  11. #define _USEREX_H__INCLUDED_
  12. // Function declare
  13. extern INT WINAPI LoadStringExW(HINSTANCE hInstance, UINT uID, LPWSTR lpBuffer, INT nBufferMax);
  14. extern INT WINAPI LoadStringExA(HINSTANCE hInst, INT uID, LPSTR lpBuffer, INT nBufferMax);
  15. extern HMENU WINAPI LoadMenuEx(HINSTANCE hInstance, LPCSTR lpMenuName);
  16. extern DLGTEMPLATE* WINAPI LoadDialogTemplateEx(LANGID lgid, HINSTANCE hInstance, LPCSTR pchTemplate);
  17. extern BOOL WINAPI OurGetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax);
  18. extern BOOL WINAPI IsWin64();
  19. /*---------------------------------------------------------------------------
  20. IsHighContrast
  21. ---------------------------------------------------------------------------*/
  22. inline
  23. BOOL IsHighContrastBlack()
  24. {
  25. // high contrast black
  26. return (GetSysColor(COLOR_3DFACE) == RGB(0,0,0));
  27. }
  28. #endif // _USEREX_H__INCLUDED_