i just sent a patch to fix the link problems.
i'll send another tomorrow that implements GetUserName.
Craig Lanning wrote:
On Fri, 11 May 2001 22:23:56 -0700 Ben Wing <ben(a)666.com> wrote:
>
>
> Craig Lanning wrote:
> >
> > [This appears to be caused by a patch that Ben made so I am including him on
> > the cc list.]
> >
> > When I try to do a MinGW build on my Win98 system, I get a runtime error
> > about being "linked to missing export NETAPI32.DLL:NetApiBufferFree"
> > I traced this back to the function user_name_completion in dired.c.
> >
> > The functions NetApiBufferFree and NetUserEnum are not defined on Win9x
> > systems.
> >
> > What is needed from NetUserEnum? Can we get it some other way?
>
> uh ..... list of current users. i suppose there are none under windows 9x?
>
> is there a current username? how do you get it?
Yes.
BOOL GetUserName(LPTSTR,LPDWORD)
lib: advapi32
header: winbase.h
--
ben
I'm sometimes slow in getting around to reading my mail, so if you
want to reach me faster, call 520-661-6661.
See
http://www.666.com/ben/chronic-pain/ for the hell I've been
through.