C
Can Balioglu
Hi,
I need to call the native function DnsQuery(..., PDNS_RECORD
*ppQueryResultsSet,...). The problem is; the function allocates a block of
memory and initializes it with the DNS query results and returns a pointer
to pointer to refer to this unmanaged memory area. I already created the
wrapper struct type representing a DNS_RECORD, but how do I have to call
DnsQuery? In some way the data needs to be marshaled to the managed memory
but I could not figure it out how.
I need to call the native function DnsQuery(..., PDNS_RECORD
*ppQueryResultsSet,...). The problem is; the function allocates a block of
memory and initializes it with the DNS query results and returns a pointer
to pointer to refer to this unmanaged memory area. I already created the
wrapper struct type representing a DNS_RECORD, but how do I have to call
DnsQuery? In some way the data needs to be marshaled to the managed memory
but I could not figure it out how.