Click here to Skip to main content
15,893,594 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get handle to an application? Pin
iohanson14-Jan-07 23:20
iohanson14-Jan-07 23:20 
GeneralRe: How to get handle to an application? Pin
pri_skit15-Jan-07 21:08
pri_skit15-Jan-07 21:08 
AnswerRe: How to get handle to an application? Pin
#realJSOP14-Jan-07 23:25
mve#realJSOP14-Jan-07 23:25 
GeneralRe: How to get handle to an application? Pin
pri_skit15-Jan-07 21:07
pri_skit15-Jan-07 21:07 
AnswerRe: How to get handle to an application? Pin
ead mahmoud15-Jan-07 0:53
ead mahmoud15-Jan-07 0:53 
GeneralRe: How to get handle to an application? Pin
pri_skit15-Jan-07 21:08
pri_skit15-Jan-07 21:08 
QuestionRe: How to get handle to an application? Pin
David Crow15-Jan-07 3:30
David Crow15-Jan-07 3:30 
QuestionWinAPI : DnsQuery_A and DNS_TYPE_LOC Pin
robheffo14-Jan-07 22:55
robheffo14-Jan-07 22:55 
Hello Everyone,

I am doing some looking-up of DNS information with the DnsQuery API function. I can recieve A, MX & SOA Fields perfectly from any given hostname.

When I call DnsQuery_A with a wType of DNS_TYPE_LOC, the call succeeds, but I have no way to get the information I need since the Data union in the DNS_RECORD structure returned by the call has no DNS_LOC_DATA structure defined. I have tried casting the union to a DNS_LOC_DATA but I get invalid data.

Could somone point me in the right direction, I have been searching around for most of the day and I can't find any examples of the DNS_LOC_DATA struct in use, and MSDN also doesn't provide any information that is of use.

Thanks For Any Help!
Robert Heffernan
Albury, NSW

My Code Requesting A Field Data
<br />
dsRet = DnsQuery_A(ndDns->cHostname, DNS_TYPE_A, DNS_QUERY_STANDARD, NULL, &drRecords, NULL);<br />
<br />
if(dsRet != NOERROR)<br />
	return FALSE;<br />
<br />
// drRecords Contains Valid Data Here<br />


My Code Requesting LOC Field Data
<br />
dsRet = DnsQuery_A(ndDns->cHostname, DNS_TYPE_LOC, DNS_QUERY_STANDARD, NULL, &drRecords, NULL);<br />
<br />
if(dsRet != NOERROR)<br />
	return FALSE;<br />
<br />
dlLoc = (DNS_LOC_DATA *)&drRecords->Data; // <-- Doesn't Yield Usable Data<br />

QuestionTo read IMDB file Pin
Mushtaque Nizamani14-Jan-07 22:53
Mushtaque Nizamani14-Jan-07 22:53 
QuestionRe: To read IMDB file Pin
David Crow15-Jan-07 3:32
David Crow15-Jan-07 3:32 
QuestionStructures and Member Variables Question Pin
Andy20214-Jan-07 22:25
Andy20214-Jan-07 22:25 
QuestionRe: Structures and Member Variables Question Pin
prasad_som14-Jan-07 22:44
prasad_som14-Jan-07 22:44 
AnswerRe: Structures and Member Variables Question Pin
Andy20215-Jan-07 0:35
Andy20215-Jan-07 0:35 
GeneralRe: Structures and Member Variables Question Pin
prasad_som15-Jan-07 1:04
prasad_som15-Jan-07 1:04 
GeneralRe: Structures and Member Variables Question Pin
Andy20215-Jan-07 1:12
Andy20215-Jan-07 1:12 
GeneralRe: Structures and Member Variables Question Pin
prasad_som15-Jan-07 1:39
prasad_som15-Jan-07 1:39 
AnswerRe: Structures and Member Variables Question Pin
#realJSOP14-Jan-07 23:28
mve#realJSOP14-Jan-07 23:28 
GeneralRe: Structures and Member Variables Question Pin
Andy20215-Jan-07 0:38
Andy20215-Jan-07 0:38 
GeneralRe: Structures and Member Variables Question Pin
#realJSOP15-Jan-07 3:19
mve#realJSOP15-Jan-07 3:19 
Questioncreate thread in asm block Pin
zon_cpp14-Jan-07 20:06
zon_cpp14-Jan-07 20:06 
AnswerRe: create thread in asm block Pin
yeti1114-Jan-07 20:13
yeti1114-Jan-07 20:13 
GeneralRe: create thread in asm block Pin
zon_cpp15-Jan-07 18:27
zon_cpp15-Jan-07 18:27 
GeneralRe: create thread in asm block Pin
yeti1115-Jan-07 21:48
yeti1115-Jan-07 21:48 
Questioncasting stl::vector confusion... Pin
yeti1114-Jan-07 19:59
yeti1114-Jan-07 19:59 
AnswerRe: casting stl::vector confusion... Pin
Stephen Hewitt14-Jan-07 20:24
Stephen Hewitt14-Jan-07 20:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.