def _get_reparse_data(path):
 if (sys.getwindowsversion().major < 6):
  raise SaltInvocationError('Symlinks are only supported on Windows Vista or later.')
 path = os.path.normpath(path)
 if (not _is_reparse_point(path)):
  return None
 fileHandle = None
 try:
  fileHandle = win32file.CreateFileW(path, 2147483648, 1, None, 3, (2097152 | 33554432))
  reparseData = win32file.DeviceIoControl(fileHandle, 589992, None, 16384)
 finally:
  if fileHandle:
   win32file.CloseHandle(fileHandle)
 return reparseData

def _get_reparse_data ( path ) : if ( sys . getwindowsversion ( ) . major < 6 ) : raise SaltInvocationError ( 'Symlinks are only supported on Windows Vista or later.' ) path = os . path . normpath ( path ) if ( not _is_reparse_point ( path ) ) : return None fileHandle = None try : fileHandle = win32file . CreateFileW ( path , 2147483648 , 1 , None , 3 , ( 2097152 | 33554432 ) ) reparseData = win32file . DeviceIoControl ( fileHandle , 589992 , None , 16384 ) finally : if fileHandle : win32file . CloseHandle ( fileHandle ) return reparseData
retrieves the reparse point data structure for the given path .