GetDeviceStatus[Ex] usage

The place where software developers meet

Moderator: marcus

GetDeviceStatus[Ex] usage

Postby jla » Thu 4. Aug 2011, 09:56

The "result" out parameter of GetDeviceStatus is typed as void*; is there any documentation as to what it points to ?
jla
 
Posts: 4
Joined: Thu 4. Aug 2011, 09:38

Re: GetDeviceStatus[Ex] usage

Postby IRTrans » Thu 4. Aug 2011, 10:49

Which API are you using?

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: GetDeviceStatus[Ex] usage

Postby jla » Thu 4. Aug 2011, 11:00

The C DLL.
jla
 
Posts: 4
Joined: Thu 4. Aug 2011, 09:38

Re: GetDeviceStatus[Ex] usage

Postby IRTrans » Thu 4. Aug 2011, 12:27

GetDeviceStatus will return:

On Error

Return code != 0
NETWORKSTATUS is returned

On Success

Return code == 0
NETWORKMODE is returned


GetDeviceStatusExN will return:

On Error

Return code != 0
NETWORKSTATUS is returned

On Success

Return code == 0
NETWORKMODEEXN is returned

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: GetDeviceStatus[Ex] usage

Postby jla » Thu 4. Aug 2011, 13:42

OK, thanks. I assume the "features" field in the MODELINE struct is a bit mask; are there symbolic constants for it ?
jla
 
Posts: 4
Joined: Thu 4. Aug 2011, 09:38

Re: GetDeviceStatus[Ex] usage

Postby IRTrans » Thu 4. Aug 2011, 13:48

The file "functioncodes.h" contains the bit constants. However, they are sometimes dependent on each other.

What are you looking for?

IRTrans
IRTrans
Administrator
 
Posts: 2115
Joined: Mon 21. Apr 2008, 23:32

Re: GetDeviceStatus[Ex] usage

Postby jla » Thu 4. Aug 2011, 14:11

Trying to know what kind of device is connected and its capabilities; that seems to be the right API.
jla
 
Posts: 4
Joined: Thu 4. Aug 2011, 09:38

Re: GetDeviceStatus[Ex] usage

Postby Schaumschläger » Wed 27. Jun 2012, 09:53

Hey! functioncodes.h was the right file. I was also looking for a solution to see the connected devices. I would like to thank IRTrans for the short but efficiant help.

Best regards
Schaumschläger
 
Posts: 2
Joined: Wed 27. Jun 2012, 09:48


Return to APIs

Who is online

Users browsing this forum: Majestic-12 [Bot] and 2 guests

cron