Solved

NT4 : How can I get the machine name ?

Posted on 1997-11-24
1
209 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Windows Mobile 6.5 device Apache Flex 3 45
Timely operations (on order of hours) from within a VM 3 57
Need example 5 113
PL SQL Developer 7 32
This article describes a technique for converting RTF (Rich Text Format) data to HTML and provides C++ source that does it all in just a few lines of code. Although RTF is coming to be considered a "legacy" format, it is still in common use... po…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

786 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