views:

276

answers:

2

Hi all,

Simple question, if someone happens to know the answer. I'm maintaining an old Windows app; it uses GetProfileInt to retrieve a setting. Documentation says it reads "from the registry". Whereabouts? I know on older OSs, it read from win.ini. Where do the win.ini-type entries get stored in the registry?

Thanks, Laure

A: 

The MSDN documentation for GetProfileInt gives the path. If that turns out to be wrong, ProcMon from www.sysinternals.com ought to show you.

James
+1  A: 

Your answer is defined somewhat technically in the MSDN docs for that function.

http://msdn.microsoft.com/en-us/library/ms724360

Essentially, that call is for 16-bit Windows compatibility, but it can still work if you set up some mapping in the Registry first.

In short, you probably want to use instead use real Registry functions if at all possible.

JMD