Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Best way to measure time interval of external events Pin
Joe Woodbury25-Mar-09 6:47
professionalJoe Woodbury25-Mar-09 6:47 
QuestionRe: Best way to measure time interval of external events Pin
CPallini25-Mar-09 7:02
mveCPallini25-Mar-09 7:02 
AnswerRe: Best way to measure time interval of external events Pin
Joe Woodbury25-Mar-09 7:07
professionalJoe Woodbury25-Mar-09 7:07 
QuestionRe: Best way to measure time interval of external events Pin
CPallini25-Mar-09 7:34
mveCPallini25-Mar-09 7:34 
AnswerRe: Best way to measure time interval of external events Pin
Joe Woodbury25-Mar-09 7:43
professionalJoe Woodbury25-Mar-09 7:43 
GeneralRe: Best way to measure time interval of external events Pin
CPallini25-Mar-09 7:52
mveCPallini25-Mar-09 7:52 
AnswerRe: Best way to measure time interval of external events Pin
Jonathan Davies25-Mar-09 7:06
Jonathan Davies25-Mar-09 7:06 
QuestionMAC adresss code error Pin
optical12325-Mar-09 3:42
optical12325-Mar-09 3:42 
Dear All

// Fetches the MAC address and prints it
static void GetMACaddress(void)
{
IP_ADAPTER_INFO AdapterInfo[16]; // Allocate information
// for up to 16 NICs
DWORD dwBufLen = sizeof(AdapterInfo); // Save memory size of buffer

DWORD dwStatus = GetAdaptersInfo( // Call GetAdapterInfo
AdapterInfo, // [out] buffer to receive data
&dwBufLen); // [in] size of receive data buffer
assert(dwStatus == ERROR_SUCCESS); // Verify return value is
// valid, no buffer overflow

PIP_ADAPTER_INFO pAdapterInfo = AdapterInfo; // Contains pointer to
// current adapter info
do {
PrintMACaddress(pAdapterInfo->Address); // Print MAC address
pAdapterInfo = pAdapterInfo->Next; // Progress through
// linked list
}
while(pAdapterInfo); // Terminate if last adapter
}

can anybody just walk through my code and here i am staticaly allocting the memory for the storing the adpater information for upto 16 NIC card...
but if i want to get and enumerate all the MAC addresses on my PC...
the above code will give upto 16 card so what to do next...

plz help me....

Regards
sunny
AnswerRe: MAC adresss code error Pin
Electron Shepherd25-Mar-09 4:40
Electron Shepherd25-Mar-09 4:40 
GeneralRe: MAC adresss code error Pin
optical12325-Mar-09 5:05
optical12325-Mar-09 5:05 
GeneralRe: MAC adresss code error Pin
Electron Shepherd25-Mar-09 7:06
Electron Shepherd25-Mar-09 7:06 
QuestionHow to Display Radio button dynamically on Dialog. Pin
hemlat25-Mar-09 3:39
hemlat25-Mar-09 3:39 
AnswerRe: How to Display Radio button dynamically on Dialog. Pin
led mike25-Mar-09 4:37
led mike25-Mar-09 4:37 
AnswerRe: How to Display Radio button dynamically on Dialog. Pin
Electron Shepherd25-Mar-09 4:45
Electron Shepherd25-Mar-09 4:45 
GeneralRe: How to Display Radio button dynamically on Dialog. [modified] Pin
hemlat25-Mar-09 18:08
hemlat25-Mar-09 18:08 
GeneralRe: How to Display Radio button dynamically on Dialog. Pin
mutpan4-Feb-10 5:46
mutpan4-Feb-10 5:46 
QuestionI/O operation sytem error Pin
LCI25-Mar-09 3:33
LCI25-Mar-09 3:33 
AnswerRe: I/O operation sytem error Pin
led mike25-Mar-09 4:33
led mike25-Mar-09 4:33 
GeneralRe: I/O operation sytem error Pin
Cedric Moonen25-Mar-09 4:40
Cedric Moonen25-Mar-09 4:40 
GeneralRe: I/O operation sytem error Pin
LCI25-Mar-09 5:37
LCI25-Mar-09 5:37 
QuestionCatch(exception) Pin
NewVC++25-Mar-09 2:39
NewVC++25-Mar-09 2:39 
AnswerRe: Catch(exception) Pin
Cedric Moonen25-Mar-09 2:41
Cedric Moonen25-Mar-09 2:41 
JokeRe: Catch(exception) Pin
Yusuf25-Mar-09 3:12
Yusuf25-Mar-09 3:12 
GeneralRe: Catch(exception) Pin
ThatsAlok25-Mar-09 17:43
ThatsAlok25-Mar-09 17:43 
GeneralRe: Catch(exception) Pin
Cedric Moonen25-Mar-09 21:05
Cedric Moonen25-Mar-09 21:05 

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.