作者fabianwind (风~)
看板C_Sharp
标题[问题] 当我DllImport一个api 要怎麽知道里面有什麽函式可以使用?
时间Tue Sep 12 22:16:27 2006
我查了很久
终於给我查到一个可以成功编译的Webcam撷取画面的程式了
好好的研究了一番之後
我发现到我有一个地方有非常大的疑惑
就跟标题所说的一样
程式码写
[DllImport("avicap32.dll")]
protected static extern int capCreateCaptureWindowA(
[MarshalAs(UnmanagedType.VBByRefStr)] ref string lpszWindowName,
int dwStyle, int x, int y, int nWidth, int nHeight,
int hWndParent, int nID);
我目前懂他是呼叫api
但是当我对这个api不熟悉的时候
该怎麽知道有哪些函式可以被我使用呢?
在这一行[DllImport("avicap32.dll")]的下面的程式码不就需要知道要使用哪个方法吗?
请各位大大排解我的疑惑 谢谢<( _ _ )>
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 203.204.69.75