|
api_读文件 ()返回 (0 ) 变量名 | 类 型 | 静态 | 数组 | 备 注 | buffer | 字节集 | | | hFileRead | 整数型 | | | nIn | 整数型 | | | pnIn | 整数型 | | | bTrue | 逻辑型 | | | pbuffer | 整数型 | | | m | 整数型 | | | n | 整数型 | | |
buffer = 取空白字节集 (2 )hFileRead = CreateFileA (“book.txt”, 十六进制到整数 (“0x80000000”), 1, 0, 3, 128, 0 )pnIn = 取 变量地址 (nIn )pbuffer = 取 变量数据地址_字节集 (buffer )n = 2 如果真 (hFileRead ≤ 0 )调试输出 (“打开文件失败”, GetLastError ()) 返回 ()循环判断首 ()bTrue = ReadFile (hFileRead, pbuffer, 2, pnIn, 0 ) 如果真 (指针到整数_汇编 (pnIn ) > 0 )buffer = buffer + 指针到字节集 (pbuffer, 2 )调试输出 (到文本 (buffer )) 循环判断尾 (bTrue = 真 且 指针到整数_汇编 (pnIn ) > 0 )CloseHandle (hFileRead )置入代码 ({ 93, 139, 68, 36, 4, 194, 4, 0 }) 返回 (0 )置入代码 ({ 139, 69, 8, 139, 0, 5, 8, 0, 0, 0, 201, 194, 4, 0 }) 返回 (0 )置入代码 ({ 139, 93, 8, 139, 27, 51, 192, 190, 16, 0, 0, 0, 15, 182, 11, 128, 249, 64, 114, 5, 128, 233, 55, 235, 13, 128, 249, 32, 116, 12, 128, 249, 0, 116, 10, 128, 233, 48, 247, 230, 3, 193, 67, 235, 223, 139, 229, 93, 194, 4, 0, 195 })返回 (0 )
|
|