Open pipe in 'passive' mode if the desired access right is FILE_READ_ATTRIBUTES.