coool :P Faith told me to comment o i did XD
Had a bit of trouble finding this out for myself simply because Ive never done it before. But MSDN was more than helpful. This is my easier to understand version I guess and I hope it helps some of y'all out. As you know it was on one of my injectors and I got a few PMs asking how I did it so here it is.
Also, if you wanted to get the name of the current user logged on:Code://Operating System Detection OSVERSIONINFO OS; ZeroMemory(&OS, sizeof(OSVERSIONINFO)); OS.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); GetVersionEx(&OS); if (OS.dwMajorVersion == 6 && OS.dwMinorVersion == 1) { Log->Lines->Add(”Windows 7 Detected”); } if (OS.dwMajorVersion == 6 && OS.dwMinorVersion == 0) { Log->Lines->Add(”Windows Vista Detected”); } if (OS.dwMajorVersion == 5) { Log->Lines->Add(”Windows XP Detected”); }
//Get Computer Information
Code:TCHAR sUserName[UNLEN + 1]; TCHAR sCompName[MAX_COMPUTERNAME_LENGTH + 1]; DWORD dwUserName = sizeof(sUserName); DWORD dwCompName = sizeof(sCompName); GetUserName(sUserName, &dwUserName); GetComputerName(sCompName, &dwCompName);
How many of you guys would be interested in starting a set of classes geared towards teaching the average users the basics of C++? I was thinking bout hosting sessions
Last edited by Faith; 10-20-2009 at 05:51 PM.
Check FaithDEV for my latest applications.
//Given permission by Dave to post a link to my blog.
coool :P Faith told me to comment o i did XD
I want the classes!
minyman123 (01-03-2013)
"Every gun that is made, every warship launched, every rocket fired signifies, in the final sense, a theft from those who hunger and are not fed, those who are cold and are not clothed. This world in arms is not spending money alone. It is spending the sweat of its laborers, the genius of its scientists, the hopes of its children. The cost of one modern heavy bomber is this: a modern brick school in more than 30 cities. It is two electric power plants, each serving a town of 60,000 population. It is two fine, fully equipped hospitals. It is some fifty miles of concrete pavement. We pay for a single fighter plane with a half million bushels of wheat. We pay for a single destroyer with new homes that could have housed more than 8,000 people. This is, I repeat, the best way of life to be found on the road the world has been taking. This is not a way of life at all, in any true sense. Under the cloud of threatening war, it is humanity hanging from a cross of iron."- Dwight D. Eisenhower
Reading the registry for the OS is cool too. Buh I guess I won't be using this code any time soon because I'm a VB.Net(er).
Any donations would help
Originally Posted by Bombsaway707Originally Posted by BloodOriginally Posted by Alby-kunOriginally Posted by AliOriginally Posted by CodeDemon[21:13] CoderNever: HOLY SHIT ITS USER1!Yes it is me... Yup Yup
[IMG]https://i111.photobucke*****m/albums/n121/golmor/learntoprogram-1.png[/IMG]
I guess your right, but I kind of need something to do to keep me occupied. Plus live help is better than a video that wont help you with the specific problems you may have.
Check FaithDEV for my latest applications.
//Given permission by Dave to post a link to my blog.
sure that sounds fun =).
How many of you guys would be interested in starting a set of classes geared towards teaching the average users the basics of C++? I was thinking bout hosting sessions
hmm im interested
Last edited by Matrix_NEO006; 10-20-2009 at 09:43 PM.
im interested, good idea!
[YOUTUBE]<object width="560" height="340"><param name="movie" value="https://www.youtube.com/v/MVchQI1cKwM&hl=en_US&fs=1&"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="https://www.youtube.com/v/MVchQI1cKwM&hl=en_US&fs=1&" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object>[/YOUTUBE]