Can you post pictures of your rifle? I have not heard that the rails are riveted in any way.
In the picture below you posted; "A" does screw in and adjusts the dot sight in this case for windage. "B" secures it and acts like a lock screw to prevent movement once the sight is adjusted. It "B" screws into the receiver.