Where can I find sample API code for Windows solutions?

PayPal API solutions for Windows (Classic ASP/VBScript and .NET)

PayPal provides SDKs for Classic ASP and ASP.NET. Both require the .NET framework on the host machine. You can download these from the PayPal Developer Portal.