c#des?
来源:互联网 发布:大数据分析模型和方法 编辑:程序博客网 时间:2024/05/20 10:15
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
namespace Rohan
{
class Program
{
[DllImport("User32.dll",EntryPoint="SendMessage")]
private static extern int SendMessage(
int hWnd, // handle to destination window
int Msg, // message
int wParam, // first message parameter
string lParam // second message parameter
);
[DllImport("User32.dll",EntryPoint="FindWindow")]
private static extern int FindWindow(string lpClassName,string
lpWindowName);
[DllImport("user32.dll", SetLastError = true)]
static extern IntPtr FindWindowEx(IntPtr hwndParent, IntPtr hwndChildAfter, string lpszClass, string lpszWindow);
//定义消息常数
const int WM_GETTEXT = 0x000D;
const int WM_SETTEXT = 0x000C;
const int WM_CLICK = 0x00F5;
const int WM_SHOWDROPDOWN = 0x014D;//在窗体中声明消息常量
const int WM_SETCURSOR = 0x14F;
const int CB_FINDSTRING = 0x14C;
const int WM_LBUTTONDBLCLK = 0x203;//双击鼠标左键
static void Main(string[] args)
{
/*
string str = "NGSNLL";
int WINDOW_HANDLER = FindWindow(null, @"无标题 - 记事本");
if (WINDOW_HANDLER == 0)
{
throw new Exception("Could not find Main window!");
}
SendMessage(WINDOW_HANDLER, WM_SETTEXT, 0,str);
*/
IntPtr WINDOW_HANDLER =new IntPtr(FindWindow(null, @"计算器"));
IntPtr buttonhwnd = FindWindowEx(WINDOW_HANDLER, IntPtr.Zero, "Button", "C");
int c;
//SendMessage(int.Parse(buttonhwnd), WM_LBUTTONDBLCLK, 0, null);
}
}
}
- c#des?
- C#DES加密解密
- C#DES加密方法
- DES-C实现
- 标准DES-C实现
- C#DES加密解密
- C#DES加密
- DES(C语言实现)
- DES加密算法C实现
- C#DES加解密
- C++DES加解密
- C#-DES加解密
- C#DES加密解密
- C#Des加密&解密
- DES加密模板,和C#des加密
- DES/3DES原理 + PBOC实现(C/C++)
- DES/3DES原理 + PBOC实现(C/C++)
- DES/3DES原理 + PBOC实现(C/C++)
- MPEG-4标准及其实现分析
- 超级无敌各种浏览器css hack
- Flex 中解决 stage为null的方法
- 读取网络数据时需要加上时延
- 动态采样
- c#des?
- cheap Breitling Watches 第一章 邋遢道人(三)
- 置身屏外 心系网内
- SQL触发器实例1
- 私有继承
- 使用div作出一个模态框的效果
- CQ修改ip后,网上收集的解决方案
- jQueryUI小例子
- switch case关于定义变量的规定