Problem:
This shows how to get the details of the currently logged on users using Win32 API functions
Resolution:
INTRODUCTION
==========
This program demonstrates using windows api calls to get computer name and user name. Place a brief description of the sample
SOURCE FILES:
=========
Program Files Description
---------------- -----------------------------------------------------------
getuser.cbl Program that makes win32 api calls to get the computer name and user name.
Copy Files:
---------------- -----------------------------------------------------------
miniwin.cpy copybook needed to use the winapi calls.
wintypes.cpy copybook needed to use the winapi calls.
REQUIREMENTS:
==========
Install the win32 sdk from the netexpress 3.1 cd-2 . this will create a directory called MSTOOLS.
OPERATION:
========
Run or Animate the getuser.int and step through the code. Also, look at the application output window. It will display computer name and username.
==========================================================
Keywords: demonstration, sample, example, demo, win32 api, getuser.zip
demo.ex
demo.ne