Solved

Finding A Computer's Name

Posted on 1998-12-30
2
152 Views
Last Modified: 2013-11-20
I need a way for my program to find out the name of the computer that is running my program.  Every computer has a computer name which is located in the control panel.  By clicking on network and then the identification tab of your computer you will find the name I am referring to.  Thanks for the help.
0
Comment
Question by:jamoville
2 Comments
 
LVL 15

Accepted Solution

by:
Tommy Hui earned 100 total points
Comment Utility
Use GetComputerName(). From the documentation:

BOOL GetComputerName(LPTSTR lpBuffer,  // address of name buffer
  LPDWORD nSize     // address of size of name buffer);


0
 
LVL 5

Author Comment

by:jamoville
Comment Utility
I was a little quick in putting this question on the board.  I figured out how to do it myself and because your answer is the solution I used you should get the points.
thanks
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Suggested Solutions

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
In this article, I'll describe -- and show pictures of -- some of the significant additions that have been made available to programmers in the MFC Feature Pack for Visual C++ 2008.  These same feature are in the MFC libraries that come with Visual …
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now