Upgrading from Office 2013 to Windows 10: API call to 'kernel32'

I want to upgrade an existing Office 2013 32 bit application to Windows 10. But the library 'kernel32' does not exist anymore. How do I upgrade this?

Private Declare Function GetPrivateProfileString Lib "kernel32" Alias "GetPrivateProfileStringA" _
        (ByVal lpApplicationName As String, ByVal lpKeyName As Any, _
        ByVal lpDefault As String, ByVal lpReturnedString As String, ByVal nSize As Long, _
        ByVal lpFileName As String) As Long
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.

Michael PfisterCommented:
Can't check here. Imho it should be still there but the API is stone age. Its used to read from an INI file.
I'd change the stuff to store/retrieve the settings from the Windows registry.

i.e. http://vba-corner.livejournal.com/3054.html
Frans_TruyensAuthor Commented:
I have to upgrade. So I can't change the code to something else. Does there exist an alternative for kernel32?
Michael PfisterCommented:
If you can't change the code you're stuck.
Still wonder why this happens .. any chance you're trying to run this under a 64 bit version of Office?
What is it? Access, Excel?
Michael PfisterCommented:
The file your app requires should be under

C:\Windows\system32\kernel32.dll (32 bit OS)
C:\Windows\sysWow64\kernel32.dll (64 bit OS)

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
Frans_TruyensAuthor Commented:
Thanks. I will try that tomorrow morning.
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 Access

From novice to tech pro — start learning today.