How to Read Windows Registered User & OrganizationLast reviewed: June 21, 1995Article ID: Q113945 |
The information in this article applies to:
- Standard and Professional Editions of Microsoft Visual Basic for Windows, versions 2.0 and 3.0
SUMMARYThe example in this article demonstrates how to extract user registration information for use in an About box for programs running under Microsoft Windows. It shows you how to retrieve this information from the string table resource inside USER.EXE.
MORE INFORMATIONThe registered owner and organization of Microsoft Windows versions 3.x are stored as string resources in USER.EXE. By knowing the resource identifier, you can use the LoadString Windows API function to read these values into your Visual Basic program. For the registered owner, the resource identifier is 514, and for the registered organization, the resource identifier is 515.
Step-by-Step ExampleThe following example shows you how to implement this into your Visual Basic program.
REFERENCESThe information in this article came from a companion application for "Windows Questions and Answers" by Matt Pietrek ("Microsoft Systems Journal," Vol. 8, No. 10). It is also located on the Microsoft Developers Network (MSDN) CD number 6.
|
Additional reference words: 3.00 MSJ CodeSampleMSDN
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |