Pointer to locked data buffer.

thedee

New member
Joined
Jun 6, 2012
Messages
3
Programming Experience
10+
I am currently messing around with my webcam and using the avicap dll. Everything is working fine but I would like to be able to save the pointer to the buffer to a video file (avi). The VideoHdr structure is defined as follows:

Private Structure VIDEOHDR
Dim lpData As IntPtr '// Pointer to locked data buffer
Dim dwBufferLength As Integer '// size, in bytes, of the Data buffer
Dim dwBytesUsed As Integer '// see below
Dim dwTimeCaptured As Integer '// see below
Dim dwUser As Integer '// user-specific data
Dim dwFlags As Integer '// see below
<VBFixedArray(3)> Dim dwReserved() As Integer '// reserved; do not use}
End Structure

I am thinking that I want to take whatever is in lpData and store in a file. I am not sure how to do that with with a "locked data buffer". Can anyone help?

thanks
 
Back
Top