Hi
I remember you should have been legally living in the country different from your homeland for 12 months before applying for PR.
But it is the rule for applying from overseas.
You can look at
www.cic.gc.ca about applying for PR from inside Canada.
Its not
living in country it is being admitted for 1 year. If you came to Canada on the 6th of Jan and were admitted to the 6 Jan the following year, you could apply to Buffalo, if you came on the 6th of Jan and were admitted to 6th of Decemeber, you couldn't.
PMM