Jonathan de Boyne Pollard
2010-03-12 15:20:21 UTC
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote cite="mid:QQwln.73501$***@newsfe18.iad" type="cite">
<p>I believe
that the first user to open the file is allowed to have write access to
the file, but anybody else who opens the
file same gets "read only" access.
</p>
</blockquote>
<p>You believe incorrectly. The behaviour is whatever the application
opening the file decides it to be. Win32 imposes no such restriction
as you state. Win32 allows all application processes opening a file to
have it open read-write, for example, if that is the sharing mode that
they all agree upon.<br>
</p>
<p>You're thinking of Microsoft Office and SharePoint. It is they that
enforce behaviour like the above, not Win32. They also agree on
private application-level mechanisms such as "owner files" (q.v.). How
one retrives such application-specific information is, of course,
application specific. With WebDAV file locking, for example, one calls
the <code>DavGetTheLockOwnerOfTheFile()</code> function in the WebDAV
API.<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="font-family: Arial,Helvetica,sans-serif; font-size: 21px; font-weight: bold;"><br>
</span></span></p>
</body>
</html>
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<blockquote cite="mid:QQwln.73501$***@newsfe18.iad" type="cite">
<p>I believe
that the first user to open the file is allowed to have write access to
the file, but anybody else who opens the
file same gets "read only" access.
</p>
</blockquote>
<p>You believe incorrectly. The behaviour is whatever the application
opening the file decides it to be. Win32 imposes no such restriction
as you state. Win32 allows all application processes opening a file to
have it open read-write, for example, if that is the sharing mode that
they all agree upon.<br>
</p>
<p>You're thinking of Microsoft Office and SharePoint. It is they that
enforce behaviour like the above, not Win32. They also agree on
private application-level mechanisms such as "owner files" (q.v.). How
one retrives such application-specific information is, of course,
application specific. With WebDAV file locking, for example, one calls
the <code>DavGetTheLockOwnerOfTheFile()</code> function in the WebDAV
API.<span class="Apple-style-span"
style="border-collapse: separate; color: rgb(0, 0, 0); font-family: 'Times New Roman'; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
class="Apple-style-span"
style="font-family: Arial,Helvetica,sans-serif; font-size: 21px; font-weight: bold;"><br>
</span></span></p>
</body>
</html>