Source code of Windows XP (NT5)
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.

90 lines
2.3 KiB

  1. /*++
  2. Copyright (c) 2000 Microsoft Corporation
  3. Module Name:
  4. Rcontrol Main
  5. Abstract:
  6. This includes WinMain and the WndProc for the system tray icon.
  7. Author:
  8. Marc Reyhner 7/5/2000
  9. --*/
  10. #ifndef __RCONTROL_H__
  11. #define __RCONTROL_H__
  12. #include <guiddef.h>
  13. //
  14. // Debug tracing headers
  15. //
  16. //
  17. // Disable tracing for free builds.
  18. //
  19. #if DBG
  20. #define TRC_CL TRC_LEVEL_DBG
  21. #define TRC_ENABLE_PRF
  22. #else
  23. #define TRC_CL TRC_LEVEL_DIS
  24. #undef TRC_ENABLE_PRF
  25. #endif
  26. //
  27. // Required for DCL Tracing
  28. //
  29. #define OS_WIN32
  30. #define TRC_GROUP TRC_GROUP_NETWORK
  31. #define DEBUG_MODULE DBG_MOD_ANY
  32. #include <adcgbase.h>
  33. #include <at120ex.h>
  34. #include <atrcapi.h>
  35. #include <adcgbase.h>
  36. #include <at120ex.h>
  37. class CDirectPlayConnection;
  38. // This is a pointer to our instance so that we can pass it off to some
  39. // of the menu functions.
  40. extern HINSTANCE g_hInstance;
  41. // This is the structure for setting parameters for the taskbar icon. We keep one copy
  42. // of it around that we can pass in to Shell_NotifyIcon
  43. extern NOTIFYICONDATA g_iconData;
  44. // This is a global pointer to the direct play connection so that
  45. // the server can close the DP connection on connect.
  46. extern CDirectPlayConnection *g_DpConnection;
  47. // This is the max length of a string to be loaded from the appliction
  48. // string table
  49. #define MAX_STR_LEN 1024
  50. // This is the string loaded when the requested resource can't be found
  51. #define STR_RES_MISSING (TEXT("Error: string resource missing"))
  52. //
  53. // This will load the given string from the applications string table. If
  54. // it is longer than MAX_STR_LEN it is truncated. lpBuffer should be at least
  55. // MAX_STR_LEN characters long. If the string does not exist we return 0
  56. // and set the buffer to STR_RES_MISSING.
  57. //
  58. INT LoadStringSimple(UINT uID, LPTSTR lpBuffer);
  59. DEFINE_GUID(DIID__ISAFRemoteDesktopClientEvents,0x327A98F6,0xB337,0x43B0,0xA3,0xDE,0x40,0x8B,0x46,0xE6,0xC4,0xCE);
  60. DEFINE_GUID(IID_ISAFRemoteDesktopSession,0x9D8C82C9,0xA89F,0x42C5,0x8A,0x52,0xFE,0x2A,0x77,0xB0,0x0E,0x82);
  61. DEFINE_GUID(IID_ISAFRemoteDesktopServerHost,0xC9CCDEB3,0xA3DD,0x4673,0xB4,0x95,0xC1,0xC8,0x94,0x94,0xD9,0x0E);
  62. DEFINE_GUID(CLSID_SAFRemoteDesktopServerHost,0x5EA6F67B,0x7713,0x45F3,0xB5,0x35,0x0E,0x03,0xDD,0x63,0x73,0x45);
  63. DEFINE_GUID(DIID__ISAFRemoteDesktopSessionEvents,0x434AD1CF,0x4054,0x44A8,0x93,0x3F,0xC6,0x98,0x89,0xCA,0x22,0xD7);
  64. #endif