[python-win32] Setting owner of window's file

Mark Hammond mhammond@skippinet.com.au
Tue, 4 Jun 2002 23:24:55 +1000


> But from programming using SetSecurityInfo I can only set the owner to
> logon-session's user or local-administrator, and if I try to set
> it to a any
> other vaild user-account I get the following error ERROR_INVALID_OWNER,
> ("This security ID may not be assigned as the owner of this object.").

Someone else here may have a better answer, but you are probably best off
looking for examples of using SetSecurityInfo in any language - most likely
C++.  It can be trickey getting everything right, and is rarely only a
single call to setup the security correctly.

Try searching for that function at msdn.microsoft.com, looking for samples.

Mark.