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.

48 lines
1.5 KiB

  1. /****************************************************************************
  2. WINEX.H
  3. Owner: cslim
  4. Copyright (c) 1997-1999 Microsoft Corporation
  5. Windows API extension functions
  6. History:
  7. 19-JUL-1999 cslim Created
  8. *****************************************************************************/
  9. #if !defined (_WINEX_H__INCLUDED_)
  10. #define _WINEX_H__INCLUDED_
  11. // Global variable
  12. // Function declare
  13. PUBLIC BOOL WINAPI IsWinNT();
  14. PUBLIC BOOL WINAPI IsWinNT5orUpper() ;
  15. PUBLIC BOOL WINAPI IsMemphis();
  16. PUBLIC BOOL WINAPI IsWin95();
  17. PUBLIC BOOL WINAPI IsWin64();
  18. PUBLIC LPSTR OurGetModuleFileName(BOOL fFullPath);
  19. PUBLIC INT WINAPI OurLoadStringW(HINSTANCE hInstance, UINT uID, LPWSTR lpBuffer, INT nBufferMax);
  20. PUBLIC INT WINAPI OurLoadStringA(HINSTANCE hInst, INT uID, LPSTR lpBuffer, INT nBufferMax);
  21. PUBLIC HMENU WINAPI OurLoadMenu(HINSTANCE hInstance, LPCSTR lpMenuName);
  22. PUBLIC DLGTEMPLATE* WINAPI ExLoadDialogTemplate(LANGID lgid, HINSTANCE hInstance, LPCSTR pchTemplate);
  23. PUBLIC BOOL WINAPI OurGetMessage(LPMSG lpMsg, HWND hWnd, UINT wMsgFilterMin, UINT wMsgFilterMax);
  24. PUBLIC BOOL IsExplorerProcess();
  25. PUBLIC BOOL IsExplorer();
  26. __inline BOOL IsUnicodeUI(VOID)
  27. {
  28. return (IsWinNT() || IsMemphis());
  29. }
  30. /*---------------------------------------------------------------------------
  31. IsHighContrast
  32. ---------------------------------------------------------------------------*/
  33. inline
  34. BOOL IsHighContrastBlack()
  35. {
  36. // high contrast black
  37. return (GetSysColor(COLOR_3DFACE) == RGB(0,0,0));
  38. }
  39. #endif // _WINEX_H__INCLUDED_