Had the same issue (drivers door lock and power window not working) and I read all of the solutions posted. I did get it resolved doing the following;
-make sure the battery is fully charged, no corrosion on the battery post or leads
-check the fuse, replace if blown
-drive the car for at least an hour with multiple stops turning the car off for several minutes
Driving the car, stopping and waiting for several minutes and shifting the gear lever in and out of gear along with a fully carged battery will solve it most of the time. If not, then it may be the switch indicated in the other postings.
My solution took about 2 days as I repeated all steps (except the driving & stopping). Think the combined action of charging the battery and the driving soved it because all was well about 3 hours after driving around doing errands.
Good luck