Click here to Skip to main content
15,921,793 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Line graph algorithm Pin
Member 8348123-Jun-04 4:00
Member 8348123-Jun-04 4:00 
GeneralCStatic window text Pin
dart132-Jun-04 12:34
dart132-Jun-04 12:34 
GeneralRe: CStatic window text Pin
valikac2-Jun-04 18:58
valikac2-Jun-04 18:58 
Questionsyncrhonised contact outlook with externe .MDB ACCESS? Pin
jerome_data2-Jun-04 11:10
jerome_data2-Jun-04 11:10 
GeneralAutomated Program Serial Numbers Pin
Will C.2-Jun-04 10:52
sussWill C.2-Jun-04 10:52 
GeneralRe: Automated Program Serial Numbers Pin
Paul Ranson2-Jun-04 12:02
Paul Ranson2-Jun-04 12:02 
GeneralRe: Automated Program Serial Numbers Pin
Will C.2-Jun-04 13:55
sussWill C.2-Jun-04 13:55 
GeneralMAC Address Pin
cobyjone2-Jun-04 10:09
cobyjone2-Jun-04 10:09 
I am writing an application that needs the mac address of a remote computer. I have tried the SendArp function, but it does not return the whole mac address when I try to retrieve it for any computer other than my own local ip. For example, I use the SendArp function with my local computer ip and it returns 00-00-83-44-60-79. If I use it with a remote computer on the domain, it returns 10-40-00-00-83-44, which 00-00-83-44 is the correct start of the mac address, but it is missing the end of it. I think that might have to do with the fact that it is a token-ring network. However, if I run nbtstat -a {Computer Name} at the command prompt, I get the correct mac address. I have also tried the following:

LPSTR cmp_name = {Computer Name};
WKSTA_TRANSPORT_INFO_0 *pwkti;
DWORD dwEntriesRead;
DWORD dwTotalEntries;
LPWKSTA_USER_INFO_0 pbBuffer;


NET_API_STATUS dwStatus = NetWkstaTransportEnum(cmp_name, 0, (LPBYTE *)&pbBuffer, buffer,
MAX_PREFERRED_LENGTH, &dwEntriesRead, &dwTotalEntries, NULL);

If I set cmp_name = NULL, it returns the correct mac address for my local computer. But if I set cmp_name to a valid computer name, pbBuffer becomes an invalid pointer.

Does anyone know how I can get the correct mac address on a token-ring network? Thanks a lot.
GeneralRe: MAC Address Pin
David Crow2-Jun-04 10:27
David Crow2-Jun-04 10:27 
GeneralGetting lid closed event Pin
Alex Korchemniy2-Jun-04 9:55
Alex Korchemniy2-Jun-04 9:55 
GeneralRe: Getting lid closed event Pin
David Crow2-Jun-04 10:33
David Crow2-Jun-04 10:33 
Questionmany CMutex objects: good idea? Pin
berndg2-Jun-04 8:52
berndg2-Jun-04 8:52 
AnswerRe: many CMutex objects: good idea? Pin
peterchen2-Jun-04 9:03
peterchen2-Jun-04 9:03 
GeneralRe: many CMutex objects: good idea? Pin
berndg2-Jun-04 9:12
berndg2-Jun-04 9:12 
GeneralRe: many CMutex objects: good idea? Pin
Daniel Turini2-Jun-04 10:17
Daniel Turini2-Jun-04 10:17 
GeneralRe: many CMutex objects: good idea? Pin
Alexander M.,2-Jun-04 12:54
Alexander M.,2-Jun-04 12:54 
GeneralRe: many CMutex objects: good idea? Pin
Tim Smith2-Jun-04 15:56
Tim Smith2-Jun-04 15:56 
AnswerRe: many CMutex objects: good idea? Pin
Andy Brummer2-Jun-04 10:21
sitebuilderAndy Brummer2-Jun-04 10:21 
AnswerRe: many CMutex objects: good idea? Pin
Alexander M.,2-Jun-04 12:55
Alexander M.,2-Jun-04 12:55 
AnswerRe: many CMutex objects: good idea? Pin
Tim Smith2-Jun-04 15:49
Tim Smith2-Jun-04 15:49 
GeneralRe: many CMutex objects: good idea? Pin
berndg2-Jun-04 20:03
berndg2-Jun-04 20:03 
GeneralGet time zone info for a network computer. Pin
LizardWiz2-Jun-04 8:40
LizardWiz2-Jun-04 8:40 
GeneralRe: Get time zone info for a network computer. Pin
David Crow2-Jun-04 9:27
David Crow2-Jun-04 9:27 
GeneralRe: Get time zone info for a network computer. Pin
LizardWiz2-Jun-04 11:22
LizardWiz2-Jun-04 11:22 
GeneralRe: Get time zone info for a network computer. Pin
David Crow3-Jun-04 2:53
David Crow3-Jun-04 2:53 

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.