본문 바로가기

Code

(117)
[C#] Register/Unregister ActiveX Control regsvr32 acawebthumb.dll regsvr32 /u acawebthumb.dll using System; using System.Runtime.InteropServices; namespace WebThumbSample { class RegCOMServer { [DllImport("kernel32.dll")] static extern bool FreeLibrary(IntPtr hModule); [DllImport("kernel32.dll")] static extern IntPtr LoadLibrary(string lpFilename); [DllImport("kernel32.dll")] static extern UIntPtr GetProcAddress(IntPtr hModule, string ..
[JavaScript] Redirecting URL
[JavaScript] Hide AdSense on Selected Pages Hide AdSense on Selected Pages Sample Code
[Project] fileHook, BeeHook 2009-02-27 오후 9:58:27 특정 Process 가 접근하는 File 정보를 알아내는 Hook이다. 거의 억지로 성공했다. wcstok 를 사용하면 에러가 발생해서, 인터넷에서 wcstok 코드를 찾아서 집어 넣었다. 2009-02-28 오전 9:11:02 \\SystemRoot\\fileHookTarget.txt 파일에서 감시할 프로세스 이름을 읽어온다. \\SystemRoot\\fileHookOutput.txt 파일에 결과를 저장한다. 2009-03-01 오후 5:24:08 Checked Build하면 잘 작동한다. Free Build하면 제대로 작동이 안된다. 이유는 모름. 배포할 때는 KdPrint를 Comment 처리하고, Checked Build해서 배포하라. 2009-03-04 오..
[Project] Dummy Driver & Loader 2009-02-26 오전 9:08:38 Dummy Driver 제작 성공 DebugView로 관찰하면서, OSR Driver Loader로 Dummy Driver의 등록,시작,정지,해제 작동을 해보라. 2009-02-26 오전 10:59:03 Dummy Driver Loader 제작 성공 DebugView로 관찰하면서, DummyLoader를 실행해보라. 2009-02-27 오후 3:29:15 Dummy Driver로 Read from File & Write to File 성공 2009-03-01 오전 8:38:42 약간의 코드 수정
[C#] Detect UserControl's Closing using System.Windows.Forms; namespace DetectUserControlClosing { public partial class UserControl1 : UserControl { public UserControl1() { InitializeComponent(); } protected override void OnCreateControl() { base.OnCreateControl(); this.ParentForm.FormClosing += new FormClosingEventHandler(ParentForm_FormClosing); } private void ParentForm_FormClosing(object sender, FormClosingEventArgs e) { Dia..
[C#] DockPanel Suite Sample using WeifenLuo.WinFormsUI.Docking; namespace DockPanelSample { public partial class FormChild : DockContent { public FormChild() { InitializeComponent(); } } } using System; using System.Windows.Forms; namespace DockPanelSample { public partial class FormMain : Form { private FormChild formChild1; private FormChild formChild2; private FormChild formChild3; private FormChild formChild4; public F..
[C#] DockPanel Suite Sample using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using WeifenLuo.WinFormsUI.Docking; namespace DockPanelSample { public partial class FormChild : DockContent { public FormChild() { InitializeComponent(); } } } using System; using System.Collections.Generic; using System.ComponentMo..