Contents Index Topic Contents | ||
Previous Topic: InternetGetLastResponseInfo Next Topic: InternetOpen |
InternetLockRequestFile
BOOL InternetLockRequestFile ( IN HINTERNET hInternet, OUT HANDLE *lphLockReqHandle );Allows the user to place a lock on the file that is being used.
- Returns TRUE if successful, or FALSE otherwise. To get a specific error message, use GetLastError.
- hInternet
- HINTERNET handle returned by FtpOpenFile, GopherOpenFile, HttpOpenRequest, or InternetOpenUrl.
- lphLockReqHandle
- Address of a handle to store the lock request handle.
If the HINTERNET handle passed to hInternet was created using INTERNET_FLAG_NO_CACHE_WRITE or INTERNET_FLAG_DONT_CACHE, the function creates a temporary file with the extension TMP, unless it is an HTTPS resource. If the handle was created using INTERNET_FLAG_NO_CACHE_WRITE or INTERNET_FLAG_DONT_CACHE and it is accessing an HTTPS resource, InternetLockRequestFile fails.
See also InternetUnlockRequestFile
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.