NTFS reparse points

Roger Upole rupole at hotmail.com
Sat Nov 5 01:56:38 EST 2005


You should be able to use win32file.DeviceIoControl with
winioctlcon.FSCTL_SET_REPARSE_POINT to do this.
(winioctlcon was added in build 205)
The hard part is going to be constructing the
REPARSE_GUID_DATA_BUFFER struct to pass in
as the buffer.

   hth
       Roger

"Stanislaw Findeisen" <my_initials at nglogic.com> wrote in message news:dkct0v$68j$1 at achot.icm.edu.pl...
>I want to create a reparse point on NTFS (any).
>
> Here (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/reparse_points.asp) I read: "reparse points 
> are used to implement NTFS file system links". Here 
> (http://msdn.microsoft.com/library/default.asp?url=/library/en-us/fileio/fs/hard_links_and_junctions.asp) I read: "Soft links 
> are implemented through reparse points".
>
> However I can't see FILE_ATTRIBUTE_REPARSE_POINT turned on in any file / directory shortcuts I create. In fact the only 
> attribute set in shortcuts created using Windows Explorer is FILE_ATTRIBUTE_ARCHIVE. (I am using GetFileAttributes() to 
> examine this.)
>
> The questions are:
>
> (1) Why is that so?
> (2) Does anybody have any idea (sample code?) on how to create a reparse point (the simpler, the better) using Python?
>
> I am using Windows 2000 Professional, Python 2.4 and Mark Hammond's Python for Windows Extensions build 204.
>
> Thank you.
>
> +-------------------------------------------------------+
> | When replying, please replace "my_initials" in the    |
> | From: address field with my initials - that is, "SF". |
> +-------------------------------------------------------+
>
> -- 
>     http://www.nglogic.com
>     Enter through the narrow gate! (Mt 7:13-14) 



----== Posted via Newsfeeds.Com - Unlimited-Uncensored-Secure Usenet News==----
http://www.newsfeeds.com The #1 Newsgroup Service in the World! 120,000+ Newsgroups
----= East and West-Coast Server Farms - Total Privacy via Encryption =----



More information about the Python-list mailing list