🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #495

Re: netapi32.dll error on Win 98

#495
From: Darko Miletic
Date: Mon, 17 Mar 2008 17:09
18 lines
1669 bytes
Asger Joergensen wrote:
> Hi there
> 
> When I run one of my apps on win 98 I get an error about my exe 
> being linked to netapi32.dll. regarding NetApiBufferFree and 
> NetUserGetInfo

You got the right answer from Remy. I will just add that in Win 9x LAN 
manager API functions, of which NetUserGetInfo is part, is availiable 
only in a 16-bit dll called netapi.dll.
To call this api on win9x you will have to use technique called flat 
thunking.

You can find more info about that here:
http://catch22.net/tuts/cardtut.asp

also here:
http://dosa.web.elte.hu/asm/TASM5/EXAMPLES/THUNK95/THUNK95.TXT
Technical Details
Message-ID: <47dea5b7@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <MPG.224749bb6584672f989a94@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,ce81d556f226ae33
X-Google-Attributes: gid10cc67,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Mon, 17 Mar 2008 14:09:10 -0300
From: Darko Miletic <kiklop@fibertel.com.ar>
Reply-To: Darko Miletic <kiklop@fibertel.com.ar>
User-Agent: Thunderbird 2.0.0.12 (Windows/20080213)
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: netapi32.dll error on Win 98
References: <MPG.224749bb6584672f989a94@newsgroups.borland.com>
In-Reply-To: <MPG.224749bb6584672f989a94@newsgroups.borland.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Antivirus: avast! (VPS 080317-0, 17/03/2008), Outbound message
X-Antivirus-Status: Clean
NNTP-Posting-Host: 200.49.157.165
Message-ID: <47dea5b7@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1205773751 200.49.157.165 (17 Mar 2008 10:09:11 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail