FAR and 64 bit?

Hello,

I noticed plenty of:

//
// Make sure FAR is defined...
//
#ifndef FAR
#ifdef _WIN32
#define FAR
#else
#define FAR _far
#endif
#endif

In various Windows headers, including in the latest DDKs. Am I right to
assume that _WIN32 will not be defined for 64 bit environments and all the
old 32 bit code using FAR for compatibility with 16 bit assuming that FAR
will be replace by empty string is now having FAR replaced again by _far?
Would it have any consequence?

Best regards,

David Burg


Small and motivated,
Active and Reactive,
Welcome to the InCD Team.

David Burg
Software Development,
InCD Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com

The LDK has FAR defined as nothing everywhere I looked - wdm.h & ntddk.h.
It is not conditional on 32 or 64 bit environments.

“David Burg” wrote in message news:xxxxx@ntdev…
> Hello,
>
> I noticed plenty of:
>
> //
> // Make sure FAR is defined…
> //
> #ifndef FAR
> #ifdef _WIN32
> #define FAR
> #else
> #define FAR _far
> #endif
> #endif
>
> In various Windows headers, including in the latest DDKs. Am I right to
> assume that _WIN32 will not be defined for 64 bit environments and all the
> old 32 bit code using FAR for compatibility with 16 bit assuming that FAR
> will be replace by empty string is now having FAR replaced again by _far?
> Would it have any consequence?
>
> Best regards,
>
> David Burg
>
> ----------------------------------------------------------------
> Small and motivated,
> Active and Reactive,
> Welcome to the InCD Team.
> ----------------------------------------------------------------
> David Burg
> Software Development,
> InCD Project Leader
>
> Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
> Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
> 76307 Karlsbad email: xxxxx@nero.com
> Germany http://www.nero.com
> ----------------------------------------------------------------
>
>
>

Interesting … that code snippet looks a bit familiar to me … where exactly did you find this ?

----- Original Message -----
From: “David Burg”
To: “Windows System Software Devs Interest List”
Sent: Monday, August 16, 2004 7:18 PM
Subject: [ntdev] FAR and 64 bit?

> Hello,
>
> I noticed plenty of:
>
> //
> // Make sure FAR is defined…
> //
> #ifndef FAR
> #ifdef _WIN32
> #define FAR
> #else
> #define FAR _far
> #endif
> #endif
>
> In various Windows headers, including in the latest DDKs. Am I right to
> assume that _WIN32 will not be defined for 64 bit environments and all the
> old 32 bit code using FAR for compatibility with 16 bit assuming that FAR
> will be replace by empty string is now having FAR replaced again by _far?
> Would it have any consequence?
>
> Best regards,
>
> David Burg
>
> ----------------------------------------------------------------
> Small and motivated,
> Active and Reactive,
> Welcome to the InCD Team.
> ----------------------------------------------------------------
> David Burg
> Software Development,
> InCD Project Leader
>
> Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
> Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
> 76307 Karlsbad email: xxxxx@nero.com
> Germany http://www.nero.com
> ----------------------------------------------------------------
>
>
>
> —
> Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as: xxxxx@compaqnet.be
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

> Am I right to assume that _WIN32 will not be defined for 64 bit
environments

No. _WIN32 is always defined, even on 64-bit Windows. Too much code
would break if MSFT did anything else.

Hello,

In build 3790 of DDK, you can make a search in file. Some sample of
occurances:

C:\WINDDK\3790\INC\ddk\w2k\ntddscsi.h(37):#define FAR
C:\WINDDK\3790\INC\ddk\w2k\ntddser.h(38):#define FAR
C:\WINDDK\3790\INC\ddk\w2k\ntddstor.h(37):#define FAR
C:\WINDDK\3790\INC\ddk\wnet\diskguid.h(33):#define FAR
C:\WINDDK\3790\INC\ddk\wnet\ntddscsi.h(37):#define FAR
C:\WINDDK\3790\INC\ddk\wnet\ntddser.h(38):#define FAR
C:\WINDDK\3790\INC\ddk\wnet\ntddstor.h(37):#define FAR
Etc...

Best regards,

David Burg


David Burg
Software Development,
InCD Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Christiaan
Ghijselinck
Sent: Monday, August 16, 2004 8:35 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] FAR and 64 bit?

Interesting ... that code snippet looks a bit familiar to me ... where
exactly did you find this ?

