I downloaded the PhotoView reference app for Win7 with source. The app works, but I can't get the project to build.
There is a ServiceControlInterop C++ project in the solution that won't build. I figured out that it needed the Win7 SDK, which I downloaded, but now that I've got the proper winsvc.h referenced I get a slew of new errors. I'm far from an adept C++ developer, so I'm hoping this list will call out something obvious to some C++ guru:
UPDATE: anelson was exactly correct, adding those paths allowed me to compile the ServiceControlInterop project.
For those interested, you'll also need the UACHelpers project and the Microsoft.KtmIntegration class to get the whole solution to compile, it's quite a beast. Add the UACHelpers project to the solution and create a new project for the Microsoft.KtmIntegration class (the link is to a code listing on MSDN... I think it must be a supporting class they forgot to include with the PhotoView source.)
Error 13 error C2065: 'NETWORK_MANAGER_FIRST_IP_ADDRESS_ARRIVAL_GUID' : undeclared identifier C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h 313 ServiceControlInterop (Windows7Plugins\TrigerStartService\ServiceControlInterop)
Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h 318 ServiceControlInterop (Windows7Plugins\TrigerStartService\ServiceControlInterop)
Error 15 error C2078: too many initializers C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h 318 ServiceControlInterop (Windows7Plugins\TrigerStartService\ServiceControlInterop)
Error 16 error C2065: 'NETWORK_MANAGER_LAST_IP_ADDRESS_REMOVAL_GUID' : undeclared identifier C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h 321 ServiceControlInterop (Windows7Plugins\TrigerStartService\ServiceControlInterop)
Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int C:\Program Files\Microsoft SDKs\Windows\v7.0\include\Winsvc.h 326 ServiceControlInterop (