Syntax Question

P

pigeonrandle

Hello.

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?

Cheers,
James.
 
D

Daniel T.

Hello.

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?

yes.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,579
Members
45,053
Latest member
BrodieSola

Latest Threads

Top