Createfile

使用API进行文件读写——CreateFile,ReadFile,WriteFile等

看了这个帖子:  http://www.vbgood.com/thread-99249-1-1.html  就写了一个使用API读写文件的简单类,苦力活。  演示代码在附件里。  '***********************************  'Written by D.L.  '  '2011/04/04  '****************...

CreateFile函数详解

The CreateFile function creates or opens the following objects and returns a handle that can be used to accessthe object: files pipes mailslots communications resources disk devic...

文件内存映射CreateFileMapping和GlobalAlloc内存分配

  内存映射主要有两方面的作用,其一是对大文件的内存映射处理,其二是用于进程间共享。 (1)内存映射文件处理过程     首先,通过 CreateFile() 函数来创建或打开一个文件内核对象,这个对象标识了磁盘上将要用作内存映射文件的文件。     其次,通过 CreateFileMapping() 函数来为刚才创建的文件内核对象创建一个文件映射并告...