Discussion:
Determine who is using a file?
(too old to reply)
Jonathan de Boyne Pollard
2010-03-12 15:20:21 UTC
Permalink
<!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&nbsp;write access to
the file, but anybody else who opens the
file same gets "read only" access.
</p>
</blockquote>
<p>You believe incorrectly.&nbsp; The behaviour is whatever the application
opening the file decides it to be.&nbsp; Win32 imposes no such restriction
as you state.&nbsp; 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.&nbsp; It is they that
enforce behaviour like the above, not Win32.&nbsp; They also agree on
private application-level mechanisms such as "owner files" (q.v.).&nbsp; How
one retrives such application-specific information is, of course,
application specific.&nbsp; 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>
Jonathan de Boyne Pollard
2010-03-12 23:31:51 UTC
Permalink
<!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:h_xmn.250577$***@newsfe25.iad" type="cite">
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
<meta name="GENERATOR" content="MSHTML 8.00.6001.18882">
<style></style>
<div>
<p>
<blockquote type="cite">You're thinking of Microsoft Office and
SharePoint.&nbsp; It is they that enforce behaviour like the above, not
Win32.&nbsp; They also agree on private application-level mechanisms such as
"owner files" (q.v.).&nbsp; How one retrives such application-specific
information is, of course, application specific.&nbsp; With WebDAV file
locking, for example, one calls the <code>DavGetTheLockOwnerOfTheFile()</code>
function in the WebDAV API.</blockquote>
</p>
<p>Yes, I am trying to find something in Microsoft Office that will
possibly let me enumerate through each user who currently has access to
the current document.&nbsp; [...] Nobody in the Office boards knew any
"application specific" solutions,&nbsp; [...]</p>
</div>
</blockquote>
<p>Then get them to tell you about owner files.&nbsp; Or just look up the
concept in the MS KnowledgeBase yourself.&nbsp; (-:</p>
</body>
</html>

Loading...