[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Finding A Computer's Name

Posted on 1998-12-30
2
Medium Priority
?
206 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 400 total points
ID: 1327002
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
ID: 1327003
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
Ready to get certified? Check out some courses that help you prepare for third-party exams.
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.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month20 days, 12 hours left to enroll

864 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