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.

101 lines
2.1 KiB

  1. /*++
  2. Copyright (c) 1990-1998, Microsoft Corporation All rights reserved.
  3. Module Name:
  4. data.c
  5. Abstract:
  6. This module contains the global data for the Win32 common dialogs.
  7. Anything added here must have 'extern' added to privcomd.h.
  8. Revision History:
  9. --*/
  10. // precompiled headers
  11. #include "precomp.h"
  12. #pragma hdrstop
  13. //
  14. // Global Variables.
  15. //
  16. //
  17. // FileOpen
  18. //
  19. TCHAR szOEMBIN[] = TEXT("OEMBIN");
  20. TCHAR szNull[] = TEXT("");
  21. TCHAR szStar[] = TEXT("*");
  22. TCHAR szStarDotStar[12] = TEXT("*.*");
  23. TCHAR szDotStar[] = TEXT(".*");
  24. RECT g_rcDlg;
  25. TCHAR g_szInitialCurDir[MAX_PATH];
  26. //
  27. // Color
  28. //
  29. DWORD rgbClient;
  30. WORD gHue, gSat, gLum;
  31. HBITMAP hRainbowBitmap;
  32. BOOL bMouseCapture;
  33. WNDPROC lpprocStatic;
  34. SHORT nDriverColors;
  35. BOOL g_bUserPressedCancel;
  36. HWND hSave;
  37. WNDPROC qfnColorDlg = NULL;
  38. HDC hDCFastBlt = NULL;
  39. SHORT cyCaption, cyBorder, cyVScroll;
  40. SHORT cxVScroll, cxBorder, cxSize;
  41. SHORT nBoxHeight, nBoxWidth;
  42. //
  43. // dlgs.c
  44. //
  45. HINSTANCE g_hinst = NULL;
  46. BOOL bMouse; // system has a mouse
  47. BOOL bCursorLock;
  48. WORD wWinVer; // Windows version
  49. WORD wDOSVer; // DOS version
  50. UINT msgHELPA; // initialized using RegisterWindowMessage
  51. UINT msgHELPW; // initialized using RegisterWindowMessage
  52. HDC hdcMemory = HNULL; // temp DC used to draw bitmaps
  53. HBITMAP hbmpOrigMemBmp = HNULL; // bitmap originally selected into hdcMemory
  54. OFN_DISKINFO gaDiskInfo[MAX_DISKS];
  55. CRITICAL_SECTION g_csLocal;
  56. CRITICAL_SECTION g_csNetThread;
  57. DWORD dwNumDisks;
  58. HANDLE hMPR;
  59. HANDLE hMPRUI;
  60. HANDLE hLNDEvent;
  61. DWORD g_tlsiCurDlg; // TLS index used to get the ptr to current CURDLG struct
  62. // for each thread (see CURDLG in comdlg32.h)
  63. DWORD g_tlsiExtError; // ExtErrors are the most recent error per thread.
  64. DWORD g_tlsLangID; // TLS index used to get the current LangID for each thread.
  65. DWORD cbNetEnumBuf;
  66. LPTSTR gpcNetEnumBuf;
  67. #ifdef WX86
  68. PALLOCCALLBX86 pfnAllocCallBx86;
  69. #endif