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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

NickRepinCommented:
Set OS version 4.0 for your project.


winbase.h contains the following:

#if(_WIN32_WINNT >= 0x0400)
//
.....HW_PROFILE_INFO
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Development

From novice to tech pro — start learning today.