摘要:root and run following$ su# getprop net.hostname# setprop net.hostname whateveryouwantwhere 'whateveryouwant' is the hostname you want.done.
阅读全文
摘要:Danger: dead lock or mem leakuse only as Process.Kill() to exit app with defined exit code [DllImport("kernel32.dll")]staticexternboolTerminateThread(inthThread,uintdwExitCode);//[STAThread]staticvoidMain(string[]args){try{Threadt=newThread(()=>{//codeeveninterop});t.IsBackground=true;/
阅读全文
摘要:SetWindowsHookEx(WH_MOUSE_LL, mousehookDelegate, intptr, 0)在这里用了一个实例代理没有用匿名,HookProcmousehookDelegate = new HookProc(MouseHookProc);SetWindowsHookEx(WH_MOUSE_LL,MouseHookProc, intptr, 0); 然后在Control.Invoke() 调用。貌似运行了好一会也没有碰到异常了
阅读全文