Would like to get some code on how to shutdown windows using the API.

Thanks