----- Original Message -----
From: "David Burg"
To: "Windows System Software Devs Interest List"
Sent: Monday, August 16, 2004 7:18 PM
Subject: [ntdev] FAR and 64 bit?

> Hello,
>
> I noticed plenty of:
>
> //
> // Make sure FAR is defined...
> //
> #ifndef FAR
> #ifdef _WIN32
> #define FAR
> #else
> #define FAR _far
> #endif
> #endif
>
> In various Windows headers, including in the latest DDKs. Am I right to
> assume that _WIN32 will not be defined for 64 bit environments and all the
> old 32 bit code using FAR for compatibility with 16 bit assuming that FAR
> will be replace by empty string is now having FAR replaced again by _far?
> Would it have any consequence?
>
> Best regards,
>
> David Burg
>
> ----------------------------------------------------------------
> Small and motivated,
> Active and Reactive,
> Welcome to the InCD Team.
> ----------------------------------------------------------------
> David Burg
> Software Development,
> InCD Project Leader
>
> Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
> Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
> 76307 Karlsbad email: xxxxx@nero.com
> Germany http://www.nero.com
> ----------------------------------------------------------------
>
>
>
> ---
> Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
>
> You are currently subscribed to ntdev as:
xxxxx@compaqnet.be
> To unsubscribe send a blank email to xxxxx@lists.osr.com
>

---
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@nero.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Thanks for the information. :slight_smile: Good to know there is no worry to have about
'far' pointers.

However it does not sound very good to keep dummy FAR definition for 16 bits
code compatibility, plus _WIN32 definition, we actually it is code for a 64
bit platform that is been created. Maybe some maintenance work to clean up
old stuff could be done there.

Best regards,

David Burg


David Burg
Software Development,
InCD Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of McNamee, John
Sent: Monday, August 16, 2004 8:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

Am I right to assume that _WIN32 will not be defined for 64 bit
environments

No. _WIN32 is always defined, even on 64-bit Windows. Too much code
would break if MSFT did anything else.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@nero.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

It is very difficult for Microsoft to change ANY standard header file
definitions. In general the best they can do is to pile on new stuff over
the old cruft. The 16bit crap is here to stay until the last dos app is
dead, which ought to be somewhere around 2104.

=====================
Mark Roddy

-----Original Message-----
From: David Burg [mailto:xxxxx@nero.com]
Sent: Thursday, August 19, 2004 9:42 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

Thanks for the information. :slight_smile: Good to know there is no worry to have about
'far' pointers.

However it does not sound very good to keep dummy FAR definition for 16 bits
code compatibility, plus _WIN32 definition, we actually it is code for a 64
bit platform that is been created. Maybe some maintenance work to clean up
old stuff could be done there.

Best regards,

David Burg


David Burg
Software Development,
InCD Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of McNamee, John
Sent: Monday, August 16, 2004 8:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

Am I right to assume that _WIN32 will not be defined for 64 bit
environments

No. _WIN32 is always defined, even on 64-bit Windows. Too much code would
break if MSFT did anything else.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@nero.com To unsubscribe send
a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to xxxxx@lists.osr.com

> dead, which ought to be somewhere around 2104.

Mark, will human beings ever use computer at that time? I'm sure something
better would have been invented. Computer is just evil and introduces more
problems than it has solved ever IMHO-:).

Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com

But why would a DOS program author use Windows .NET DDK? :-?

Best regards,

David Burg.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Thursday, August 19, 2004 3:50 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

It is very difficult for Microsoft to change ANY standard header file
definitions. In general the best they can do is to pile on new stuff over
the old cruft. The 16bit crap is here to stay until the last dos app is
dead, which ought to be somewhere around 2104.

=====================
Mark Roddy

-----Original Message-----
From: David Burg [mailto:xxxxx@nero.com]
Sent: Thursday, August 19, 2004 9:42 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

Thanks for the information. :slight_smile: Good to know there is no worry to have about
'far' pointers.

However it does not sound very good to keep dummy FAR definition for 16 bits
code compatibility, plus _WIN32 definition, we actually it is code for a 64
bit platform that is been created. Maybe some maintenance work to clean up
old stuff could be done there.

Best regards,

David Burg


David Burg
Software Development,
InCD Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of McNamee, John
Sent: Monday, August 16, 2004 8:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

Am I right to assume that _WIN32 will not be defined for 64 bit
environments

