Solved

NT4 : How can I get the machine name ?

Posted on 1997-11-24
1
207 Views
Last Modified: 2013-12-03
Is there an API call in NT4 that gives me the local machine name ?
0
Comment
Question by:greisch
1 Comment
 
LVL 1

Accepted Solution

by:
kargo earned 50 total points
ID: 1408790
// MACHINE
DWORD size = 255;

if (GetComputerName(csExpandedText.GetBuffer(size), &size) == TRUE)
      csExpandedText.ReleaseBuffer();
else
      csExpandedText.Empty();

0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article describes how to programmatically preset the "Pages per Sheet" option that's available with most printer drivers.   This setting lets you do "n-Up" printing, where two, four, or more pages are printed on each sheet of paper. If your …
For most people, the WrapPanel seems like a magic when they switch from WinForms to WPF. Most of us will think that the code that is used to write a control like that would be difficult. However, most of the work is done by the WPF engine, and the W…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…

706 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

17 Experts available now in Live!

Get 1:1 Help Now