If you go the Sharepoint's Search Center -> Site Settings -> Search Settings. There's Site Collection Search Results Page which is used for configuring the search results page used for contextual searches (such as "This Site"). The default value is
/_layouts/osssearchresults.aspx
How can I retrieve and change this value through the SharePoint object model?
Thanks in advance.