Syntax Question

Discussion in 'C++' started by pigeonrandle@hotmail.com, Jan 8, 2006.

  1. Guest

    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.
     
    , Jan 8, 2006
    #1
    1. Advertising

  2. Daniel T. Guest

    In article <>,
    wrote:

    > 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.
     
    Daniel T., Jan 9, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. gabriele renzi
    Replies:
    2
    Views:
    238
    gabriele renzi
    Dec 31, 2005
  2. Ken Bloom
    Replies:
    3
    Views:
    242
  3. Good Night Moon
    Replies:
    9
    Views:
    315
    Rick DeNatale
    Jul 25, 2007
  4. Jacob Grover
    Replies:
    5
    Views:
    348
    Jacob Grover
    Jul 18, 2008
  5. Mark Richards
    Replies:
    3
    Views:
    346
    Tad McClellan
    Nov 18, 2007
Loading...

Share This Page