| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | INI structure and manipulation. |
Hi Doug,
DG> Where, in the programmers toolkit (IBM 2.0/2.1), does it
DG> mention the structure on the INI files for OS/2?
You could check out PrfOpenProfile and related functions. That are the
functions that allow you to read/write .INI files.
The basic Idea for reading an .INI is this:
hab = WinQueryAnchorBlock(hWndFrame);
if ((hMyHini = PrfOpenProfile(hab, "MyInI.INI"))!=NULLHANDLE)
{
if (PrfQueryProfileData(hMyHini,
Application,
Item,
Src,
(PULONG)&Size));
else Error=2;
PrfCloseProfile(hMyHini);
}
else Error=1;
return(Error);
The example above comes from an article of Mark Harrison in Electronic
Developers Magazine 1-6 (Nov 93). It may be found on bulletin boards,
Internet and Compuserve. Look for EDM*.*
Good Luck, Johan
--- The-Box Point 0.15+ PC
* Origin: CompuServe (100120,2502) - FidoNet (2:283/512.16)SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 712/353 623 713/888 800/1 @PATH: 283/512 280/801 24/24 396/1 3615/50 229/2 12/2442 711/409 54/54 @PATH: 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.