Q qblinux Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-19 #1 各位好:<br> 我的问题是怎样用Win32Api- MapViewOfFile 从文件的指定位置进行映射。<br>谢了!
P proman Unregistered / Unconfirmed GUEST, unregistred user! 2004-05-19 #2 LPVOID MapViewOfFile(<br><br> HANDLE hFileMappingObject, // file-mapping object to map into address space <br> DWORD dwDesiredAccess, // access mode <br> DWORD dwFileOffsetHigh, // high-order 32 bits of file offset <br> DWORD dwFileOffsetLow, // low-order 32 bits of file offset <br> DWORD dwNumberOfBytesToMap // number of bytes to map <br> <br><br>在建立视图时是允许指定映射的偏移量的啊。
LPVOID MapViewOfFile(<br><br> HANDLE hFileMappingObject, // file-mapping object to map into address space <br> DWORD dwDesiredAccess, // access mode <br> DWORD dwFileOffsetHigh, // high-order 32 bits of file offset <br> DWORD dwFileOffsetLow, // low-order 32 bits of file offset <br> DWORD dwNumberOfBytesToMap // number of bytes to map <br> <br><br>在建立视图时是允许指定映射的偏移量的啊。