Changeset 229 for trunk/include/helpers/xprf.h
- Timestamp:
- Nov 24, 2002, 9:45:05 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/xprf.h
r113 r229 135 135 ********************************************************************/ 136 136 137 #define XINI_MAGIC_BYTES "hjba78j,"138 139 137 #ifdef LINKLIST_HEADER_INCLUDED 138 139 #define XINI_MAGIC_BYTES "xpRfMa\x03" 140 140 141 /* 141 142 *@@ XINI: … … 151 152 CHAR acMagic[sizeof(XINI_MAGIC_BYTES)]; 152 153 // magic bytes for security 154 // removed V1.0.0 (2002-09-20) [umoeller] 153 155 CHAR szFilename[CCHMAXPATH]; 156 154 157 HFILE hFile; // returned by DosProtectOpen 155 FHLOCK hLock; // lock ID of DosProtectOpen 158 // FHLOCK hLock; // lock ID of DosProtectOpen 159 // removed V1.0.0 (2002-09-20) [umoeller] 156 160 BOOL fDirty; // TRUE if changed and needs to be flushed 157 161 // on close … … 159 163 // applications list 160 164 LINKLIST llApps; // contains PXINIAPPDATA items 161 ULONG cApps; // count of items on list162 165 } XINI, *PXINI; 163 166 #else … … 168 171 PXINI *ppxini); 169 172 170 BOOL xprfCloseProfile(PXINI hIni); 171 172 /* BOOL xprfQueryProfileData(PXINI hIni, 173 const char *pcszApp, 174 const char *pcszKey, 175 PVOID pBuffer, 176 PULONG pulBufferMax); */ 177 178 BOOL xprfWriteProfileData(PXINI hIni, 179 const char *pcszApp, 180 const char *pcszKey, 181 PVOID pData, 182 ULONG ulDataLen); 173 APIRET xprfCloseProfile(PXINI hIni); 174 175 APIRET xprfQueryProfileSize(PXINI pXIni, 176 PCSZ pszAppName, 177 PCSZ pszKeyName, 178 PULONG pulDataLen); 179 180 APIRET xprfQueryProfileData(PXINI pXIni, 181 PCSZ pszAppName, 182 PCSZ pszKeyName, 183 PVOID pBuffer, 184 PULONG pulBufferMax); 185 186 APIRET xprfWriteProfileData(PXINI hIni, 187 const char *pcszApp, 188 const char *pcszKey, 189 PVOID pData, 190 ULONG ulDataLen); 191 192 APIRET xprfQueryKeysForApp(PXINI hIni, 193 PCSZ pcszApp, 194 PSZ *ppszKeys); 183 195 184 196 /* ****************************************************************** … … 209 221 210 222 APIRET xprfCopyKey(HINI hiniSource, 211 P SZ pszSourceApp,212 P SZ pszKey,223 PCSZ pszSourceApp, 224 PCSZ pszKey, 213 225 PXINI hiniTarget, 214 PSZ pszTargetApp); 226 PCSZ pszTargetApp); 227 228 APIRET xprfCopyKey2(PXINI hiniSource, 229 PCSZ pszSourceApp, 230 PCSZ pszKey, 231 HINI hiniTarget, 232 PCSZ pszTargetApp); 215 233 216 234 APIRET xprfCopyApp(HINI hiniSource, 217 P SZ pszSourceApp,235 PCSZ pszSourceApp, 218 236 PXINI hiniTarget, 219 P SZ pszTargetApp,237 PCSZ pszTargetApp, 220 238 PSZ pszErrorKey); 221 239 240 APIRET xprfCopyApp2(PXINI hiniSource, 241 PCSZ pszSourceApp, 242 HINI hiniTarget, 243 PCSZ pszTargetApp, 244 PSZ pszErrorKey); 245 222 246 APIRET xprfCopyProfile(HINI hOld, 223 P SZ pszNew,247 PCSZ pszNew, 224 248 PFN_PRF_PROGRESS pfnProgressCallback, 225 249 ULONG ulUser, 226 250 ULONG ulCount, 227 ULONG ulMax); 251 ULONG ulMax, 252 PSZ pszFailingApp); 228 253 229 254 APIRET xprfSaveINIs(HAB hab, 230 255 PFN_PRF_PROGRESS pfnProgressCallback, 231 ULONG ulUser); 256 ULONG ulUser, 257 PSZ pszFailingINI, 258 PSZ pszFailingApp, 259 PSZ pszFailingKey); 232 260 #endif 233 261
Note:
See TracChangeset
for help on using the changeset viewer.