[python-win32] Error Creating Reparse Point

Masood Siddiqi masood_siddiqi at yahoo.com
Wed Jun 4 20:20:44 EDT 2003


Hi
 
I have been trying to create a reparse point using win32file.DeviceIoControl and getting this message
 
try :   
        handle = win32file.CreateFile(path,win32file.GENERIC_WRITE|win32file.GENERIC_READ|win32file.GENERIC_EXECUTE,
                                      0,None,win32file.CREATE_NEW,
                                      FILE_FLAG_OPEN_REPARSE_POINT|win32file.FILE_FLAG_BACKUP_SEMANTICS,
                                      None)
        status = win32file.DeviceIoControl(handle,FSCTL_SET_REPARSE_POINT,"",0)
        print status
        handle.Close()
        
    except Exception, e:
        print e
        log(">> Failed")
        return
    log(">> Success")
    return
 
 
where 
 
FSCTL_SET_REPARSE_POINT      = 0x000900a4
FSCTL_GET_REPARSE_POINT      = 0x000900a8
FSCTL_DELETE_REPARSE_POINT   = 0x000900ac
 
The message that i get is
 
(1784, 'DeviceIoControl', 'The supplied user buffer is not valid for the requested operation.')
 
Any Help.
 
Regards
 
-Masood Siddiqi


---------------------------------
Do you Yahoo!?
Free online calendar with sync to Outlook(TM).
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20030604/62fd98bf/attachment.htm


More information about the Python-win32 mailing list