摘要:
与驱动程序通信的函数,除了ReadFile和WriteFile函数还有DeviceIoControl函数,而且DeviceIoControl函数那是相当的彪悍。因为它可以自定义控制码,你只要在IRP_MJ_DEVICE_CONTROL对应的派遣函数中读取控制码,然后针对控制码,你就可以实现自定义的功能了。函数原型:BOOL WINAPI DeviceIoControl(__inHANDLEhDevice,__inDWORDdwIoControlCode,__in_optLPVOID lpInBuffer,__inDWORDnInBufferSize,__out_optLPVOID lpOutB 阅读全文
阅读排行榜
android Collections.sort(List<T> list) 与JAVA Collections.sort(List<T> list)
2012-05-04 10:31 by java20130722, 545 阅读, 收藏,
摘要:
Info.java :public class Info implements Cloneable, Comparable{
private int id ;
public Info(int id ){
this.id = id ;
} public int getId() {
return id;
} @Override public Object clone() throws CloneNotSupportedException { Info info = (Info) super.clone(); return info; } @Override
public ... 阅读全文
PreTranslateMessage详解
2012-04-13 10:56 by java20130722, 545 阅读, 收藏,
摘要:
PreTranslateMessage详解原文链接1.函数原型:(MSDN)Override this function to filter window messages before they are dispatched to the Windows functionsTranslateMessageand DispatchMessageThe default implementation performs accelerator-key translation,so you must call theCWinApp::PreTranslateMessagemember function 阅读全文
计算方法之用追赶法求线性方程组
2013-06-11 12:57 by java20130722, 543 阅读, 收藏,
摘要:
/*************************************
* 用追赶法求线性方程组
* * |- -| |- -| |- -|
* | 2 -1 | | x1 | | 3 |
* |-1 3 -2 | | x2 | | 1 |
* | -2 4 -2 |*| x3 | = | 0 |
* | -2 5 | | x4 | | -5 |
* |- -| |- -| |- -|
*
***************************... 阅读全文
SQL Server 之 datalength函数
2013-01-25 19:30 by java20130722, 543 阅读, 收藏,
摘要:
datalength函数的语法见链接,一般的数据类型用len函数就可以返回其长度值。 datalength函数主要用于varchar、varbinary、text、image, nvarchar 和 ntext 数据类型,因为这些数据类型的长度是变长的。 阅读全文
浙公网安备 33010602011771号