get your computer name using c++, windows only
hi all,
you can get your computer name, which use windows operating system by using this code:
/*********/
#include <iostream>
#include <windows.h>
using namespace std;
int main(){
char name[100];
DWORD length=100;
GetComputerName(name, &length);
cout<<name<<endl;
return 0;
}
/*********/
Related posts:
This entry was posted by AL YAMANI on May 1, 2009 at 4:41 pm, and is filed under Programming. Follow any responses to this post through RSS 2.0.You can leave a response or trackback from your own site.
- SMSLib INSTALLER (.Net/Java)
- setting up a proxy server for small building lan
- add jFileChooserFilter to your java code
- Scan your system using external anti-virus
- Recover your files from dead operating system
- Create configuration file for your application
- get machine local time using c++, windows only
- colorful C++ in Dos
- Computer Terminology
- My ways to by pass censorship
Wonderful Code!
You hit the target straightly!
Thanks for post it!