Code:#include <windows.h> #include <iostream.h> char *buffer = new TCHAR[256]; DWORD len = MAX_COMPUTERNAME_LENGTH + 1; GetComputerName(buffer,&len); //buffer contains computer name cout<<buffer<<endl;
|
Results 1 to 6 of 6
Threaded View
|
Click Here to Expand Forum to Full Width |