Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Date: Tue, 18 Jun 2002 22:41:10 +0200
From: Pavel Tsekov <ptsekov@gmx.net>
Reply-To: Pavel Tsekov <ptsekov@gmx.net>
X-Priority: 3 (Normal)
Message-ID: <776628761.20020618224110@gmx.net>
To: cygwin@cygwin.com
Subject: Re[2]: Rebase 1.5-1: Causes invalid page fault
In-Reply-To: <20020618202639.GC2064@tishler.net>
References: <20020618153547.16867.qmail@web21010.mail.yahoo.com>
 <14931402774.20020618180431@syntrex.com> <20020618202639.GC2064@tishler.net>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

JT> On Tue, Jun 18, 2002 at 06:04:31PM +0200, Pavel Tsekov wrote:
>> You printed just the first argument.  There is a total of 11 arguments
>> to this function.
>> 
>> BOOL ReBaseImage(
>>   PSTR CurrentImageName,  
>>   PSTR SymbolPath,      
>>   BOOL fReBase,          
>>   BOOL fRebaseSysfileOk,  
>>   BOOL fGoingDown,       
>>   ULONG CheckImageSize,  
>>   ULONG *OldImageSize,  
>>   ULONG_PTR *OldImageBase,  
JT>          ^^^^
JT>          ****
>>   ULONG *NewImageSize,  
>>   ULONG_PTR *NewImageBase,  
JT>          ^^^^
JT>          ****
>>   ULONG TimeStamp        
>> );

JT> The ULONG_PTR above is causing me some concern.  Note that the above
JT> signature does *not* agree with the header file (either MinGW or MSVC)
JT> and I cannot find the definition of ULONG_PTR.  Is the above a typo in
JT> the MSDN or are OldImageBase and NewImageBase really suppose to be a
JT> pointer to pointer?

The above is from help library that is coming with the downloadable
Platform SDK. It is dated November, 2001.

I just grepped /usr/include/w32api:

./basetsd.h:100:typedef  unsigned long ULONG_PTR, *PULONG_PTR;

So it is not a pointer to pointer. They have chosen a strange name
though :)


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

