|
using System;
using System.Collections.Generic;
using System.Text;
// 追加
using System.Runtime.InteropServices;
namespace WebCamSample
{
class
DShow_Capture
{
[ DllImport("DShow_Capture.dll")]
public
static
extern
int GetDeviceList(string
filename, int
mode);
[ DllImport("DShow_Capture.dll")]
public
static
extern
int CaptureGraphBulder(int
selectindex, IntPtr
HWnd1, IntPtr
HWnd2);
[DllImport("DShow_Capture.dll")]
public static
extern
void BitmapFileWrite(string
filename);
[DllImport("DShow_Capture.dll")]
public static
extern
void SetDisplay_Size(int
percent);
[ DllImport("DShow_Capture.dll")]
public
static
extern
bool MediaControl_Run();
[ DllImport("DShow_Capture.dll")]
public
static
extern
bool MediaControl_Stop();
[ DllImport("DShow_Capture.dll")]
public
static
extern
bool MediaControl_Pause();
[ DllImport("DShow_Capture.dll")]
public
static
extern
bool MediaControl_StopWhenReady();
[ DllImport("DShow_Capture.dll")]
public
static
extern
int MediaControl_GetState();
[ DllImport("DShow_Capture.dll")]
public
static
extern
void AllDataClear();
[ DllImport("DShow_Capture.dll")]
public
static
extern
void COMUninitialize();
[ DllImport("DShow_Capture.dll")]
public
static
extern
void FilterPropertyPage(IntPtr
HWnd);
[ DllImport("DShow_Capture.dll")]
public
static
extern
void PinPropertyPage(IntPtr
HWnd1, IntPtr
HWnd2);
[ DllImport("DShow_Capture.dll")]
public
static
extern
int GetMedia_Width();
[ DllImport("DShow_Capture.dll")]
public
static
extern
int GetMedia_Height();
[ DllImport("DShow_Capture.dll")]
public
static
extern
int StartCameraDevice(int
selectindex, IntPtr
HWnd1, IntPtr
HWnd2, int
x, int
y);
[DllImport("DShow_Capture.dll")]
public static
extern
int FullScreenMode(int
mode);
[DllImport("DShow_Capture.dll")]
public static
extern
int GetIsFullScreen();
}
}
|