Reactive Extension 설치 신기하다...
글
Reflection with IDispatch-based COM objects
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
Reflection with IDispatch-based COM objects #region Using Directives using System; using System.Reflection; using System.Runtime.InteropServices; using System.Security.Permissions; #endregion namespace COM_Test { /// <summary> /// Provides helper methods for working with COM IDispatch objects that have a registered type library. /// </summary> public static class DispatchUtility { #region Private Constants private const int S_OK = 0; //From WinError.h private const int LOCALE_SYSTEM_DEFAULT = 2 << 10; //From WinNT.h == 2048 == 0x800 #endregion #region Public Methods /// <summary> /// Gets whether the specified object implements IDispatch. /// </summary> /// <param name="obj">An object to check.</param> /// <returns>True if the object implements IDispatch. False otherwise.</returns> public static bool ImplementsIDispatch(object obj) { bool result = obj is ID...
IE automation. dialog watcher
- 공유 링크 만들기
- X
- 이메일
- 기타 앱
http://msdn.microsoft.com/en-us/magazine/gg309183.aspx public class Form1 : Form { [ DllImport ( "user32.dll" , EntryPoint = "FindWindow" , CharSet = CharSet . Auto )] static extern IntPtr FindWindow ( string lpClassName , string lpWindowName ); [ DllImport ( "user32.dll" , EntryPoint = "FindWindowEx" , CharSet = CharSet . Auto )] static extern IntPtr FindWindowEx (IntPtr hwndParent , IntPtr hwndChildAfter , string lpszClass , string lpszWindow ); [ DllImport ( "user32.dll" , EntryPoint = "PostMessage" , CharSet = CharSet . Auto )] static extern bool PostMessage1 (IntPtr hWnd , uint Msg , int wParam , int ...