gjon
Sep 6th, 2007, 06:19 PM
Ok, bear with me. I am wanting to learn exactly this. How you find what you think you need to work with and how to work with it.
I wanted to work on a project that would motivate me to learn. What I thought would be a small project; to make a program that would allow the computer to shut down each night at a certain time. The hardest part seems to be finding what I need and knowing how to use it.
Ok, so here's what I believe to be a method in the MSDN Library concerning the shutting down of a windows computer system. It's at the page:
http://msdn2.microsoft.com/en-us/library/Aa376873.aspx
Now this is the methods(?) code:
BOOL WINAPI InitiateSystemShutdown(
LPTSTR lpMachineName,
LPTSTR lpMessage,
DWORD dwTimeout,
BOOL bForceAppsClosed,
BOOL bRebootAfterShutdown
);
And below it tells what I believe these fields are for. I am confused as to what all this represents.
But how do you use it? How do you guys figure out what to do with this stuff? The MSDN Library seems like
some cryptic dictionary. This is nothing like how a book shows you how to code. The book gives you everything you need
and you just work with it.
My biggest struggle is the real life scenario where there is no book to follow. Finding what I need to work with and how
to begin using it.
This seems like the most complicated part. Yet most posts say, do a simple search and there's your answer.
Baffles me...
Thanks in advance for any explanations.
I wanted to work on a project that would motivate me to learn. What I thought would be a small project; to make a program that would allow the computer to shut down each night at a certain time. The hardest part seems to be finding what I need and knowing how to use it.
Ok, so here's what I believe to be a method in the MSDN Library concerning the shutting down of a windows computer system. It's at the page:
http://msdn2.microsoft.com/en-us/library/Aa376873.aspx
Now this is the methods(?) code:
BOOL WINAPI InitiateSystemShutdown(
LPTSTR lpMachineName,
LPTSTR lpMessage,
DWORD dwTimeout,
BOOL bForceAppsClosed,
BOOL bRebootAfterShutdown
);
And below it tells what I believe these fields are for. I am confused as to what all this represents.
But how do you use it? How do you guys figure out what to do with this stuff? The MSDN Library seems like
some cryptic dictionary. This is nothing like how a book shows you how to code. The book gives you everything you need
and you just work with it.
My biggest struggle is the real life scenario where there is no book to follow. Finding what I need to work with and how
to begin using it.
This seems like the most complicated part. Yet most posts say, do a simple search and there's your answer.
Baffles me...
Thanks in advance for any explanations.