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.

80 lines
2.2 KiB

  1. /*++
  2. Microsoft Windows
  3. Copyright (C) Microsoft Corporation, 1981 - 1999
  4. Module Name:
  5. global.h
  6. Abstract:
  7. Author:
  8. Rahul Thombre (RahulTh) 4/30/1998
  9. Revision History:
  10. 4/30/1998 RahulTh
  11. Created this module.
  12. --*/
  13. #ifndef __GLOBAL_H__
  14. #define __GLOBAL_H__
  15. //this is the size of the buffer used to store a generic error message
  16. //(IDS_NODESC_ERROR) which is displayed when FormatMessage fails. Do
  17. //not use this value to hardcode sizes of buffers passed to FormatMessage.
  18. //since the error messages just might exceed this value and cause FormatMessage
  19. //to fail. For FormatMessage, always use the FORMAT_MESSAGE_ALLOCATE_BUFFER
  20. //flag so that the system can allocate the buffer.
  21. #define ERROR_DESCRIPTION_LENGTH 256
  22. //application defined messages
  23. #define WM_APP_TRIGGER_UI (WM_APP+1)
  24. #define WM_APP_DISPLAY_UI (WM_APP+2)
  25. #define WM_APP_TRIGGER_SETTINGS (WM_APP+3)
  26. #define WM_APP_DISPLAY_SETTINGS (WM_APP+4)
  27. #define WM_APP_UPDATE_PROGRESS (WM_APP+5)
  28. #define WM_APP_SEND_COMPLETE (WM_APP+6)
  29. #define WM_APP_RECV_IN_PROGRESS (WM_APP+7)
  30. #define WM_APP_RECV_FINISHED (WM_APP+8)
  31. #define WM_APP_START_TIMER (WM_APP+9)
  32. #define WM_APP_KILL_TIMER (WM_APP+10)
  33. #define WM_APP_GET_PERMISSION (WM_APP+11)
  34. //global variables
  35. extern HINSTANCE g_hInstance;
  36. extern HWND g_hAppWnd;
  37. extern RPC_BINDING_HANDLE g_hIrRpcHandle; //Handle to the IrXfer service
  38. class CIrftpDlg; //forward declaration
  39. extern CIrftpDlg AppUI;
  40. class CController; //forward declaration
  41. extern CController* appController;
  42. //extern LONG g_lLinkOnDesktop;
  43. class CDeviceList; //forward declaration
  44. extern CDeviceList g_deviceList;
  45. extern TCHAR g_lpszDesktopFolder[MAX_PATH];
  46. extern TCHAR g_lpszSendToFolder[MAX_PATH];
  47. extern LONG g_lUIComponentCount;
  48. extern HWND g_hwndHelp;
  49. struct GLOBAL_STRINGS
  50. {
  51. wchar_t Close[50];
  52. wchar_t ErrorNoDescription[200];
  53. wchar_t CompletedSuccess[200];
  54. wchar_t ReceiveError[150];
  55. wchar_t Connecting[100];
  56. wchar_t RecvCancelled [100];
  57. };
  58. extern struct GLOBAL_STRINGS g_Strings;
  59. #endif //__GLOBAL_H__