Solved

How to get company name?

Posted on 1998-02-07
2
168 Views
Last Modified: 2013-11-19
From within my MFC program I need to get the company
name.  I know how to get the username with the function
GetUserName().  How do I get the Company Name?  I could
not find a function like GetCompanyName().
0
Comment
Question by:kaplan1
2 Comments
 
LVL 7

Expert Comment

by:galkin
ID: 1315745
There is no such an information as Company Name. Use name is the name use used to logon but use is not required to specify company name
0
 
LVL 32

Accepted Solution

by:
jhance earned 100 total points
ID: 1315746
I assume you are talking about the Company Name that Windows asks for when you install it and displays in the My Computer properties and many other places.  It is stored in the registry at:

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\

in the RegisteredOrganization value.
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Finishing the grid – keyboard support for arrow keys to manoeuvre, entering the numbers.  The PreTranslateMessage function is to be used to intercept and respond to keyboard events. Continuing from the fourth article about sudoku. …
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 discusses moving either the default database or any database to a new volume.

762 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

22 Experts available now in Live!

Get 1:1 Help Now