извлечь записи из ответа DnsQuery_A

Тема в разделе "WASM.BEGINNERS", создана пользователем integer, 10 апр 2008.

  1. integer

    integer New Member

    Публикаций:
    0
    Регистрация:
    2 янв 2007
    Сообщения:
    62
    nop
    nop
    nop
     
  2. zoool

    zoool New Member

    Публикаций:
    0
    Регистрация:
    1 дек 2007
    Сообщения:
    412
    гм
    в самом простом случае можно заюзать
    IsBadReadPtr (проверить указатель на валидность)

    Код (Text):
    1. This function verifies that the calling process has read access to the specified range of memory.
    2. Security Note   This function is unsafe to use when checking your input parameters for correctness or accuracy. For more information about secure coding practices, see Enhancing the Security of a Device.
    3.  
    4. BOOL IsBadReadPtr(
    5.   const void* lp,
    6.   UINT ucb
    7. );
    8.  
    9. Parameters
    10. lp
    11. [in] Pointer to the first byte of the memory block.
    12.  
    13. ucb
    14. [in] Specifies the size, in bytes, of the memory block.
    15. If this parameter is zero, the return value is zero.
    16.  
    17. Return Values
    18. Zero indicates that the calling process has read access to all bytes in the specified memory range.
    19.  
    20. Nonzero indicates that the calling process does not have read access to all bytes in the specified memory range.
    Странно что указатель не нудевой.
    Я не сталкивался, но что с длиной?

    WORD wDataLength;


    Чему она равна в последней структуре?