Class Win32API
{
[DllImport ("User32.dll")] // User32.dll is one of the core dynamic libraries of the Windows operating system.
Public static extern int FindWindow (string lpClassName, string lpWindowName );
[DllImport ("user32", EntryPoint = "RegisterWindowMessage")]
Public static extern int RegisterWindowMessage (
String lpString
);
[DllImport ("user32", EntryPoint = "SendMessage")]
Public static extern int SendMessage (
Int hwnd,
Int wMsg,
Int wParam,
Ref int lParam
);
[DllImport ("OLEACC. DLL", EntryPoint = "ObjectFromLresult")]
Public static extern int ObjectFromLresult (
Int lResult,
Ref System. Guid riid,
Int wParam,
[System. Runtime. InteropServices. externalas (UnmanagedType. Interface), System. Runtime. InteropServices. In, System. Runtime. InteropServices. Out] ref System. Object ppvObject
// Pay attention to the ObjectFromLresult declaration of this function.
);
}
From Bychentufeiyang's column