Changeset 7820 for trunk/src/shlwapi/reg_odin.cpp
- Timestamp:
- Feb 6, 2002, 9:18:30 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shlwapi/reg_odin.cpp
r6608 r7820 1 /* $Id: reg_odin.cpp,v 1. 2 2001-08-30 19:19:57 phallerExp $ */1 /* $Id: reg_odin.cpp,v 1.3 2002-02-06 20:18:28 sandervl Exp $ */ 2 2 3 3 /* … … 27 27 #include "winnls.h" 28 28 #include "winversion.h" 29 #include "winuser.h" 29 30 #include "winreg.h" 31 #include "wingdi.h" 30 32 31 33 #include <heapstring.h> … … 33 35 #include <win\winerror.h> 34 36 #include "shlwapi_odin.h" 37 #define NO_SHLWAPI_STREAM 38 #include <shlwapi.h> 35 39 36 40 … … 50 54 *****************************************************************************/ 51 55 52 ODINFUNCTION5( DWORD, SHRegCreateUSKeyA,53 LP STR, lpszKeyName,56 ODINFUNCTION5(LONG, SHRegCreateUSKeyA, 57 LPCSTR, lpszKeyName, 54 58 REGSAM, AccessType, 55 59 HUSKEY, hRelativeUSKey, … … 74 78 *****************************************************************************/ 75 79 76 ODINFUNCTION5( DWORD, SHRegCreateUSKeyW,77 LP WSTR, lpszKeyName,80 ODINFUNCTION5(LONG, SHRegCreateUSKeyW, 81 LPCWSTR, lpszKeyName, 78 82 REGSAM, AccessType, 79 83 HUSKEY, hRelativeUSKey, … … 114 118 115 119 116 /*****************************************************************************117 * Name : DWORD SHRegGetBoolUSValueA118 * Purpose : unknown119 * Parameters: unknown120 * Variables :121 * Result : unknown122 * Remark : SHLWAPI.SHRegGetBoolUSValueA123 * Status : COMPLETELY IMPLEMENTED ? UNTESTED124 *125 * Author : Patrick Haller [Wed, 1999/12/29 23:02]126 *****************************************************************************/127 128 ODINFUNCTION4(BOOL, SHRegGetBoolUSValueA,129 LPCSTR, pszSubKey,130 LPCSTR, pszValue,131 BOOL, fIgnoreHKCU,132 BOOL, fDefault)133 {134 char szBuffer[260];135 DWORD dwLength = sizeof(szBuffer);136 LONG rc;137 138 dprintf(("subkey=%s, value=%s\n",139 pszSubKey,140 pszValue));141 142 rc = SHRegGetUSValueA(pszSubKey,143 pszValue,144 &fDefault,145 szBuffer,146 &dwLength,147 fIgnoreHKCU,148 fDefault ? "YES" : "NO",149 fDefault ? 4 : 3);150 if (rc != ERROR_SUCCESS)151 return rc;152 153 if (lstrcmpiA("YES",154 szBuffer) == 0)155 return 1;156 else157 if (lstrcmpiA("TRUE",158 szBuffer) == 0)159 return 1;160 else161 if (lstrcmpiA("NO",162 szBuffer) == 0)163 return 0;164 else165 if (lstrcmpiA("FALSE",166 szBuffer) == 0)167 return 0;168 169 170 return ERROR_SUCCESS; /* return success */171 }172 173 174 /*****************************************************************************175 * Name : DWORD SHRegGetBoolUSValueW176 * Purpose : unknown177 * Parameters: unknown178 * Variables :179 * Result : unknown180 * Remark : SHLWAPI.SHRegGetBoolUSValueW181 * Status : STUB UNTESTED182 *183 * Author : Patrick Haller [Wed, 1999/12/29 23:02]184 *****************************************************************************/185 186 ODINFUNCTION4(BOOL, SHRegGetBoolUSValueW,187 LPCWSTR, pszSubKey,188 LPCWSTR, pszValue,189 BOOL, fIgnoreHKCU,190 BOOL, fDefault)191 {192 char szBuffer[264];193 int iLength;194 195 dprintf(("(%p),stub!\n", pszSubKey));196 197 return ERROR_SUCCESS; /* return success */198 }199 200 120 201 121 /***************************************************************************** … … 255 175 256 176 257 /*****************************************************************************258 * Name : LONG SHRegCloseUSKey259 * Purpose :260 * Parameters:261 * Variables :262 * Result :263 * Remark :264 * Status : STUB UNTESTED265 *266 * Author : Patrick Haller [2001-08-30]267 *****************************************************************************/268 269 ODINFUNCTION1(LONG, SHRegCloseUSKey,270 HUSKEY, hUSKey)271 {272 dprintf(("not implemented\n"));273 274 LONG rc = RegCloseKey(hUSKey);275 return rc;276 }277 278 177 279 178 /***************************************************************************** … … 291 190 ODINFUNCTION3(LONG, SHRegDeleteUSValueA, 292 191 HUSKEY, hUSKey, 293 LP STR, lpValue,294 DWORD, dwFlags)192 LPCSTR, lpValue, 193 SHREGDEL_FLAGS, dwFlags) 295 194 { 296 195 dprintf(("not implemented\n")); 297 196 298 197 LONG rc = RegDeleteValueA(hUSKey, 299 lpValue);198 (LPSTR)lpValue); 300 199 return rc; 301 200 } … … 315 214 316 215 ODINFUNCTION3(LONG, SHRegDeleteUSValueW, 317 H KEY,hKey,318 LP WSTR, lpValue,319 DWORD, dwFlags)216 HUSKEY, hKey, 217 LPCWSTR, lpValue, 218 SHREGDEL_FLAGS, dwFlags) 320 219 { 321 220 dprintf(("not implemented\n")); 322 221 323 222 LONG rc = RegDeleteValueW(hKey, 324 lpValue);223 (LPWSTR)lpValue); 325 224 return rc; 326 225 } 327 226 328 227 329 /*****************************************************************************330 * Name : LONG SHDeleteOrphanKeyA331 * Purpose :332 * Parameters:333 * Variables :334 * Result :335 * Remark :336 * Status : STUB UNTESTED337 *338 * Author : Patrick Haller [2001-08-30]339 *****************************************************************************/340 341 ODINFUNCTION2(LONG, SHDeleteOrphanKeyA,342 HKEY, hKey,343 LPCSTR, lpszSubkey)344 {345 dprintf(("not implemented\n"));346 347 LONG rc = RegDeleteKeyA(hKey,348 lpszSubkey);349 return rc;350 }351 352 353 /*****************************************************************************354 * Name : LONG SHDeleteOrphanKeyW355 * Purpose :356 * Parameters:357 * Variables :358 * Result :359 * Remark :360 * Status : STUB UNTESTED361 *362 * Author : Patrick Haller [2001-08-30]363 *****************************************************************************/364 365 ODINFUNCTION2(LONG, SHDeleteOrphanKeyW,366 HKEY, hKey,367 LPWSTR, lpszSubkey)368 {369 dprintf(("not implemented\n"));370 371 LONG rc = RegDeleteKeyW(hKey,372 lpszSubkey);373 return rc;374 }375 376 228 377 229 /***************************************************************************** … … 389 241 ODINFUNCTION3(LONG, SHRegDeleteEmptyUSKeyA, 390 242 HUSKEY, hUSKey, 243 LPCSTR, lpszSubkey, 244 SHREGDEL_FLAGS, dwFlags) 245 { 246 dprintf(("not yet implemented")); 247 return 0; 248 } 249 250 251 /***************************************************************************** 252 * Name : LONG SHRegDeleteEmptyUSKeyW 253 * Purpose : 254 * Parameters: 255 * Variables : 256 * Result : 257 * Remark : 258 * Status : STUB UNTESTED 259 * 260 * Author : Patrick Haller [2001-08-30] 261 *****************************************************************************/ 262 263 ODINFUNCTION3(LONG, SHRegDeleteEmptyUSKeyW, 264 HUSKEY, hUSKey, 265 LPCWSTR, lpszSubkey, 266 SHREGDEL_FLAGS, dwFlags) 267 { 268 dprintf(("not yet implemented")); 269 return 0; 270 } 271 272 273 /***************************************************************************** 274 * Name : LONG SHRegDeleteUSKeyA 275 * Purpose : 276 * Parameters: 277 * Variables : 278 * Result : 279 * Remark : 280 * Status : STUB UNTESTED 281 * 282 * Author : Patrick Haller [2001-08-30] 283 *****************************************************************************/ 284 285 ODINFUNCTION3(LONG, SHRegDeleteUSKeyA, 286 HUSKEY, hUSKey, 391 287 LPSTR, lpszSubkey, 392 288 DWORD, dwFlags) … … 398 294 399 295 /***************************************************************************** 400 * Name : LONG SHRegDelete EmptyUSKeyW401 * Purpose : 402 * Parameters: 403 * Variables : 404 * Result : 405 * Remark : 406 * Status : STUB UNTESTED 407 * 408 * Author : Patrick Haller [2001-08-30] 409 *****************************************************************************/ 410 411 ODINFUNCTION3(LONG, SHRegDelete EmptyUSKeyW,296 * Name : LONG SHRegDeleteUSKeyW 297 * Purpose : 298 * Parameters: 299 * Variables : 300 * Result : 301 * Remark : 302 * Status : STUB UNTESTED 303 * 304 * Author : Patrick Haller [2001-08-30] 305 *****************************************************************************/ 306 307 ODINFUNCTION3(LONG, SHRegDeleteUSKeyW, 412 308 HUSKEY, hUSKey, 413 309 LPWSTR, lpszSubkey, … … 419 315 420 316 421 /*****************************************************************************422 * Name : LONG SHRegDeleteUSKeyA423 * Purpose :424 * Parameters:425 * Variables :426 * Result :427 * Remark :428 * Status : STUB UNTESTED429 *430 * Author : Patrick Haller [2001-08-30]431 *****************************************************************************/432 433 ODINFUNCTION3(LONG, SHRegDeleteUSKeyA,434 HUSKEY, hUSKey,435 LPSTR, lpszSubkey,436 DWORD, dwFlags)437 {438 dprintf(("not yet implemented"));439 return 0;440 }441 442 443 /*****************************************************************************444 * Name : LONG SHRegDeleteUSKeyW445 * Purpose :446 * Parameters:447 * Variables :448 * Result :449 * Remark :450 * Status : STUB UNTESTED451 *452 * Author : Patrick Haller [2001-08-30]453 *****************************************************************************/454 455 ODINFUNCTION3(LONG, SHRegDeleteUSKeyW,456 HUSKEY, hUSKey,457 LPWSTR, lpszSubkey,458 DWORD, dwFlags)459 {460 dprintf(("not yet implemented"));461 return 0;462 }463 464 465 /*****************************************************************************466 * Name : LONG SHRegEnumUSKeyA467 * Purpose :468 * Parameters:469 * Variables :470 * Result :471 * Remark :472 * Status : STUB UNTESTED473 *474 * Author : Patrick Haller [2001-08-30]475 *****************************************************************************/476 477 ODINFUNCTION5(LONG, SHRegEnumUSKeyA,478 HUSKEY, hUSKey,479 DWORD, dwIndex,480 LPSTR, lpszKeyName,481 LPDWORD, lpdwKeyNameSize,482 SHREGENUM_FLAGS, dwFlags)483 {484 dprintf(("not yet implemented"));485 return 0;486 }487 488 489 /*****************************************************************************490 * Name : LONG SHRegEnumUSKeyW491 * Purpose :492 * Parameters:493 * Variables :494 * Result :495 * Remark :496 * Status : STUB UNTESTED497 *498 * Author : Patrick Haller [2001-08-30]499 *****************************************************************************/500 501 ODINFUNCTION5(LONG, SHRegEnumUSKeyW,502 HUSKEY, hUSKey,503 DWORD, dwIndex,504 LPWSTR, lpszKeyName,505 LPDWORD, lpdwKeyNameSize,506 SHREGENUM_FLAGS, dwFlags)507 {508 dprintf(("not yet implemented"));509 return 0;510 }511 317 512 318 … … 565 371 566 372 567 /***************************************************************************** 568 * Name : LONG SHRegQueryInfoUSKeyA 569 * Purpose : 570 * Parameters: 571 * Variables : 572 * Result : 573 * Remark : 574 * Status : STUB UNTESTED 575 * 576 * Author : Patrick Haller [2001-08-30] 577 *****************************************************************************/ 578 579 ODINFUNCTION5(LONG, SHRegQueryInfoUSKeyA, 580 LPDWORD, lpdwSubKeyNum, 581 LPDWORD, lpdwMaxSubKeyNameSize, 582 LPDWORD, lpdwValueNum, 583 LPDWORD, lpdwMaxValueNameSize, 584 SHREGENUM_FLAGS, dwFlags) 585 { 586 dprintf(("not yet implemented")); 587 return 0; 588 } 589 590 591 /***************************************************************************** 592 * Name : LONG SHRegQueryInfoUSKeyW 593 * Purpose : 594 * Parameters: 595 * Variables : 596 * Result : 597 * Remark : 598 * Status : STUB UNTESTED 599 * 600 * Author : Patrick Haller [2001-08-30] 601 *****************************************************************************/ 602 603 ODINFUNCTION5(LONG, SHRegQueryInfoUSKeyW, 604 LPDWORD, lpdwSubKeyNum, 605 LPDWORD, lpdwMaxSubKeyNameSize, 606 LPDWORD, lpdwValueNum, 607 LPDWORD, lpdwMaxValueNameSize, 608 SHREGENUM_FLAGS, dwFlags) 609 { 610 dprintf(("not yet implemented")); 611 return 0; 612 } 613 614 615 /***************************************************************************** 616 * Name : LONG SHRegWriteUSValueA 617 * Purpose : 618 * Parameters: 619 * Variables : 620 * Result : 621 * Remark : 622 * Status : STUB UNTESTED 623 * 624 * Author : Patrick Haller [2001-08-30] 625 *****************************************************************************/ 626 627 ODINFUNCTION6(LONG, SHRegWriteUSValueA, 628 HUSKEY, hUSKey, 629 LPCSTR, lpszValueName, 630 DWORD, dwValueType, 631 LPVOID, lpValue, 632 DWORD, dwValueSize, 633 DWORD, dwFlags) 634 { 635 dprintf(("not yet implemented")); 636 return 0; 637 } 638 639 640 /***************************************************************************** 641 * Name : LONG SHRegWriteUSValueW 642 * Purpose : 643 * Parameters: 644 * Variables : 645 * Result : 646 * Remark : 647 * Status : STUB UNTESTED 648 * 649 * Author : Patrick Haller [2001-08-30] 650 *****************************************************************************/ 651 652 ODINFUNCTION6(LONG, SHRegWriteUSValueW, 653 HUSKEY, hUSKey, 654 LPCWSTR, lpszValueName, 655 DWORD, dwValueType, 656 LPVOID, lpValue, 657 DWORD, dwValueSize, 658 DWORD, dwFlags) 659 { 660 dprintf(("not yet implemented")); 661 return 0; 662 } 373
Note:
See TracChangeset
for help on using the changeset viewer.