No. _WIN32 is always defined, even on 64-bit Windows. Too much code would
break if MSFT did anything else.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@nero.com To unsubscribe send
a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@nero.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

What about out bread and butter if it were not for computers?

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, August 19, 2004 7:30 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

dead, which ought to be somewhere around 2104.

Mark, will human beings ever use computer at that time? I'm sure
something better would have been invented. Computer is just evil and
introduces more problems than it has solved ever IMHO-:).

Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
''
To unsubscribe send a blank email to xxxxx@lists.osr.com

RE: [ntdev] FAR and 64 bit?

dead, which ought to be somewhere around 2104.

Mark, will human beings ever use computer at that time? I’m sure something better would have been invented. Computer is just evil and introduces more problems than it has solved ever IMHO-:).

Calvin

The last *real* invention ( not counting *evolution* and *re-invention* ) I know about is the semiconducter somewhere around 1947. Ever heard about the “middle ages” ? I am not so optimistic as you are :slight_smile:

MessageYep, I've been wondering for digitized bread and butter for quite
some time :). Let me know which model should I buy !

Is it those colorful Mac that produces bread and Jam(s) like with grapes,
berries, orange, peach ... :slight_smile: I bet they would be full of particles with
cristals (1) and vaccume(0). Teeth will have real challenge :slight_smile:

And it will surely straighten my thinking as Garry L explained ( dinna ....
:slight_smile:

-pro
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com]On Behalf Of
xxxxx@wipro.com
Sent: Thursday, August 19, 2004 7:22 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

What about out bread and butter if it were not for computers?
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Calvin Guan
Sent: Thursday, August 19, 2004 7:30 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

dead, which ought to be somewhere around 2104.

Mark, will human beings ever use computer at that time? I'm sure
something better would have been invented. Computer is just evil and
introduces more problems than it has solved ever IMHO-:).

Calvin

Calvin Guan Software Engineer
ATI Technologies Inc. www.ati.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
''
To unsubscribe send a blank email to xxxxx@lists.osr.com

Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument: ''
To unsubscribe send a blank email to xxxxx@lists.osr.com

They very likely won't.

But the headers in the DDK are copied or generated from the headers we
use in the product, which occasionally need to be used to build some
16-bit component for our own legacy support, or which also get put in
the SDK which is (sadly) concerned about such matters.

In the end this approach is still better than some of the old ways we've
generated the DDK, even if it does have a little more seemingly
pointless cruft in it.

-p

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of David Burg
Sent: Thursday, August 19, 2004 7:05 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

But why would a DOS program author use Windows .NET DDK? :-?

Best regards,

David Burg.

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Roddy, Mark
Sent: Thursday, August 19, 2004 3:50 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

It is very difficult for Microsoft to change ANY standard header file
definitions. In general the best they can do is to pile on new stuff
over the old cruft. The 16bit crap is here to stay until the last dos
app is dead, which ought to be somewhere around 2104.

=====================
Mark Roddy

-----Original Message-----
From: David Burg [mailto:xxxxx@nero.com]
Sent: Thursday, August 19, 2004 9:42 AM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

Thanks for the information. :slight_smile: Good to know there is no worry to have
about 'far' pointers.

However it does not sound very good to keep dummy FAR definition for 16
bits code compatibility, plus _WIN32 definition, we actually it is code
for a 64 bit platform that is been created. Maybe some maintenance work
to clean up old stuff could be done there.

Best regards,

David Burg


David Burg
Software Development,
InCD Project Leader

Ahead Software AG phone: +49 (0)7248 911 862 (direct line)
Im Stoeckmaedle 18 fax: +49 (0)7248 911 888
76307 Karlsbad email: xxxxx@nero.com
Germany http://www.nero.com

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of McNamee, John
Sent: Monday, August 16, 2004 8:42 PM
To: Windows System Software Devs Interest List
Subject: RE: [ntdev] FAR and 64 bit?

Am I right to assume that _WIN32 will not be defined for 64 bit
environments

No. _WIN32 is always defined, even on 64-bit Windows. Too much code
would break if MSFT did anything else.


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@nero.com To unsubscribe
send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
''
To unsubscribe send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: xxxxx@nero.com To unsubscribe
send a blank email to xxxxx@lists.osr.com


Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256

You are currently subscribed to ntdev as: unknown lmsubst tag argument:
''
To unsubscribe send a blank email to xxxxx@lists.osr.com