Click here to Skip to main content
15,890,438 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Please help me! Pin
toxcct24-Mar-05 21:22
toxcct24-Mar-05 21:22 
GeneralRe: Please help me! Pin
wise_8224-Mar-05 23:23
wise_8224-Mar-05 23:23 
GeneralRe: Please help me! Pin
Chintoo72325-Mar-05 1:17
Chintoo72325-Mar-05 1:17 
GeneralRe: Please help me! Pin
toxcct25-Mar-05 1:30
toxcct25-Mar-05 1:30 
GeneralRe: Please help me! Pin
Chintoo72325-Mar-05 2:13
Chintoo72325-Mar-05 2:13 
GeneralRe: Please help me! Pin
toxcct25-Mar-05 2:19
toxcct25-Mar-05 2:19 
GeneralRe: Please help me! Pin
Chintoo72325-Mar-05 2:31
Chintoo72325-Mar-05 2:31 
Generalhardware enumeration Pin
brilliant10124-Mar-05 19:54
brilliant10124-Mar-05 19:54 
it is a program of MSDN , which i have written in console win32 application because in win32 applicaiton it was also giving problems.It gives an error that SetDICreateDeviceInfoList() does not take 7 parameters....Plz help me out i also used debug mode still i was unable to derive the hardware list
#include <windows.h>
#include <setupapi.h>
#include <stdio.h>

DWORD Err;

HDEVINFO DoDeviceEnum( GUID InterfaceClassGuid)
/*
Routine Description:
Retrieves the device information set that contains that contains
the devices of the specified class.

Parameters:
InterfaceClassGuid - The interface class GUID.

Return Value:
If the function succeeds, the return value is a handle to the
device information set.

If the function fails, the return value is zero.
*/
{
HDEVINFO DeviceInfoSet;
HDEVINFO NewDeviceInfoSet;

// Create a device information set that will be the container for
// the device interfaces.

DeviceInfoSet = SetupDiCreateDeviceInfoList(NULL, NULL);

if(DeviceInfoSet == INVALID_HANDLE_VALUE) {
Err = GetLastError();
printf( "SetupDiCreateDeviceInfoList failed: %lx.\n", Err );
return 0;
}

// Retrieve the device information set for the interface class.

NewDeviceInfoSet=SetupDiGetClassDevsEx( InterfaceClassGuid,NULL,NULL,DIGCF_PRESENT | DIGCF_DEVICEINTERFACE,DeviceInfoSet,NULL,NULL);

if(NewDeviceInfoSet == INVALID_HANDLE_VALUE)
{
Err = GetLastError();
printf( "SetupDiGetClassDevsEx failed: %lx.\n", Err );
return 0;
}

return NewDeviceInfoSet;
}

int main(int argc, TCHAR* argv[])
{


DoDeviceEnum(NULL);

return 0;

}
GeneralRe: hardware enumeration Pin
brilliant10124-Mar-05 20:00
brilliant10124-Mar-05 20:00 
GeneralRe: hardware enumeration Pin
toxcct24-Mar-05 22:07
toxcct24-Mar-05 22:07 
GeneralRe: hardware enumeration Pin
David Crow25-Mar-05 2:53
David Crow25-Mar-05 2:53 
Generalhigh performance graphic libaray! Pin
simonchen.net24-Mar-05 18:12
simonchen.net24-Mar-05 18:12 
Questionwhat does enum type do? whats the difference? Pin
ligerDave24-Mar-05 17:27
ligerDave24-Mar-05 17:27 
AnswerRe: what does enum type do? whats the difference? Pin
Ed K24-Mar-05 17:55
Ed K24-Mar-05 17:55 
AnswerRe: what does enum type do? whats the difference? Pin
Roger Wright26-Mar-05 21:30
professionalRoger Wright26-Mar-05 21:30 
GeneralMultiple Selection In ListBox MFC Pin
emilie560224-Mar-05 16:46
emilie560224-Mar-05 16:46 
GeneralRe: Multiple Selection In ListBox MFC Pin
David Crow25-Mar-05 3:42
David Crow25-Mar-05 3:42 
GeneralString manipulation.. Pin
RobJones24-Mar-05 15:12
RobJones24-Mar-05 15:12 
GeneralRe: String manipulation.. Pin
Michael Dunn24-Mar-05 15:40
sitebuilderMichael Dunn24-Mar-05 15:40 
GeneralRe: String manipulation.. Pin
RobJones24-Mar-05 16:10
RobJones24-Mar-05 16:10 
QuestionHow to load a mht file into IWebBrowser2 from stream ? Pin
Tcpip200524-Mar-05 14:54
Tcpip200524-Mar-05 14:54 
Questioncrash with dump? Pin
zecodela24-Mar-05 14:01
zecodela24-Mar-05 14:01 
AnswerRe: crash with dump? Pin
Roger Wright26-Mar-05 21:35
professionalRoger Wright26-Mar-05 21:35 
GeneralRe: crash with dump? Pin
zecodela27-Mar-05 15:01
zecodela27-Mar-05 15:01 
GeneralPermutations Pin
Pebbles124-Mar-05 12:23
Pebbles124-Mar-05 12:23 

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.