GetCurrentHwProfile

I have the following code:

HW_PROFILE_INFO hwp;
GetCurrentHwProfile(&hwp);


Compiler tells:
'HW_PROFILE_INFO' : undeclared identifier
...
'GetCurrentHwProfile' : undeclared identifier

Structure and function declared in winbase.h, which included in windows.h. And windows.h, of course included in my project. Library advapi32.lib included in Object/library modules.
I am using VC++ 6.0, Windows 98.

Any ideas?
mnbmnbAsked:
Who is Participating?
 
NickRepinConnect With a Mentor Commented:
Set OS version 4.0 for your project.


winbase.h contains the following:

#if(_WIN32_WINNT >= 0x0400)
//
.....HW_PROFILE_INFO
0
 
mnbmnbAuthor Commented:
Does it mean that this function I can use only under WinNT? MSDN tells that Windows 95 OSR2 or later also supports GetCurrentHwProfile.


0
 
NickRepinCommented:
You can use it for 95 also.
95 & NT4.0 both have version 4.0
0
 
mnbmnbAuthor Commented:
Does it mean that this function I can use only under WinNT? MSDN tells that Windows 95 OSR2 or later also supports GetCurrentHwProfile.


0
 
mnbmnbAuthor Commented:
Thank you.
0
All Courses

From novice to tech pro — start learning today.