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.

235 lines
7.2 KiB

  1. /**************************************************************************
  2. *
  3. * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  4. * KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  5. * IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  6. * PURPOSE.
  7. *
  8. * Copyright (c) 1992 - 1995 Microsoft Corporation. All Rights Reserved.
  9. *
  10. **************************************************************************/
  11. /****************************************************************************
  12. *
  13. * vidcap.rc: Resource definitions
  14. *
  15. * Vidcap32 Source code
  16. *
  17. ***************************************************************************/
  18. #include <windows.h>
  19. #include "vidcap.h"
  20. #include <ntverp.h>
  21. #define VER_FILETYPE VFT_APP
  22. #define VER_FILESUBTYPE VFT2_UNKNOWN
  23. #define VER_FILEDESCRIPTION_STR "Microsoft\256 Video Capture Utility"
  24. #define VER_INTERNALNAME_STR "vidcap32.exe"
  25. #define VER_ORIGINALFILENAME_STR "vidcap32.exe"
  26. #include <common.ver>
  27. // Dialog definitions...
  28. #include "vidcap.dlg"
  29. // Icon specified...
  30. vidcapIcon ICON "vidcap.ico"
  31. IDBMP_TOOLBAR BitMap "buttons.bmp"
  32. // Now comes the menu...
  33. vidcapMenu MENU
  34. BEGIN
  35. POPUP "&File"
  36. BEGIN
  37. MENUITEM "&Load Palette...", IDM_F_LOADPALETTE
  38. MENUITEM "&Set Capture File...", IDM_F_SETCAPTUREFILE
  39. MENUITEM "&Allocate File Space...", IDM_F_ALLOCATESPACE
  40. MENUITEM SEPARATOR
  41. MENUITEM "Save &Captured Video As...", IDM_F_SAVEVIDEOAS
  42. MENUITEM "Save &Palette...", IDM_F_SAVEPALETTE
  43. MENUITEM "Save Single &Frame..." IDM_F_SAVEFRAME
  44. MENUITEM SEPARATOR
  45. MENUITEM "Pla&y Captured Video...", IDM_F_EDITVIDEO
  46. MENUITEM SEPARATOR
  47. MENUITEM "E&xit\tAlt+F4", IDM_F_EXIT
  48. END
  49. POPUP "&Edit"
  50. BEGIN
  51. MENUITEM "&Copy\tCtrl+C", IDM_E_COPY
  52. MENUITEM "Paste &Palette", IDM_E_PASTEPALETTE
  53. MENUITEM SEPARATOR
  54. MENUITEM "Pre&ferences...", IDM_E_PREFS
  55. END
  56. POPUP "&Options"
  57. BEGIN
  58. MENUITEM "&Audio Format...", IDM_O_AUDIOFORMAT
  59. MENUITEM SEPARATOR
  60. MENUITEM "Video &Format...", IDM_O_VIDEOFORMAT
  61. MENUITEM "Video &Source...", IDM_O_VIDEOSOURCE
  62. MENUITEM "Video &Display...", IDM_O_VIDEODISPLAY
  63. MENUITEM SEPARATOR
  64. MENUITEM "&Compression...", IDM_O_CHOOSECOMPRESSOR
  65. MENUITEM SEPARATOR
  66. MENUITEM "&Preview", IDM_O_PREVIEW, CHECKED
  67. MENUITEM "&Overlay", IDM_O_OVERLAY
  68. MENUITEM SEPARATOR
  69. END
  70. POPUP "&Capture"
  71. BEGIN
  72. MENUITEM "&Single Frame", IDM_C_CAPTUREFRAME
  73. MENUITEM "&Frames...", IDM_C_CAPSEL
  74. MENUITEM "&Video...", IDM_C_CAPTUREVIDEO
  75. MENUITEM "&Palette...", IDM_C_PALETTE
  76. #ifdef DEBUG
  77. MENUITEM "&Capture Test Loop!", IDM_C_TEST
  78. #endif
  79. END
  80. POPUP "&Help"
  81. BEGIN
  82. MENUITEM "&Contents\tF1", IDM_H_CONTENTS
  83. MENUITEM "&About...", IDM_H_ABOUT
  84. END
  85. END
  86. // Here are the Accelerators...
  87. vidcapApp ACCELERATORS
  88. BEGIN
  89. "^C", IDM_E_COPY
  90. END
  91. // And string table at last...
  92. STRINGTABLE
  93. BEGIN
  94. // menu help strings
  95. /* File Menu */
  96. //
  97. IDM_FILE "Set capture file, save files or exit application"
  98. IDM_F_EXIT "Quit VidCap"
  99. IDM_F_LOADPALETTE "Load a previously saved palette for use in capture"
  100. IDM_F_SETCAPTUREFILE "Select or create a file to capture the video to"
  101. IDM_F_ALLOCATESPACE "Adjust the amount of disk space allocated to the capture file"
  102. IDM_F_EDITVIDEO "Play the last capture file"
  103. IDM_F_SAVEVIDEOAS "Save captured video under a new name"
  104. IDM_F_SAVEPALETTE "Save the current palette"
  105. IDM_F_SAVEFRAME "Save a single frame as a bitmap"
  106. /* Edit Menu */
  107. IDM_EDIT "Copy to clipboard or paste palette"
  108. IDM_E_COPY "Copy the displayed frame to the clipboard"
  109. IDM_E_PASTEPALETTE "Paste palette from the clipboard"
  110. IDM_E_PREFS "Customize the VidCap window"
  111. /* Options Menu */
  112. IDM_OPTIONS "Setup audio and video for capture"
  113. IDM_O_AUDIOFORMAT "Set the audio characteristics"
  114. IDM_O_VIDEOSOURCE "Select the video source"
  115. IDM_O_VIDEOFORMAT "Set the image dimensions and format"
  116. IDM_O_VIDEODISPLAY "Select image to display on external monitor"
  117. IDM_O_PREVIEW "Toggle preview video"
  118. IDM_O_OVERLAY "Toggle overlay video"
  119. /* Capture Menu */
  120. IDM_CAPTURE "Capture frames, palette or video sequence"
  121. IDM_C_CAPTUREFRAME "Capture a single frame"
  122. IDM_C_CAPSEL "Capture selected frames"
  123. IDM_C_CAPTUREVIDEO "Capture a video sequence"
  124. IDM_C_PALETTE "Capture a palette"
  125. /* Help Menu */
  126. IDM_HELP "Get help"
  127. IDM_H_CONTENTS "Display Help Index"
  128. IDM_H_ABOUT "Displays program information"
  129. IDM_SYSMENU "Move, size, or close the application window"
  130. /* System menus */
  131. SC_RESTORE "Restore window to previous size"
  132. SC_SIZE "Change the window size"
  133. SC_MOVE "Move the window"
  134. SC_MINIMIZE "Reduce the window to an icon"
  135. SC_MAXIMIZE "Enlarge the window to full size"
  136. SC_CLOSE "Exit VidCap"
  137. SC_TASKLIST "Switch to a new task"
  138. IDS_APP_TITLE, "VidCap"
  139. IDS_ERR_CREATE_WINDOW, "Window creation failed!"
  140. IDS_ERR_REGISTER_CLASS, "Error registering window class"
  141. IDS_ERR_FIND_HARDWARE, "No capture device found."
  142. IDS_ERR_CANT_PREALLOC, "Failed to pre-allocate capture file space"
  143. IDS_ERR_MEASUREFREEDISK, "Could not measure free disk space"
  144. IDS_ERR_SIZECAPFILE, "Could not measure size of capture file"
  145. IDS_ERR_RECONNECTDRIVER, "Could not reconnect to driver"
  146. IDS_ERR_CMDLINE, "Command line error: usage: vidcap {-d<DeviceIndex>}"
  147. IDS_WARN_DEFAULT_PALETTE, "Warning: Using default palette."
  148. IDS_MCI_CONTROL_ERROR, "Error: Unable to access MCI device."
  149. IDS_ERR_ACCESS_SOUNDDRIVER, "Error accessing sound device"
  150. IDS_ERR_VIDEDIT, "Unable to play this file"
  151. IDS_TITLE_SETCAPTUREFILE, "Set Capture File"
  152. IDS_TITLE_SAVEAS, "Save Captured Video As"
  153. IDS_TITLE_LOADPALETTE, "Load Palette"
  154. IDS_TITLE_SAVEPALETTE, "Save Palette"
  155. IDS_TITLE_SAVEDIB, "Save Single Frame"
  156. IDS_PROMPT_CAPFRAMES, "Select Capture to capture an image to %s"
  157. IDS_STATUS_NUMFRAMES, "%d Frames"
  158. IDS_CAP_CLOSE, "C&lose"
  159. IDC_toolbarSETFILE "Set the capture file"
  160. IDC_toolbarEDITCAP "Edit the captured video file"
  161. IDC_toolbarLIVE "Toggle preview video"
  162. IDC_toolbarCAPFRAME "Capture a single frame"
  163. IDC_toolbarCAPSEL "Capture selected frames"
  164. IDC_toolbarCAPAVI "Capture a video sequence"
  165. IDC_toolbarCAPPAL "Capture a palette"
  166. IDC_toolbarOVERLAY "Toggle overlay video"
  167. IDS_CAPPAL_CLOSE "&Close"
  168. IDS_CAPPAL_STATUS "%d frames"
  169. IDS_CAPPAL_STOP "&Stop"
  170. IDS_CAPPAL_START "&Start"
  171. IDS_CAP_RTL "0=rtl"
  172. END
  173. ID_FILTER_AVI RCDATA
  174. BEGIN
  175. "Microsoft AVI\0"
  176. "*.avi\0"
  177. "\0"
  178. END
  179. ID_FILTER_PALETTE RCDATA
  180. BEGIN
  181. "Microsoft Palette\0"
  182. "*.pal\0"
  183. "\0"
  184. END
  185. ID_FILTER_DIB RCDATA
  186. BEGIN
  187. "Microsoft Windows DIB\0"
  188. "*.dib;*.bmp\0"
  189. "\0"
  190. END
  191. /*
  192. * ACCELERATORS
  193. */
  194. VIDCAP ACCELERATORS PRELOAD
  195. BEGIN
  196. /* New Accelerator */
  197. "^C", IDM_E_COPY
  198. /* Old Accelerator for compatability */
  199. VK_INSERT, IDM_E_COPY, VIRTKEY, CONTROL
  200. VK_F1, IDM_H_CONTENTS, VIRTKEY
  201. END