المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Organizing my program in classes? And question about registry information retrieval.



C++ Programming
04-10-2009, 07:10 PM
Hi everyone,

thank you to all who have helped me so far. I have a question about creating classes.

I was wondering if I would keep int main() completely separate, and then have the function which retrieves the local computer name a subclass of the retrieval process. I am more or less trying to organize my program.

My program is designed to retrieve information, that's it. Right now I have it working to retrieve the local computer name through a NetBIOS function. I do however want to learn how to do this through the registry.

Question Number one, is it more accurate to pull the computer name from the registry or from the NetBIOS?

Question Number two, can you retrieve the group policy that user is under as well?

Question Number three, where can I find a good reading for retrieving information via the registry? I have looked on MSDN and did not find a registry library.

Thank you in advance!