随笔分类 -  软件开发

编程相关的东东
摘要:From:http://hi.baidu.com/oder/blog/item/12cd0e5559a547c1b645aedb.html 钩子:(Hook)是Windows中提供的一种用以替换DOS下“中断”的系统机制,中文译为“挂钩”或“钩子”。 钩子在软件中的应用可以说是很广泛了,想当年学习钩子那会儿,什么IAT钩子,INLINE钩子......真是有点老牛啃南瓜... 阅读全文
posted @ 2008-09-12 17:08 h2appy 阅读(796) 评论(0) 推荐(1)
摘要:WebRequestMethods.Ftp.DownloadFile不能保留文件最后修改时间这个属,WebRequestMethods.Ftp.ListDirectoryDetails中只有月日时分,通过分析它也不能解决问题。 要想保留文件最后修改时间我们需要手动获取时间,然后进行设置。代码如下: Code highlighting produced by Actipro ... 阅读全文
posted @ 2008-09-12 16:10 h2appy 阅读(1500) 评论(2) 推荐(0)
摘要:From: http://w-shadow.com/blog/2006/09/21/hiding-from-nt-taskmanager/ Here and there, people keep asking - “How do I hide my process in Windows NT/2000/XP?”. Nearly everyone knows how to do that on ... 阅读全文
posted @ 2008-09-11 16:39 h2appy 阅读(942) 评论(0) 推荐(0)
摘要:一、Process.Start()调用了Win32的CreateProcess()函数,并且参数bInheritHandles设置为了true,这就导致了子进程继承了父进程的Handle。 二、由于上述原因导致的问题 如果父进程用Process.Start()启动了子进程,并使用ChannelServices.RegisterChannel(channel);注册了channel... 阅读全文
posted @ 2008-09-09 14:43 h2appy 阅读(854) 评论(0) 推荐(0)
摘要:http://www.pinvoke.net/ 阅读全文
posted @ 2008-09-09 13:40 h2appy 阅读(193) 评论(0) 推荐(0)
摘要:在C#中用连接字符串 "Server=172.16.0.2;Port=5432;User Id=user;Password=2008;Database=testdb;" 连接PostgreSQL数据库,然后执行如下语句: "insert into mytable(message) values('测试');" 出现错误: ERROR: 22021: invalid by... 阅读全文
posted @ 2008-09-04 13:02 h2appy 阅读(345) 评论(0) 推荐(0)
摘要:from: http://bbs.chinaunix.net/viewthread.php?tid=812899 因为刚接触pgsql,这个问题搞晕了。 由于 PostgreSQL 是大小写敏感的,并默认对SQL语句中的数据库对象名称转换为小写,因此如果你在创建数据库对象时指定了大小写混和的对象名称,那么在通过SQL语句访问 这些对象时,必须使用双引号(")将数据库对象括起来,以提示 P... 阅读全文
posted @ 2008-09-03 16:30 h2appy 阅读(2621) 评论(1) 推荐(0)
摘要:1、Windows Management Instrumentation(WMI)提供了获取信息的方法,在C#中可用通过System.Management命名空间中的类访问。比如获取CPU ID的方法: Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.co... 阅读全文
posted @ 2008-09-03 12:00 h2appy 阅读(2508) 评论(1) 推荐(0)
摘要:转帖: 公司禁用U盘和移动硬盘的原因多种多样,最响亮的原因就是防止员工带走机密资料,在这里我提供一种不用专业软件的小技巧给大家,因为你的老板永远相信“自己能解决的事,别花钱”。 方法一,BIOS设置法(快刀斩乱麻法) 进入BIOS设置,选择“Integrated Peripherals”选项,展开后将“USB 1.1 Controller”和“USB 2.0 C... 阅读全文
posted @ 2008-09-02 13:07 h2appy 阅读(845) 评论(0) 推荐(0)
摘要:当前版本的已经不公布源代码了:( 源代码: http://files.cnblogs.com/h2appy/sysint.zip 官方网站: http://technet.microsoft.com/en-us/sysinternals/default.aspx http://forum.sysinternals.com/ 阅读全文
posted @ 2008-09-02 12:07 h2appy 阅读(1406) 评论(0) 推荐(0)
摘要:反病毒引擎设计之绪论篇 1.绪论 本文研究的主要内容正如其题目所示是设计并编写一个先进的反病毒引擎。首先需要对这“先进”二字做一个解释,何为“先进”?众所周知,传 统的反病毒软件使用的是基于特征码的静态扫描技术,即在文件中寻找特定十六进制串,如果找到,就可判定文件感染了某种病毒。但这种方法在当今病毒技术迅猛 发展的形势下已经起不到很好的作用了。原因我会在以下的章节中具体描述。因此本文将不... 阅读全文
posted @ 2008-09-02 11:51 h2appy 阅读(754) 评论(0) 推荐(0)
摘要:使用Microsoft .NET 中的 FileSystemWatcher,可以轻松地监视您的系统或任何可通过网络访问的计算机上的目录和文件中发生的操作。 下面是几篇相关文章 : http://msdn.microsoft.com/zh-cn/library/342da5th(VS.80).aspx http://blogs.msdn.com/ahamza/archive/2006/02/0... 阅读全文
posted @ 2008-09-02 11:19 h2appy 阅读(249) 评论(0) 推荐(0)
摘要:安装完PostgreSQL后,要对它进行配置: PostgreSQL的3个配置文件: C:\Program Files\PostgreSQL\8.3\data\pg_hba.conf C:\Program Files\PostgreSQL\8.3\data\pg_ident.conf C:\Program Files\PostgreSQL\8.3\data\postg... 阅读全文
posted @ 2008-09-01 17:48 h2appy 阅读(408) 评论(0) 推荐(0)
摘要:Code Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->using System; using System.Collections.Generic; using System.ServiceProcess; using System.... 阅读全文
posted @ 2008-09-01 11:45 h2appy 阅读(3494) 评论(5) 推荐(0)
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->using System; using System.IO; using System.Net; using System.Net.Security; using System.... 阅读全文
posted @ 2008-08-28 12:04 h2appy 阅读(1138) 评论(0) 推荐(0)
摘要:FTP over SSL (Explicit) Explicit security requires that the FTP client issues a specific command to the FTP server after establishing a connection to establish the SSL link. In explicit SSL (or ... 阅读全文
posted @ 2008-08-27 18:19 h2appy 阅读(375) 评论(0) 推荐(0)
摘要:Office XP Primary Interop Assemblies (PIAs) http://www.microsoft.com/downloads/details.aspx?FamilyId=C41BD61E-3060-4F71-A6B4-01FEBA508E52 参考: http://support.microsoft.com/kb/244167/en-us/ http://s... 阅读全文
posted @ 2008-08-25 17:36 h2appy 阅读(372) 评论(0) 推荐(0)
摘要:Java 访问M$一些格式(Word、Excel等的格式)的Java库: http://poi.apache.org/ 阅读全文
posted @ 2008-08-25 17:07 h2appy 阅读(220) 评论(0) 推荐(0)
摘要:从http://sourceforge.net/projects/itextsharp/下载iTextSharp的源代码或DLL。 利用iTextSharp,从C#、VB等.Net下语言处理PDF文件,不用安装Acrobat,确实方便。 Code highlighting produced by Actipro CodeHighlighter (freeware) http://ww... 阅读全文
posted @ 2008-08-25 16:37 h2appy 阅读(2244) 评论(0) 推荐(0)
摘要:来自:http://www.mikeduncan.com/sqlite-on-dotnet-in-3-mins/ SQLite on .NET - Get up and running in 3 minutes. January 15th, 2008 | grokable You found it! The quick and dirty guide to setting up SQLite ... 阅读全文
posted @ 2008-07-22 18:25 h2appy 阅读(839) 评论(0) 推荐(0)