Subversion Repositories Projects

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2484 - 1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using System.Runtime.InteropServices;
6
 
7
namespace Touchless.Vision.Camera
8
{
9
    internal static class WebCamLibInterop
10
    {
11
 
12
        //[DllImport("WebCamLib.dll", EntryPoint = "Initialize")]
13
        //public static extern int WebCamInitialize();
14
 
15
        //[DllImport("WebCamLib.dll", EntryPoint = "Cleanup")]
16
        //public static extern int WebCamCleanup();
17
 
18
        //[DllImport("WebCamLib.dll", EntryPoint = "RefreshCameraList")]
19
        //public static extern int WebCamRefreshCameraList(ref int count);
20
 
21
        //[DllImport("WebCamLib.dll", EntryPoint = "GetCameraDetails")]
22
        //public static extern int WebCamGetCameraDetails(int index,
23
        //    [Out, MarshalAs(UnmanagedType.Interface)] out object nativeInterface,
24
        //    out IntPtr name);
25
 
26
        public delegate void CaptureCallbackProc(
27
                UInt32 dwSize,
28
                [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.I1, SizeParamIndex = 0)] byte[] abData);
29
 
30
        //[DllImport("WebCamLib.dll", EntryPoint = "StartCamera")]
31
        //public static extern int WebCamStartCamera(
32
        //    [In, MarshalAs(UnmanagedType.Interface)] object nativeInterface,
33
        //    CaptureCallbackProc lpCaptureFunc,
34
        //    ref int width,
35
        //    ref int height
36
        //    );
37
 
38
        //[DllImport("WebCamLib.dll", EntryPoint = "StopCamera")]
39
        //public static extern int WebCamStopCamera();
40
 
41
        //[DllImport("WebCamLib.dll", EntryPoint = "DisplayCameraPropertiesDialog")]
42
        //public static extern int WebCamDisplayCameraPropertiesDialog(
43
        //    [In, MarshalAs(UnmanagedType.Interface)] object nativeInterface);
44
    }
45
}