Click here to Skip to main content
15,891,248 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
David Crow12-Jun-09 3:10
David Crow12-Jun-09 3:10 
AnswerRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
krish_kumar12-Jun-09 22:49
krish_kumar12-Jun-09 22:49 
QuestionRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
David Crow13-Jun-09 12:44
David Crow13-Jun-09 12:44 
AnswerRe: How to open a logical partition and read all of its file using windows function ReadFile() ? Pin
krish_kumar14-Jun-09 3:43
krish_kumar14-Jun-09 3:43 
QuestionResolution Problem in SDI application Pin
Saleem Anwar12-Jun-09 0:18
Saleem Anwar12-Jun-09 0:18 
AnswerRe: Resolution Problem in SDI application Pin
Niklas L12-Jun-09 0:33
Niklas L12-Jun-09 0:33 
AnswerRe: Resolution Problem in SDI application Pin
CPallini12-Jun-09 0:42
mveCPallini12-Jun-09 0:42 
QuestionSetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
callousfantom12-Jun-09 0:01
callousfantom12-Jun-09 0:01 
Hi,
I'm fairly new to VC++ and I'm trying to develop a device manager type of utility.The problem I'm facing is with SPDRP_INSTALL_STATE property. Whenever I try to retreive this property I get the following error at compile time.

error C2065: 'SPDRP_INSTALL_STATE' : undeclared identifier

My syntax is:

SetupDiGetDeviceRegistryProperty(dInfoSet,&devInfo,SPDRP_INSTALL_STATE,&dwT,(PBYTE)&dwIS,sizeof(dwIS),NULL);

where dwIS and dwT are both DWORD.

I also tried the following syntax:

SetupDiGetDeviceRegistryProperty(dInfoSet,&devInfo,SPDRP_INSTALL_STATE,NULL,NULL,0,&reqSz);
szBuf=(char *)malloc(reqSz);
SetupDiGetDeviceRegistryProperty(dInfoSet,&devInfo,SPDRP_INSTALL_STATE,NULL,(unsigned char *)szBuf,reqSz,&reqSz);


Both give the same compilation error.I should also like to point out that the latter snippet works with other properties like SPDRP_DEVICETYPE. I've hit a dead end because of this as I need to know if the device is working properly.Any ideas?? Do I need to use cfgmgr32.h ?(Although I doubt it) Please help Cry | :((
AnswerRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
Niklas L12-Jun-09 0:08
Niklas L12-Jun-09 0:08 
GeneralRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
callousfantom12-Jun-09 0:31
callousfantom12-Jun-09 0:31 
GeneralRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
Niklas L12-Jun-09 0:46
Niklas L12-Jun-09 0:46 
GeneralRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! Pin
Randor 12-Jun-09 6:59
professional Randor 12-Jun-09 6:59 
GeneralRe: SetupAPI library:SetupDiGetDeviceRegistryProperty function issue (VC++ 6.0)! [modified] Pin
callousfantom16-Jun-09 18:48
callousfantom16-Jun-09 18:48 
QuestionXML DOM insertBefore() Method Pin
p_196011-Jun-09 23:59
p_196011-Jun-09 23:59 
AnswerRe: XML DOM insertBefore() Method Pin
Niklas L12-Jun-09 0:05
Niklas L12-Jun-09 0:05 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 0:07
p_196012-Jun-09 0:07 
GeneralRe: XML DOM insertBefore() Method Pin
Niklas L12-Jun-09 0:13
Niklas L12-Jun-09 0:13 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 0:28
p_196012-Jun-09 0:28 
GeneralRe: XML DOM insertBefore() Method Pin
Niklas L12-Jun-09 0:37
Niklas L12-Jun-09 0:37 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 0:45
p_196012-Jun-09 0:45 
GeneralRe: XML DOM insertBefore() Method Pin
p_196012-Jun-09 1:19
p_196012-Jun-09 1:19 
QuestionCControlBars always on top of CMDIChildWnd Pin
Niklas L11-Jun-09 23:27
Niklas L11-Jun-09 23:27 
QuestionHow to Generate a Installer in VC++??? Pin
Jayaraman K11-Jun-09 23:17
Jayaraman K11-Jun-09 23:17 
AnswerRe: How to Generate a Installer in VC++??? Pin
Cedric Moonen11-Jun-09 23:23
Cedric Moonen11-Jun-09 23:23 
QuestionRichEditCtrl display data Pin
MrKBA11-Jun-09 23:04
MrKBA11-Jun-09 23:04 

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.