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