HardTotals.ClaimFile(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Tries to gain exclusive access to a specific file for use.
public abstract void ClaimFile (int handle, int timeout);
abstract member ClaimFile : int * int -> unit
Public MustOverride Sub ClaimFile (handle As Integer, timeout As Integer)
Parameters
- handle
- Int32
Handle to the totals file to claim.
- timeout
- Int32
The time (in milliseconds) to wait for the file to become available.If zero, ClaimFile tries to claim the file, then returns the appropriate status immediately.If WaitForever is specified, ClaimFile waits as long as needed until exclusive access is satisfied.