Click here to Skip to main content
15,916,280 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "game" fast fingers Pin
Aljaz11125-Mar-09 9:47
Aljaz11125-Mar-09 9:47 
GeneralRe: "game" fast fingers [modified] Pin
CPallini25-Mar-09 10:11
mveCPallini25-Mar-09 10:11 
GeneralRe: "game" fast fingers Pin
led mike26-Mar-09 5:37
led mike26-Mar-09 5:37 
QuestionSerial Mouse data to Mouse driver [modified] Pin
THAQCD25-Mar-09 7:42
THAQCD25-Mar-09 7:42 
QuestionGetting notification from CRichEditView Pin
rp_suman25-Mar-09 6:20
rp_suman25-Mar-09 6:20 
AnswerRe: Getting notification from CRichEditView Pin
Iain Clarke, Warrior Programmer25-Mar-09 6:50
Iain Clarke, Warrior Programmer25-Mar-09 6:50 
Questionwinamp c++ class Pin
Jacavienna25-Mar-09 5:47
Jacavienna25-Mar-09 5:47 
QuestionDevPartner problem Pin
RedSonja25-Mar-09 5:11
RedSonja25-Mar-09 5:11 
AnswerRe: DevPartner problem Pin
Eytukan25-Mar-09 5:32
Eytukan25-Mar-09 5:32 
GeneralRe: DevPartner problem [modified] Pin
RedSonja25-Mar-09 20:57
RedSonja25-Mar-09 20:57 
QuestionBest way to measure time interval of external events Pin
Member 23626225-Mar-09 4:36
Member 23626225-Mar-09 4:36 
AnswerRe: Best way to measure time interval of external events Pin
Cedric Moonen25-Mar-09 4:38
Cedric Moonen25-Mar-09 4:38 
GeneralRe: Best way to measure time interval of external events Pin
Code-o-mat25-Mar-09 5:40
Code-o-mat25-Mar-09 5:40 
QuestionRe: Best way to measure time interval of external events Pin
CPallini25-Mar-09 5:48
mveCPallini25-Mar-09 5:48 
AnswerRe: Best way to measure time interval of external events Pin
Code-o-mat25-Mar-09 5:56
Code-o-mat25-Mar-09 5:56 
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 

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.