Exceptions(wasRE: Damn Unions)

new topic     » topic index » view thread      » older message » newer message

Thank you Matt,

By the way, i'm trying to find a way of fighting exceptions using native 
eu but i have failed to get the location of these functions
GetExceptionCode etc etc....got any info

jordah
Matthew Lewis wrote:
> 
> > -----Original Message-----
> > From: jordah ferguson [mailto:jorfergie03 at yahoo.com]
> 
> > Is there some one out there who can help me link this structure
> > to euphoria. My lack of understanding of what a union is has led to 
> > this.
> 
> A union (as you may know) means that you can have either type of data 
> stored
> there.  I think you could probably simply use the dwOemId member, since 
> the
> second half of the struct is reserved.  If this causes problems when you
> have to store something, you'll have to first fetch the entire DWORD and
> then add the high word to your wProcessorArchitecture member (although I
> really doubt you'll have to do this).
> 
> Matt Lewis
>  
> > typedef struct _SYSTEM_INFO { // sinf 
> > 
> >     union { 
> >         DWORD  dwOemId; 
> >         struct { 
> >             WORD wProcessorArchitecture; 
> >             WORD wReserved; 
> >         }; 
> >     }; 
> >     DWORD  dwPageSize; 
> >     LPVOID lpMinimumApplicationAddress; 
> >     LPVOID lpMaximumApplicationAddress; 
> >     DWORD  dwActiveProcessorMask; 
> >     DWORD  dwNumberOfProcessors; 
> >     DWORD  dwProcessorType; 
> >     DWORD  dwAllocationGranularity; 
> >     WORD  wProcessorLevel; 
> >     WORD  wProcessorRevision; 
> > } SYSTEM_INFO; 
> > 
>

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu