I was looking through the API Viewer and I found these:

Public Declare Function LockFile Lib "kernel32" Alias "LockFile" (ByVal hFile As Long, ByVal dwFileOffsetLow As Long, ByVal dwFileOffsetHigh As Long, ByVal nNumberOfBytesToLockLow As Long, ByVal nNumberOfBytesToLockHigh As Long) As Long

Public Declare Function LockResource Lib "kernel32" Alias "LockResource" (ByVal hResData As Long) As Long

I am assuming the first one locks a file, and the second one locks a resource (ie: drive or folder, etc.) Am I right? How would I use them? (A practical example is worth a thousand words)