Hi all,
I have seen in many codes which is similar to this but couldn't what it is and why it is used .Will anyone help me to get an idea on this code .
[DllImport("user32", EntryPoint = "SendMessage")]
public
static extern int SendMessage(int hWnd, uint Msg, int wParam, int
lParam);
[DllImport("avicap32.dll", EntryPoint =
"capCreateCaptureWindowA")]
public static extern int capCreateCaptureWindowA(string
lpszWindowName, int dwStyle, int X, int Y, int nWidth, int nHeight, int
hwndParent, int nID);
[DllImport("user32", EntryPoint =
"OpenClipboard")]
public static extern int OpenClipboard(int hWnd);
[DllImport("user32", EntryPoint = "EmptyClipboard")]
public
static extern int EmptyClipboard();
[DllImport("user32",
EntryPoint = "CloseClipboard")]
public static extern int CloseClipboard();
A doubt in Sample Code of c#.net
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Lalit MRank #1,186 · 1.5K reputationPosted Jan 28, 2010, 7:01 PM EST
Thanks........