Changeset 3688 for trunk/src/shlwapi/reg.cpp
- Timestamp:
- Jun 12, 2000, 1:35:14 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shlwapi/reg.cpp
r3687 r3688 1 /* $Id: reg.cpp,v 1. 2 2000-06-12 08:09:39phaller Exp $ */1 /* $Id: reg.cpp,v 1.3 2000-06-12 11:35:14 phaller Exp $ */ 2 2 3 3 /* … … 180 180 *****************************************************************************/ 181 181 182 ODINFUNCTION5(LONG, SHRegGetBoolUSValueA, 183 LPCSTR, pSubKey, 184 DWORD, arg2, 185 DWORD, arg3, 186 DWORD, arg4, 187 DWORD, arg5) 188 { 189 char szBuffer[264]; 190 int iLength; 191 192 dprintf(("(%p),stub!\n", pSubKey)); 193 182 ODINFUNCTION4(BOOL, SHRegGetBoolUSValueA, 183 LPCSTR, pszSubKey, 184 LPCSTR, pszValue, 185 BOOL, fIgnoreHKCU, 186 BOOL, fDefault) 187 { 188 char szBuffer[260]; 189 DWORD dwLength = sizeof(szBuffer); 190 LONG rc; 191 192 dprintf(("subkey=%s, value=%s\n", 193 pszSubKey, 194 pszValue)); 195 196 rc = SHRegGetUSValueA(pszSubKey, 197 pszValue, 198 &fDefault, 199 szBuffer, 200 &dwLength, 201 fIgnoreHKCU, 202 fDefault ? "YES" : "NO", 203 fDefault ? 4 : 3); 204 if (rc != ERROR_SUCCESS) 205 return rc; 206 207 if (lstrcmpiA("YES", 208 szBuffer) == 0) 209 return 1; 210 else 211 if (lstrcmpiA("TRUE", 212 szBuffer) == 0) 213 return 1; 214 else 215 if (lstrcmpiA("NO", 216 szBuffer) == 0) 217 return 0; 218 else 219 if (lstrcmpiA("FALSE", 220 szBuffer) == 0) 221 return 0; 222 223 194 224 return ERROR_SUCCESS; /* return success */ 195 225 } … … 208 238 *****************************************************************************/ 209 239 210 ODINFUNCTION5(LONG, SHRegGetBoolUSValueW, 211 LPCWSTR, pSubKey, 212 DWORD, arg2, 213 DWORD, arg3, 214 DWORD, arg4, 215 DWORD, arg5) 240 ODINFUNCTION4(BOOL, SHRegGetBoolUSValueW, 241 LPCWSTR, pszSubKey, 242 LPCWSTR, pszValue, 243 BOOL, fIgnoreHKCU, 244 BOOL, fDefault) 216 245 { 217 246 char szBuffer[264]; 218 247 int iLength; 219 248 220 dprintf(("(%p),stub!\n", p SubKey));249 dprintf(("(%p),stub!\n", pszSubKey)); 221 250 222 251 return ERROR_SUCCESS; /* return success */
Note:
See TracChangeset
for help on using the changeset viewer.