网站首页  词典首页

请输入您要查询的函数:

 

术语 unlockfileex
释义 UnlockFileEx
语法:
C++
BOOL WINAPI UnlockFileEx(
__in HANDLE hFile,
__reserved DWORD dwReserved,
__in DWORD nNumberOfBytesToUnlockLow,
__in DWORD nNumberOfBytesToUnlockHigh,
__inout LPOVERLAPPED lpOverlapped
);
UnlockFileEx功能
解锁一个指定的文件区域。这个功能可以操作同步或异步。
参数
hFile [in]
阿处理该文件。在处理时一定是要么GENERIC_READ或GENERIC_WRITE访问权限创建。有关更多信息,请参阅文件安全性和访问权限。
dwReserved
保留参数,必须为零。
nNumberOfBytesToUnlockLow [in]
的低字节的范围长度秩序的一部分来解锁。
nNumberOfBytesToUnlockHigh [in]
的高字节的范围长度秩序的一部分来解锁。
lpOverlapped [ in , out ]
与开锁请求指针,指向一个OVERLAPPED结构的函数使用。这个结构包含了解锁范围的开始抵消文件。您必须初始化hEvent成员有效的处理或零。有关更多信息,请参阅同步和异步I / O。
返回值
如果函数成功,返回值为非零。
如果函数失败,返回值为零或NULL。为了获得更多错误信息,调用GetLastError。
备注
解锁一个文件的一个地区发行的文件先前获得的锁。该地区解锁必须完全一致,因此现有的锁定区域。一个文件的两个邻近地区无法锁定,然后锁定单独使用一个地区横跨内陆地区。
锁CloseHandle函数之前释放处理完了。
要求:
最低支持:client-Windows 2000专业版
最低支持server-Windows 2000服务器
HeaderWinBase.h(头文件:winuser.h)
LibraryKernel32.lib
DLLKernel32.dll
参见
CreateFile
文件管理函数
取决于LockFile
LockFileEx
的OVERLAPPED
同步和异步I / O
UnlockFile
如果有任何问题和意见,请发送给微软(wsddocfb@microsoft.com)
生成日期:2009年9月3日
==英文原文==UnlockFileEx Function
Unlocks a region in the specified file. This function can operate either synchronously or asynchronously.
Syntax
C++
BOOL WINAPI UnlockFileEx(
__in HANDLE hFile,
__reserved DWORD dwReserved,
__in DWORD nNumberOfBytesToUnlockLow,
__in DWORD nNumberOfBytesToUnlockHigh,
__inout LPOVERLAPPED lpOverlapped
);
Parameters
hFile [in]
A handle to the file. The handle must have been created with either the GENERIC_READ or GENERIC_WRITE access right. For more information, see File Security and Access Rights .
dwReserved
Reserved parameter; must be zero.
nNumberOfBytesToUnlockLow [in]
The low-order part of the length of the byte range to unlock.
nNumberOfBytesToUnlockHigh [in]
The high-order part of the length of the byte range to unlock.
lpOverlapped [in, out]
A pointer to an OVERLAPPED structure that the function uses with the unlocking request. This structure contains the file offset of the beginning of the unlock range. You must initialize the hEvent member to a valid handle or zero. For more information, see Synchronous and Asynchronous I/O .
Return Value
If the function succeeds, the return value is nonzero.
If the function fails, the return value is zero or NULL. To get extended error information, call GetLastError .
Remarks
Unlocking a region of a file releases a previously acquired lock on the file. The region to unlock must correspond exactly to an existing locked region. Two adjacent regions of a file cannot be locked separately and then unlocked using a single region that spans both locked regions.
Locks are released before the CloseHandle function is finished processing.
Requirements
Minimum supported clientWindows 2000 Professional
Minimum supported serverWindows 2000 Server
HeaderWinBase.h (include Windows.h)
LibraryKernel32.lib
DLLKernel32.dll
See Also
CreateFile
File Management Functions
LockFile
LockFileEx
OVERLAPPED
Synchronous and Asynchronous I/O
UnlockFile
Send comments about this topic to Microsoft
Build date: 9/3/2009
==原始网址==http://msdn.microsoft.com/en-us/library/aa365716(VS.85).aspx\n
随便看

 

windows api函数参考手册包含2258条windows api函数文档,详细介绍nodejs、java、rust调用windows api的方法技巧,是学习windows api编程的入门中文文档。

 

Copyright © 2004-2023 Winrtm.com All Rights Reserved
京ICP备2021023879号-40 更新时间:2024/10/6 13:17:33