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.

181 lines
2.5 KiB

  1. // DCTHK.THK
  2. //
  3. // Created 31-Jul-96 [JonT]
  4. enablemapdirect3216 = true;
  5. #include "..\inc\types.def"
  6. typedef struct _VIDEO_OPEN_PARMS
  7. {
  8. DWORD dwSize; // sizeof (VIDEO_OPEN_PARMS)
  9. DWORD fccType; // 'vcap'
  10. DWORD fccComp; // unused
  11. DWORD dwVersion; // version of msvideo opening you
  12. DWORD dwFlags; // channel type
  13. DWORD dwError; // if open fails, this is why
  14. DWORD pV1Reserved; // Reserved (not pointer translated for now)
  15. DWORD pV2Reserved; // Reserved (")
  16. DWORD dnDevNode; // Devnode for PnP devices
  17. } VIDEO_OPEN_PARMS;
  18. typedef struct _PALETTENTRY
  19. {
  20. BYTE byRed;
  21. BYTE byGreen;
  22. BYTE byBlue;
  23. BYTE byFlags;
  24. } PALETTEENTRY;
  25. typedef struct _CAPTUREPALETTE
  26. {
  27. WORD wVersion;
  28. WORD wcEntries;
  29. PALETTEENTRY pe[256];
  30. } CAPTUREPALETTE;
  31. typedef HANDLE HVIDEO;
  32. typedef struct tagBITMAPINFOHEADER
  33. {
  34. DWORD biSize;
  35. LONG biWidth;
  36. LONG biHeight;
  37. WORD biPlanes;
  38. WORD biBitCount;
  39. DWORD biCompression;
  40. DWORD biSizeImage;
  41. LONG biXPelsPerMeter;
  42. LONG biYPelsPerMeter;
  43. DWORD biClrUsed;
  44. DWORD biClrImportant;
  45. } BITMAPINFOHEADER, *LPBITMAPINFOHEADER;
  46. HANDLE
  47. _OpenDriver(
  48. LPSTR lpDriverName,
  49. DWORD dwReserved,
  50. VIDEO_OPEN_PARMS* lpvop
  51. )
  52. {
  53. lpDriverName = input;
  54. lpvop = inout;
  55. }
  56. DWORD
  57. _CloseDriver(
  58. HANDLE h,
  59. DWORD lpReserved1,
  60. DWORD lpReserved2
  61. )
  62. {
  63. }
  64. DWORD
  65. _SendDriverMessage(
  66. HANDLE h,
  67. DWORD msg,
  68. DWORD param1,
  69. DWORD param2
  70. )
  71. {
  72. }
  73. BOOL
  74. _GetVideoPalette(
  75. HVIDEO hvideo,
  76. CAPTUREPALETTE* lpcp,
  77. DWORD dwcbSize
  78. )
  79. {
  80. lpcp = inout;
  81. }
  82. BOOL
  83. _InitializeExternalVideoStream(
  84. HVIDEO hvideo
  85. )
  86. {
  87. }
  88. BOOL
  89. _InitializeVideoStream(
  90. HVIDEO hvideo,
  91. DWORD dwMicroSecPerFrame,
  92. DWORD dwEvent
  93. )
  94. {
  95. }
  96. BOOL
  97. _UninitializeVideoStream(
  98. HVIDEO hvideo
  99. )
  100. {
  101. }
  102. DWORD
  103. _GetVideoFormatSize(
  104. HANDLE hvideo
  105. )
  106. {
  107. }
  108. BOOL
  109. _GetVideoFormat(
  110. HANDLE hvideo,
  111. LPBITMAPINFOHEADER lpbmih
  112. )
  113. {
  114. lpbmih = output;
  115. }
  116. BOOL
  117. _SetVideoFormat(
  118. HANDLE hvideoExtIn,
  119. HANDLE hvideoIn,
  120. LPBITMAPINFOHEADER lpbmih
  121. )
  122. {
  123. lpbmih = input;
  124. }
  125. WORD
  126. _AllocateLockableBuffer(
  127. DWORD dwSize
  128. )
  129. {
  130. }
  131. BOOL
  132. _LockBuffer(
  133. WORD wBuffer
  134. )
  135. {
  136. }
  137. void
  138. _UnlockBuffer(
  139. WORD wBuffer
  140. )
  141. {
  142. }
  143. void
  144. _FreeLockableBuffer(
  145. WORD wBuffer
  146. )
  147. {
  148. }
  149. void
  150. _CloseVxDHandle(
  151. DWORD pev
  152. )
  153. {
  154. }