Opens the ipod_control\iTunes\iTunesLock file and locks it for exclusive access. This means if the user tries to 'Safely remove hardware' from the system tray, Windows will disallow removal. Otherwise, the device will likely be able to be disconnected. Note: You must call ReleaseLock() when you're done with the iPod.


Namespace: SharePodLib
Assembly: SharePodLib (in SharePodLib.dll)

Syntax

Visual Basic (Declaration)
Public Sub AcquireLock()
C#
public void AcquireLock()
C++
public:
 void AcquireLock() sealed 
J#
public void AcquireLock()
JScript
public  function AcquireLock()

See Also