1、文件的创建和打开 HANDLE CreateFile( LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreati ...
在“进程内存管理器中”的一个Ring0,Ring3层通信问题,之前也见过这样的代码,这次拆分出来详细总结一下。 先通过CreateFile函数得到设备句柄,CreateFile函数原型: 打开:createFile 关闭:closehandle 与普通文件名有所不同,设备驱动的“文件名”(常称为“设 ...
分类:
其他好文 时间:
2017-05-22 19:03:04
阅读次数:
185
关于 5月12号开始疯传的wannacyp勒索病毒 说说自己的看法 1.此类病毒制作比较简单:说白了就是 createfile --> readfile >writefile(加密). 但是为什么众多安全软件拦截性不是很好? 并不是他们监控不到这些病毒的行为。而是不好区分这是正常软件的行为还是恶意病 ...
分类:
其他好文 时间:
2017-05-17 11:48:14
阅读次数:
133
# 异步IO操作 CreateFile 使用 VS2015 新建win32 控制台应用程序 WindowsFileDemo win32控制台写窗口程序 需要加入头文件 #include <fileAPI.h> 就可以来使用CreateFile 分别有 CreateFileA CreateFileW ...
分类:
其他好文 时间:
2017-05-14 23:42:06
阅读次数:
273
Evernote Export Edit CreateFile中文翻译 CreateFile中文翻译 函数功能 API 函数原型 参数解析 lpFileName dwDesiredAccess dwShareMode lpSecurityAttributes dwCreationDispositio ...
问题产生 使用CreateFile函数,如下: 第一个参数是wchar类型,而我从配置文件中读入的文件路径是char类型,因此涉及到char至wchar的转换问题 问题解决 使用MultiByteToWideChar函数函数代码如下: 讲解如下: 倒数第三个参数设为-1,倒数第二个参数设为NULL, ...
分类:
其他好文 时间:
2017-03-24 19:14:34
阅读次数:
128
file.infofile.createdir.createfile.copy
if(!dir.exists("Result_Dir")){
dir.create("Result_Dir")
}
setwd("Result_Dir")
#Folder_2
dir.create("2_test",showWarnings=TRUE,recursive=FALSE)
if(file.exists("Result.xls")){
file.rename("Result.xls","2_test/Result..
分类:
编程语言 时间:
2017-03-07 23:22:09
阅读次数:
2496
10以下的串口可以这样打开 10以上的串口要这样才打的开 ...
分类:
其他好文 时间:
2017-02-04 18:44:44
阅读次数:
263
#include<iostream>
#include<windows.h>
#include<io.h>
#include<sys\stat.h>usingnamespacestd;voidmain()
{char*filepath="C:\\1.txt";//方法一
HANDLEhandle=CreateFile(filepath,FILE_READ_EA,FILE_SHARE_READ,0,OPEN_EXISTING,0,0);if(handle!=..
分类:
编程语言 时间:
2016-11-28 01:37:09
阅读次数:
174
#include<iostream>
#include<windows.h>
#include<io.h>
#include<sys\stat.h>usingnamespacestd;voidmain()
{char*filepath="C:\\1.txt";//方法一
HANDLEhandle=CreateFile(filepath,FILE_READ_EA,FILE_SHARE_READ,0,OPEN_EXISTING,0,0);if(handle!=..
分类:
编程语言 时间:
2016-11-28 01:36:06
阅读次数:
156