Re: Structure Rupture aka eh?
- From: Stefan Näwe <please@xxxxxxxxxx>
- Date: Mon, 09 Jan 2006 10:34:20 +0100
pigeonrandle@xxxxxxxxxxx wrote:
> Hello.
>
> Please can somebody tell me why this stucture definition is the 'way it
> is'?
>
> typedef struct BLOCK_CHECKSUM_STATE
> {
> ULONG Unknown;
> ULONG64 BaseAddress;
> ULONG BlockSize;
> ULONG Checksum;
> } BLOCK_CHECKSUM_STATE, *PBLOCK_CHECKSUM_STATE;
>
> i.e. the "*PBLOCK_CHECKSUM_STATE" being an extra argument than i am
> used to seeing. Is it just a way of aliasing a pointer to
> BLOCK_CHECKSUM_STATE as PBLOCK_CHECKSUM_STATE?
>
That's the C-way of saying:
struct BLOCK_CHECKSUM_STATE
{
ULONG Unknown;
ULONG64 BaseAddress;
ULONG BlockSize;
ULONG Checksum;
};
typedef BLOCK_CHECKSUM_STATE* PBLOCK_CHECKSUM_STATE;
/S
--
Stefan Naewe
naewe.s_AT_atlas_DOT_de
.
- References:
- Structure Rupture aka eh?
- From: pigeonrandle@xxxxxxxxxxx
- Structure Rupture aka eh?
- Prev by Date: Re: CharUpper on a std::string?
- Next by Date: Re: sizeof & Fatal Error C1017
- Previous by thread: Structure Rupture aka eh?
- Next by thread: Re: height of ListBox
- Index(es):
Relevant Pages
|