If you lock the car and then open the boot (using the remote, possibly the key to) it will not set the alarm off.
You're right, opening the boot with the remote when its alarmed won't set the alarm off. Opening it manually with the key when its alarmed will set it off however.