码迷,mamicode.com
首页 >  
搜索关键字:createfile    ( 118个结果
Win32 API文件读写操作
1、文件的创建和打开 HANDLE CreateFile( LPCTSTR lpFileName, DWORD dwDesiredAccess, DWORD dwShareMode, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreati ...
分类:Windows程序   时间:2017-05-29 19:54:15    阅读次数:918
CreateFile DeviceIoControl dwIoControlCode——应用程序与驱动程序通信
在“进程内存管理器中”的一个Ring0,Ring3层通信问题,之前也见过这样的代码,这次拆分出来详细总结一下。 先通过CreateFile函数得到设备句柄,CreateFile函数原型: 打开:createFile 关闭:closehandle 与普通文件名有所不同,设备驱动的“文件名”(常称为“设 ...
分类:其他好文   时间:2017-05-22 19:03:04    阅读次数:185
wannacyp勒索病毒
关于 5月12号开始疯传的wannacyp勒索病毒 说说自己的看法 1.此类病毒制作比较简单:说白了就是 createfile --> readfile >writefile(加密). 但是为什么众多安全软件拦截性不是很好? 并不是他们监控不到这些病毒的行为。而是不好区分这是正常软件的行为还是恶意病 ...
分类:其他好文   时间:2017-05-17 11:48:14    阅读次数:133
006 异步IO操作
# 异步IO操作 CreateFile 使用 VS2015 新建win32 控制台应用程序 WindowsFileDemo win32控制台写窗口程序 需要加入头文件 #include <fileAPI.h> 就可以来使用CreateFile 分别有 CreateFileA CreateFileW ...
分类:其他好文   时间:2017-05-14 23:42:06    阅读次数:273
004 CreateFile API 使用 和学习 MSDN的方法重点
Evernote Export Edit CreateFile中文翻译 CreateFile中文翻译 函数功能 API 函数原型 参数解析 lpFileName dwDesiredAccess dwShareMode lpSecurityAttributes dwCreationDispositio ...
分类:Windows程序   时间:2017-05-10 09:43:27    阅读次数:717
char向wchar的转换-MultiByteToWideChar
问题产生 使用CreateFile函数,如下: 第一个参数是wchar类型,而我从配置文件中读入的文件路径是char类型,因此涉及到char至wchar的转换问题 问题解决 使用MultiByteToWideChar函数函数代码如下: 讲解如下: 倒数第三个参数设为-1,倒数第二个参数设为NULL, ...
分类:其他好文   时间:2017-03-24 19:14:34    阅读次数:128
R语言 复制文件,复制目录
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
用CreateFile打开串口超过com10就不能打开,解决办法
10以下的串口可以这样打开 10以上的串口要这样才打的开 ...
分类:其他好文   时间:2017-02-04 18:44:44    阅读次数:263
c/c++获取文件大小的方法
#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
c/c++获取文件大小的方法
#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
118条   上一页 1 ... 3 4 5 6 7 ... 12 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!