关于C#程序代码解释请帮我逐句解释

[复制链接]
查看11 | 回复2 | 2010-5-23 14:27:58 | 显示全部楼层 |阅读模式
class ShowVideo

{

//ShowVideocalls

[DllImport("avicap32.dll")]

public static extern IntPtr capCreateCaptureWindowA(byte[] lpszWindowName, int dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hWndParent, int nID);

[DllImport("avicap32.dll")]

public static extern bool capGetDriverDescriptionA(short wDriver, byte[] lpszName, int cbName, byte[] lpszVer, int cbVer);
public const int WM_USER = 0x400;

public const int WS_CHILD = 0x40000000;

public const int WS_VISIBLE = 0x10000000;

public const int SWP_NOMOVE = 0x2;

public const int SWP_NOZORDER = 0x4;
[StructLayout(LayoutKind.Sequential)]

public struct VIDEOHDR

{

[MarshalAs(UnmanagedType.I4)]

public int lpData;

[MarshalAs(UnmanagedType.I4)]

public int dwBufferLength;
是视频的调用代码
那顺便说下是干什么用的

回复

使用道具 举报

千问 | 2010-5-23 14:27:58 | 显示全部楼层
class ShowVideo//定义一个类
{
//ShowVideocalls
[DllImport("avicap32.dll")]
public static extern IntPtr capCreateCaptureWindowA(byte[] lpszWindowName, int dwStyle, int x, int y, int nWidth, int nHeight, IntPtr hWndParent, int nID);//定义变量
[DllImport("avicap32.dll")]
public static ex
回复

使用道具 举报

千问 | 2010-5-23 14:27:58 | 显示全部楼层
是调用系统API,这段代码没有实际意义
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行