|
楼主 |
发表于 2013-3-23 03:41
|
显示全部楼层
本帖最后由 liucqa 于 2013-3-23 03:46 编辑
续上楼
- Function capSetCallbackOnError(ByVal lwnd As Long, ByVal lpProc As Long) As Boolean
- capSetCallbackOnError = SendMessage(lwnd, WM_CAP_SET_CALLBACK_ERROR, 0, lpProc)
- End Function
- Function capSetCallbackOnStatus(ByVal lwnd As Long, ByVal lpProc As Long) As Boolean
- capSetCallbackOnStatus = SendMessage(lwnd, WM_CAP_SET_CALLBACK_STATUS, 0, lpProc)
- End Function
- Function capSetCallbackOnYield(ByVal lwnd As Long, ByVal lpProc As Long) As Boolean
- capSetCallbackOnYield = SendMessage(lwnd, WM_CAP_SET_CALLBACK_YIELD, 0, lpProc)
- End Function
- Function capSetCallbackOnFrame(ByVal lwnd As Long, ByVal lpProc As Long) As Boolean
- capSetCallbackOnFrame = SendMessage(lwnd, WM_CAP_SET_CALLBACK_FRAME, 0, lpProc)
- End Function
- Function capSetCallbackOnVideoStream(ByVal lwnd As Long, ByVal lpProc As Long) As Boolean
- capSetCallbackOnVideoStream = SendMessage(lwnd, WM_CAP_SET_CALLBACK_VIDEOSTREAM, 0, lpProc)
- End Function
- Function capSetCallbackOnWaveStream(ByVal lwnd As Long, ByVal lpProc As Long) As Boolean
- capSetCallbackOnWaveStream = SendMessage(lwnd, WM_CAP_SET_CALLBACK_WAVESTREAM, 0, lpProc)
- End Function
- Function capSetCallbackOnCapControl(ByVal lwnd As Long, ByVal lpProc As Long) As Boolean
- capSetCallbackOnCapControl = SendMessage(lwnd, WM_CAP_SET_CALLBACK_CAPCONTROL, 0, lpProc)
- End Function
- Function capSetUserData(ByVal lwnd As Long, ByVal lUser As Long) As Boolean
- capSetUserData = SendMessage(lwnd, WM_CAP_SET_USER_DATA, 0, lUser)
- End Function
- Function capGetUserData(ByVal lwnd As Long) As Long
- capGetUserData = SendMessage(lwnd, WM_CAP_GET_USER_DATA, 0, 0)
- End Function
- Function capDriverConnect(ByVal lwnd As Long, ByVal I As Integer) As Long
- capDriverConnect = SendMessage(lwnd, WM_CAP_DRIVER_CONNECT, I, 0)
- End Function
- Function capDriverDisconnect(ByVal lwnd As Long) As Boolean
- capDriverDisconnect = SendMessage(lwnd, WM_CAP_DRIVER_DISCONNECT, 0, 0)
- End Function
- Function capDriverGetName(ByVal lwnd As Long, ByVal szName As Long, ByVal wSize As Integer) As Boolean
- capDriverGetName = SendMessage(lwnd, YOURCONSTANTMESSAGE, wSize, szName)
- End Function
- Function capDriverGetVersion(ByVal lwnd As Long, ByVal szVer As Long, ByVal wSize As Integer) As Boolean
- capDriverGetVersion = SendMessage(lwnd, WM_CAP_DRIVER_GET_VERSION, wSize, szVer)
- End Function
- Function capDriverGetCaps(ByVal lwnd As Long, ByVal s As Long, ByVal wSize As Integer) As Boolean
- capDriverGetCaps = SendMessage(lwnd, WM_CAP_DRIVER_GET_CAPS, wSize, s)
- End Function
- Function capFileSetCaptureFile(ByVal lwnd As Long, szName As String) As Boolean
- capFileSetCaptureFile = SendMessageS(lwnd, WM_CAP_FILE_SET_CAPTURE_FILE, 0, szName)
- End Function
- Function capFileGetCaptureFile(ByVal lwnd As Long, ByVal szName As Long, wSize As String) As Boolean
- capFileGetCaptureFile = SendMessageS(lwnd, WM_CAP_FILE_SET_CAPTURE_FILE, wSize, szName)
- End Function
- Function capFileAlloc(ByVal lwnd As Long, ByVal dwSize As Long) As Boolean
- capFileAlloc = SendMessage(lwnd, WM_CAP_FILE_ALLOCATE, 0, dwSize)
- End Function
- Function capFileSaveAs(ByVal lwnd As Long, szName As String) As Boolean
- capFileSaveAs = SendMessageS(lwnd, WM_CAP_FILE_SAVEAS, 0, szName)
- End Function
- Function capFileSetInfoChunk(ByVal lwnd As Long, ByVal lpInfoChunk As Long) As Boolean
- capFileSetInfoChunk = SendMessage(lwnd, WM_CAP_FILE_SET_INFOCHUNK, 0, lpInfoChunk)
- End Function
- Function capFileSaveDIB(ByVal lwnd As Long, ByVal szName As Long) As Boolean
- capFileSaveDIB = SendMessage(lwnd, WM_CAP_FILE_SAVEDIB, 0, szName)
- End Function
- Function capEditCopy(ByVal lwnd As Long) As Boolean
- capEditCopy = SendMessage(lwnd, WM_CAP_EDIT_COPY, 0, 0)
- End Function
- Function capSetAudioFormat(ByVal lwnd As Long, ByVal s As Long, ByVal wSize As Integer) As Boolean
- capSetAudioFormat = SendMessage(lwnd, WM_CAP_SET_AUDIOFORMAT, wSize, s)
- End Function
- Function capGetAudioFormat(ByVal lwnd As Long, ByVal s As Long, ByVal wSize As Integer) As Long
- capGetAudioFormat = SendMessage(lwnd, WM_CAP_GET_AUDIOFORMAT, wSize, s)
- End Function
- Function capGetAudioFormatSize(ByVal lwnd As Long) As Long
- capGetAudioFormatSize = SendMessage(lwnd, WM_CAP_GET_AUDIOFORMAT, 0, 0)
- End Function
- Function capDlgVideoFormat(ByVal lwnd As Long) As Boolean
- capDlgVideoFormat = SendMessage(lwnd, WM_CAP_DLG_VIDEOFORMAT, 0, 0)
- End Function
- Function capDlgVideoSource(ByVal lwnd As Long) As Boolean
- capDlgVideoSource = SendMessage(lwnd, WM_CAP_DLG_VIDEOSOURCE, 0, 0)
- End Function
- Function capDlgVideoDisplay(ByVal lwnd As Long) As Boolean
- capDlgVideoDisplay = SendMessage(lwnd, WM_CAP_DLG_VIDEODISPLAY, 0, 0)
- End Function
- Function capDlgVideoCompression(ByVal lwnd As Long) As Boolean
- capDlgVideoCompression = SendMessage(lwnd, WM_CAP_DLG_VIDEOCOMPRESSION, 0, 0)
- End Function
- Function capGetVideoFormat(ByVal lwnd As Long, ByVal s As Long, ByVal wSize As Integer) As Long
- capGetVideoFormat = SendMessage(lwnd, WM_CAP_GET_VIDEOFORMAT, wSize, s)
- End Function
- Function capGetVideoFormatSize(ByVal lwnd As Long) As Long
- capGetVideoFormatSize = SendMessage(lwnd, WM_CAP_GET_VIDEOFORMAT, 0, 0)
- End Function
- Function capSetVideoFormat(ByVal lwnd As Long, ByVal s As Long, ByVal wSize As Integer) As Boolean
- capSetVideoFormat = SendMessage(lwnd, WM_CAP_SET_VIDEOFORMAT, wSize, s)
- End Function
- Function capPreview(ByVal lwnd As Long, ByVal f As Boolean) As Boolean
- capPreview = SendMessage(lwnd, WM_CAP_SET_PREVIEW, f, 0)
- End Function
- Function capPreviewRate(ByVal lwnd As Long, ByVal wMS As Integer) As Boolean
- capPreviewRate = SendMessage(lwnd, WM_CAP_SET_PREVIEWRATE, wMS, 0)
- End Function
- Function capOverlay(ByVal lwnd As Long, ByVal f As Boolean) As Boolean
- capOverlay = SendMessage(lwnd, WM_CAP_SET_OVERLAY, f, 0)
- End Function
- Function capPreviewScale(ByVal lwnd As Long, ByVal f As Boolean) As Boolean
- capPreviewScale = SendMessage(lwnd, WM_CAP_SET_SCALE, f, 0)
- End Function
- Function capGetStatus(ByVal lwnd As Long, ByVal s As Long, ByVal wSize As Integer) As Boolean
- capGetStatus = SendMessage(lwnd, WM_CAP_GET_STATUS, wSize, s)
- End Function
- Function capSetScrollPos(ByVal lwnd As Long, ByVal lpP As Long) As Boolean
- capSetScrollPos = SendMessage(lwnd, WM_CAP_SET_SCROLL, 0, lpP)
- End Function
- Function capGrabFrame(ByVal lwnd As Long) As Boolean
- capGrabFrame = SendMessage(lwnd, WM_CAP_GRAB_FRAME, 0, 0)
- End Function
- Function capGrabFrameNoStop(ByVal lwnd As Long) As Boolean
- capGrabFrameNoStop = SendMessage(lwnd, WM_CAP_GRAB_FRAME_NOSTOP, 0, 0)
- End Function
- Function capCaptureSequence(ByVal lwnd As Long) As Boolean
- capCaptureSequence = SendMessage(lwnd, WM_CAP_SEQUENCE, 0, 0)
- End Function
- Function capCaptureSequenceNoFile(ByVal lwnd As Long) As Boolean
- capCaptureSequenceNoFile = SendMessage(lwnd, WM_CAP_SEQUENCE_NOFILE, 0, 0)
- End Function
- Function capCaptureStop(ByVal lwnd As Long) As Boolean
- capCaptureStop = SendMessage(lwnd, WM_CAP_STOP, 0, 0)
- End Function
- Function capCaptureAbort(ByVal lwnd As Long) As Boolean
- capCaptureAbort = SendMessage(lwnd, WM_CAP_ABORT, 0, 0)
- End Function
- Function capCaptureSingleFrameOpen(ByVal lwnd As Long) As Boolean
- capCaptureSingleFrameOpen = SendMessage(lwnd, WM_CAP_SINGLE_FRAME_OPEN, 0, 0)
- End Function
- Function capCaptureSingleFrameClose(ByVal lwnd As Long) As Boolean
- capCaptureSingleFrameClose = SendMessage(lwnd, WM_CAP_SINGLE_FRAME_CLOSE, 0, 0)
- End Function
- Function capCaptureSingleFrame(ByVal lwnd As Long) As Boolean
- capCaptureSingleFrame = SendMessage(lwnd, WM_CAP_SINGLE_FRAME, 0, 0)
- End Function
- Function capCaptureGetSetup(ByVal lwnd As Long, ByVal s As Long, ByVal wSize As Integer) As Boolean
- capCaptureGetSetup = SendMessage(lwnd, WM_CAP_GET_SEQUENCE_SETUP, wSize, s)
- End Function
- Function capCaptureSetSetup(ByVal lwnd As Long, ByVal s As Long, ByVal wSize As Integer) As Boolean
- capCaptureSetSetup = SendMessage(lwnd, WM_CAP_SET_SEQUENCE_SETUP, wSize, s)
- End Function
- Function capSetMCIDeviceName(ByVal lwnd As Long, ByVal szName As Long) As Boolean
- capSetMCIDeviceName = SendMessage(lwnd, WM_CAP_SET_MCI_DEVICE, 0, szName)
- End Function
- Function capGetMCIDeviceName(ByVal lwnd As Long, ByVal szName As Long, ByVal wSize As Integer) As Boolean
- capGetMCIDeviceName = SendMessage(lwnd, WM_CAP_GET_MCI_DEVICE, wSize, szName)
- End Function
- Function capPaletteOpen(ByVal lwnd As Long, ByVal szName As Long) As Boolean
- capPaletteOpen = SendMessage(lwnd, WM_CAP_PAL_OPEN, 0, szName)
- End Function
- Function capPaletteSave(ByVal lwnd As Long, ByVal szName As Long) As Boolean
- capPaletteSave = SendMessage(lwnd, WM_CAP_PAL_SAVE, 0, szName)
- End Function
- Function capPalettePaste(ByVal lwnd As Long) As Boolean
- capPalettePaste = SendMessage(lwnd, WM_CAP_PAL_PASTE, 0, 0)
- End Function
- Function capPaletteAuto(ByVal lwnd As Long, ByVal iFrames As Integer, ByVal iColor As Long) As Boolean
- capPaletteAuto = SendMessage(lwnd, WM_CAP_PAL_AUTOCREATE, iFrames, iColors)
- End Function
- Function capPaletteManual(ByVal lwnd As Long, ByVal fGrab As Boolean, ByVal iColors As Long) As Boolean
- capPaletteManual = SendMessage(lwnd, WM_CAP_PAL_MANUALCREATE, fGrab, iColors)
- End Function
复制代码
原来的代码个别函数返回值不正确,需要修改。
|
|