Problem:
Using Win 32 API functions to get the current user logged on the network
Resolution:
INTRODUCTION
==========
This program demonstrates winapi call to get the network usernames.
SOURCE FILES:
=========
Program Files Description
---------------- -----------------------------------------------------------
getnuser.cbl program makes the necessary win api calls to get network usernames.
Copy Files:
---------------- -----------------------------------------------------------
miniwin.cpy need these copybooks for winapi calls.
winerror.cpy
winnetwk.cpy
wintypes.cpy
REQUIREMENTS:
==========
Edit the getnuser.cbl and at the top you will notice the compiler Directive intcode(1) that will need to be set for creation of .int intcode is initially set to 1.
Change compiler directive to intcode(2) for creation of .exe
OPERATION:
========
Animate or run the getnuser.int and step through the code. Also, take a look at the application output window. The network username will be displayed.
NOTE:
====
Use the win32sdk online reference for more information.
==========================================================
Keywords: demonstration, sample, example, demo, win32 api, getnuser.zip
demo.ex
demo.ne