2008年5月30日
摘要: System.Net.WebRequest request = System.Net.FileWebRequest.Create("http://192.168.1.12:8080/eclipse_tfw_xzxt/jsp_sample/sample_6.jsp?param_a=Java&param_b=.Net"); System... 阅读全文
posted @ 2008-05-30 22:19 胡秉征 阅读(98) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.InteropServices; class shoutdown{ [StructLayout(LayoutKind.Sequential, Pack=1)] internal struct TokPriv1Luid { public int Count; public long Luid; public int Attr; } ... 阅读全文
posted @ 2008-05-30 22:19 胡秉征 阅读(489) 评论(0) 推荐(0) 编辑
摘要: 1. Windows Forms中禁用窗体的关闭按钮添加必要的命名空间:using System.Runtime.InteropServices;添加必要的常数和API函数的引用private const int SC_CLOSE = 0xF060;private const int MF_ENABLED = 0x00000000;private const int MF_GRAYED = 0x0... 阅读全文
posted @ 2008-05-30 22:18 胡秉征 阅读(2889) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Runtime.InteropServices;using System.Threading;namespace LockWindows{/// <summary>/// NativeWIN32 的摘要说明。/// </summary>public class NativeWIN32{public NativeWIN32(... 阅读全文
posted @ 2008-05-30 22:17 胡秉征 阅读(1728) 评论(1) 推荐(1) 编辑