NETWATCH.RC
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:5k
源码类别:

Windows编程

开发平台:

Visual C++

  1. #include <windows.h>
  2. #include "netwatch.h"
  3. #include "rcids.h"
  4. #include "netwatch.rcv"
  5. #include "netwatch.dlg"
  6. IDD_ICONOFF     ICON off.ico
  7. IDD_ICONON      ICON on.ico
  8. IDB_LB          BITMAP "filebmps.bmp"
  9. IDD_MENUPROPS MENU
  10. {
  11. POPUP "&Connection"
  12. {
  13. MENUITEM "&Properties...",                      IDM_PROPERTIES
  14. MENUITEM "Clo&se ResourcetDel",                IDM_DELETERESOURCE
  15. }
  16. }
  17. IDD_MENU MENU
  18. {
  19. POPUP "&Connection"
  20. {
  21. MENUITEM "&Properties...",                      IDM_PROPERTIES
  22. MENUITEM "Add &Computer...tIns",                    IDM_SELECTCOMPUTER
  23. MENUITEM "Clo&se ResourcetDel",                IDM_DELETERESOURCE
  24. #ifdef DOSHAREMANAGE
  25. MENUITEM SEPARATOR
  26. MENUITEM "&Manage Shares...tCtrl+S",           IDM_SHAREMANAGE
  27. #endif
  28. MENUITEM SEPARATOR
  29. MENUITEM "Connect &Network Drive...", IDM_CONNECTDRIVE
  30. MENUITEM "&Disconnect Network Drive...", IDM_DISCONNECTDRIVE
  31. MENUITEM SEPARATOR
  32. MENUITEM "E&xit",                               IDM_EXIT
  33. }
  34. POPUP "&Options"
  35. {
  36. MENUITEM "Show &Open FilestCtrl+O",            IDM_SHOWFILES
  37. MENUITEM "Show &Hidden SharestCtrl+H",         IDM_SHOWHIDDEN
  38. MENUITEM "Show &In Use Shares OnlytCtrl+I",    IDM_SHOWINUSE
  39. MENUITEM SEPARATOR
  40. MENUITEM "&No Menu Bar and TitletCtrl+N",      IDM_NOMENUBAR
  41. MENUITEM "&Always on ToptCtrl+A",              IDM_TOPMOST
  42. MENUITEM SEPARATOR
  43. MENUITEM "&RefreshtF5",                        IDM_REFRESH
  44. MENUITEM SEPARATOR
  45. MENUITEM "A&bout Net Watch..."  IDM_ABOUT
  46. }
  47. }
  48. IDD_ACCL ACCELERATORS
  49. {
  50. VK_F5,      IDM_REFRESH, VIRTKEY
  51. "^C",       IDM_CONNECTDRIVE
  52. "^D",       IDM_DISCONNECTDRIVE
  53. "^O",       IDM_SHOWFILES
  54. "^H",       IDM_SHOWHIDDEN
  55. "^I",       IDM_SHOWINUSE
  56. "^N",       IDM_NOMENUBAR
  57. "^A",       IDM_TOPMOST
  58. #ifdef DOSHAREMANAGE
  59. "^S", IDM_SHAREMANAGE
  60. #endif
  61. VK_RETURN,  IDM_PROPERTIES, VIRTKEY, ALT
  62. }
  63. STRINGTABLE
  64. {
  65. IDS_APPNAME,            TEXT("Net Watch")
  66. IDS_PLACEMENT, TEXT("Placement")
  67. IDS_KEY, TEXT("Software\Microsoft\NetWatch")
  68. IDS_TIMERINTERVAL, TEXT("TimerInterval")
  69. IDS_TOPMOST, TEXT("TopMost")
  70. IDS_HIDETITLE, TEXT("HideTitle")
  71. IDS_MENUFLAGS, TEXT("MenuFlags")
  72. IDS_SERVERS, TEXT("Servers")
  73. IDS_ERRENUMFILES, TEXT("Error enumerating files")
  74. IDS_ERRENUMUSERS, TEXT("Error enumerating users")
  75. IDS_ERRENUMSHARES, TEXT("Error enumerating shares")
  76. IDS_ERRMEMORY, TEXT("Insufficient memory to complete the operation.")
  77. IDS_ERRWFW, TEXT("Net Watch cannot view the selected computer. This may be because the selected computer is not running Windows NT.")
  78. IDS_ERRACCESS, TEXT("You do not have permissions to view the users on %s. Do you want to just view the shares?")
  79. IDS_ERRADDCOMPUTER, TEXT("Could not add %s. ")
  80. IDS_ERRACTION, TEXT("The action could not be completed. ");
  81. IDS_HIDDEN+0, TEXT("No")
  82. IDS_HIDDEN+1, TEXT("Yes")
  83. IDS_GUEST, TEXT(" (Guest)")
  84. IDS_NOLIMIT, TEXT("Unlimited")
  85. IDS_FMTUSER, TEXT("%s from \\%s");
  86. IDS_DELETERESOURCE+TYPE_COMPUTER, TEXT("&Remove ComputertDel")
  87. IDS_DELETERESOURCE+TYPE_SHARE, TEXT("&Stop SharingtDel")
  88. IDS_DELETERESOURCE+TYPE_USER, TEXT("Di&sconnecttDel")
  89. IDS_DELETERESOURCE+TYPE_FILE, TEXT("Clo&se ResourcetDel")
  90. IDS_AREYOUSURE+TYPE_FILE, TEXT("Forcing %s to close %s may result in loss of data.  Do you want to continue?")
  91. IDS_AREYOUSURE+TYPE_USER, TEXT("The selected user has open resources.  Disconnecting the user may cause loss of data.  Are you sure you want to disconnect %s from all connected resources?")
  92. IDS_AREYOUSURE+TYPE_SHARE, TEXT("At least one user is connected to this shared directory.  Loss of data may result if you stop sharing this directory.  Do you want to continue?")
  93. IDS_AREYOUSUREDISUSER, TEXT("Are you sure you want to disconnect %s from all connected resources?")
  94. IDS_SHAREPROPS+0, TEXT("Share Name:")         // bitmap #0 (folder)
  95. IDS_SHAREPROPS+1, TEXT("Path:")
  96. IDS_SHAREPROPS+2, TEXT("Comment:")
  97. IDS_SHAREPROPS+3, TEXT("User Limit:")
  98. IDS_SHAREPROPS+4, TEXT("Connected Users:")
  99. IDS_SHAREPROPS+15, TEXT("Share")
  100. IDS_SERVERPROPS+0, TEXT("Server Name:")
  101. IDS_SERVERPROPS+1, TEXT("Comment:");
  102. IDS_SERVERPROPS+2, TEXT("UserPath:");
  103. IDS_SERVERPROPS+3, TEXT("Version:");
  104. IDS_SERVERPROPS+4, TEXT("Server hidden:");
  105. IDS_SERVERPROPS+15, TEXT("Server")
  106. IDS_FILEPROPS+0, TEXT("File:")               // bitmap #2 (file)
  107. IDS_FILEPROPS+1, TEXT("Opened By:")          // bitmap #7 (user)
  108. IDS_FILEPROPS+2, TEXT("For:")                // bitmap #3 or #4 (read/write)
  109. IDS_FILEPROPS+3, TEXT("Locks:")
  110. IDS_FILEPROPS+13, TEXT("Write")
  111. IDS_FILEPROPS+14, TEXT("Read")
  112. IDS_FILEPROPS+15, TEXT("File")
  113. IDS_USERPROPS+0, TEXT("User Logged On:")     // bitmap #7 (user)
  114. IDS_USERPROPS+1, TEXT("From Computer:")      // bitmap #1 (computer)
  115. IDS_USERPROPS+2, TEXT("To Share Name:")      // bitmap #0 (folder)
  116. IDS_USERPROPS+3, TEXT("Connected Since:")
  117. IDS_USERPROPS+4, TEXT("Idle Time:")
  118. IDS_USERPROPS+5, TEXT("Open Files:")
  119. IDS_USERPROPS+15, TEXT("User")
  120. }