InternetLockRequestFileInternetLockRequestFile*
*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.

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


Up Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.