1 /* 2 * File stubs.c - stubs for exported functions 3 * 4 * Copyright (C) 2007, Timo Kreuzer 5 * 6 * This library is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU Lesser General Public 8 * License as published by the Free Software Foundation; either 9 * version 2.1 of the License, or (at your option) any later version. 10 * 11 * This library is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 14 * Lesser General Public License for more details. 15 * 16 * You should have received a copy of the GNU Lesser General Public 17 * License along with this library; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA 19 */ 20 21 #include "dbghelp_private.h" 22 23 WINE_DEFAULT_DEBUG_CHANNEL(dbghelp); 24 25 #define PDBGHELP_CREATE_USER_DUMP_CALLBACK PVOID 26 #define PSYM_ENUMPROCESSES_CALLBACK PVOID 27 #define PENUMSOURCEFILETOKENSCALLBACK PVOID 28 #define PSYMSRV_INDEX_INFO PVOID 29 #define POMAP PVOID 30 31 BOOL WINAPI 32 EnumerateLoadedModulesEx( 33 IN HANDLE hProcess, 34 IN PENUMLOADED_MODULES_CALLBACK64 EnumLoadedModulesCallback, 35 IN PVOID UserContext OPTIONAL) 36 { 37 UNIMPLEMENTED; 38 return FALSE; 39 } 40 41 BOOL WINAPI 42 DbgHelpCreateUserDump(LPSTR pszFileName, 43 PDBGHELP_CREATE_USER_DUMP_CALLBACK Callback, 44 PVOID pUserData) 45 { 46 UNIMPLEMENTED; 47 return FALSE; 48 } 49 50 BOOL WINAPI 51 DbgHelpCreateUserDumpW(LPWSTR pszFileName, 52 PDBGHELP_CREATE_USER_DUMP_CALLBACK Callback, 53 PVOID pUserData) 54 { 55 UNIMPLEMENTED; 56 return FALSE; 57 } 58 59 BOOL 60 WINAPI 61 FindFileInPath( 62 IN HANDLE hProcess, 63 IN PCSTR pszSearchPath, 64 IN PCSTR pszFileName, 65 IN PVOID id, 66 IN DWORD two, 67 IN DWORD three, 68 IN DWORD flags, 69 OUT PSTR FilePath, 70 IN PFINDFILEINPATHCALLBACK callback, 71 IN PVOID context) 72 { 73 UNIMPLEMENTED; 74 return FALSE; 75 } 76 77 BOOL WINAPI 78 FindFileInSearchPath(HANDLE hProcess, 79 LPSTR pszSearchPath, 80 LPSTR pszFileName, 81 DWORD one, 82 DWORD two, 83 DWORD three, 84 LPSTR pszFilePath) 85 { 86 UNIMPLEMENTED; 87 return FALSE; 88 } 89 90 BOOL WINAPI 91 SymDeleteSymbol(HANDLE hProcess, 92 ULONG64 ModBase, 93 PCSTR pszName, 94 DWORD64 Address, 95 DWORD dwFlags) 96 { 97 UNIMPLEMENTED; 98 return FALSE; 99 } 100 101 BOOL WINAPI 102 SymDeleteSymbolW(HANDLE hProcess, 103 ULONG64 ModBase, 104 PCWSTR pszName, 105 DWORD64 Address, 106 DWORD dwFlags) 107 { 108 UNIMPLEMENTED; 109 return FALSE; 110 } 111 112 BOOL WINAPI 113 SymEnumLinesW(HANDLE hProcess, 114 ULONG64 ModBase, 115 PCWSTR pszObj, 116 PCWSTR pszFile, 117 PSYM_ENUMLINES_CALLBACKW Callback, 118 PVOID pUserContext) 119 { 120 UNIMPLEMENTED; 121 return FALSE; 122 } 123 124 BOOL WINAPI 125 SymEnumProcesses(PSYM_ENUMPROCESSES_CALLBACK Callback, 126 PVOID pUserContext) 127 { 128 UNIMPLEMENTED; 129 return FALSE; 130 } 131 132 BOOL WINAPI 133 SymEnumSym(HANDLE hProcess, 134 ULONG64 ModBase, 135 PSYM_ENUMERATESYMBOLS_CALLBACK Callback, 136 PVOID pUserContext) 137 { 138 UNIMPLEMENTED; 139 return FALSE; 140 } 141 142 BOOL WINAPI 143 SymEnumSymbolsForAddr(HANDLE hProcess, 144 DWORD64 Address, 145 PSYM_ENUMERATESYMBOLS_CALLBACK Callback, 146 PVOID pUserContext) 147 { 148 UNIMPLEMENTED; 149 return FALSE; 150 } 151 152 BOOL WINAPI 153 SymEnumSymbolsForAddrW(HANDLE hProcess, 154 DWORD64 Address, 155 PSYM_ENUMERATESYMBOLS_CALLBACKW Callback, 156 PVOID pUserContext) 157 { 158 UNIMPLEMENTED; 159 return FALSE; 160 } 161 162 BOOL WINAPI 163 SymEnumerateSymbolsW64(HANDLE hProcess, 164 DWORD64 ModBase, 165 PSYM_ENUMSYMBOLS_CALLBACK64W Callback, 166 PVOID pUserContext) 167 { 168 UNIMPLEMENTED; 169 return FALSE; 170 } 171 172 BOOL WINAPI 173 SymEnumerateSymbolsW(HANDLE hProcess, 174 DWORD ModBase, 175 PSYM_ENUMSYMBOLS_CALLBACKW Callback, 176 PVOID pUserContext) 177 { 178 UNIMPLEMENTED; 179 return FALSE; 180 } 181 182 BOOL WINAPI 183 SymFromNameW(HANDLE hProcess, 184 PCWSTR pszName, 185 PSYMBOL_INFOW Symbol) 186 { 187 UNIMPLEMENTED; 188 return FALSE; 189 } 190 191 BOOL WINAPI 192 SymFromToken(HANDLE hProcess, 193 DWORD64 ModBase, 194 DWORD Token, 195 PSYMBOL_INFO Symbol) 196 { 197 UNIMPLEMENTED; 198 return FALSE; 199 } 200 201 BOOL WINAPI 202 SymFromTokenW(HANDLE hProcess, 203 DWORD64 ModBase, 204 DWORD Token, 205 PSYMBOL_INFOW Symbol) 206 { 207 UNIMPLEMENTED; 208 return FALSE; 209 } 210 211 ULONG WINAPI 212 SymGetFileLineOffsets64(HANDLE hProcess, 213 PCSTR pszModuleName, 214 PCSTR pszFileName, 215 PDWORD64 pBuffer, 216 ULONG BufferLines) 217 { 218 UNIMPLEMENTED; 219 return FALSE; 220 } 221 222 PCHAR WINAPI 223 SymGetHomeDirectory(DWORD dwType, 224 PSTR pszDir, 225 size_t Size) 226 { 227 UNIMPLEMENTED; 228 return NULL; 229 } 230 231 PWCHAR WINAPI 232 SymGetHomeDirectoryW(DWORD dwType, 233 PWSTR pszDir, 234 size_t Size) 235 { 236 UNIMPLEMENTED; 237 return NULL; 238 } 239 240 BOOL WINAPI 241 SymGetLineNextW64(HANDLE hProcess, 242 PIMAGEHLP_LINEW64 Line) 243 { 244 UNIMPLEMENTED; 245 return FALSE; 246 } 247 248 BOOL WINAPI 249 SymGetLinePrevW64(HANDLE hProcess, 250 PIMAGEHLP_LINEW64 Line) 251 { 252 UNIMPLEMENTED; 253 return FALSE; 254 } 255 256 BOOL WINAPI 257 SymGetScope(HANDLE hProcess, 258 ULONG64 ModBase, 259 DWORD Index, 260 PSYMBOL_INFO Symbol) 261 { 262 UNIMPLEMENTED; 263 return FALSE; 264 } 265 266 BOOL WINAPI 267 SymGetScopeW(HANDLE hProcess, 268 ULONG64 ModBase, 269 DWORD Index, 270 PSYMBOL_INFOW Symbol) 271 { 272 UNIMPLEMENTED; 273 return FALSE; 274 } 275 276 BOOL WINAPI 277 SymGetSourceFile(HANDLE hProcess, 278 ULONG64 ModBase, 279 PCSTR pszParams, 280 PCSTR pszFileSpec, 281 PSTR pszFilePath, 282 DWORD Size) 283 { 284 UNIMPLEMENTED; 285 return FALSE; 286 } 287 288 BOOL WINAPI 289 SymGetSourceFileFromToken(HANDLE hProcess, 290 PVOID Token, 291 PCSTR pszParams, 292 PSTR pszFilePath, 293 DWORD Size) 294 { 295 UNIMPLEMENTED; 296 return FALSE; 297 } 298 299 300 BOOL WINAPI 301 SymGetSourceFileFromTokenW(HANDLE hProcess, 302 PVOID Token, 303 PCWSTR pszParams, 304 PWSTR pszFilePath, 305 DWORD Size) 306 { 307 UNIMPLEMENTED; 308 return FALSE; 309 } 310 311 BOOL 312 WINAPI 313 SymGetSourceFileW( 314 HANDLE hProcess, 315 ULONG64 Base, 316 PCWSTR Params, 317 PCWSTR FileSpec, 318 PWSTR FilePath, 319 DWORD Size) 320 { 321 UNIMPLEMENTED; 322 return FALSE; 323 } 324 325 326 BOOL 327 WINAPI 328 SymGetSourceVarFromToken( 329 HANDLE hProcess, 330 PVOID Token, 331 PCSTR Params, 332 PCSTR VarName, 333 PSTR Value, 334 DWORD Size) 335 { 336 UNIMPLEMENTED; 337 return FALSE; 338 } 339 340 BOOL 341 WINAPI 342 SymGetSourceVarFromTokenW( 343 HANDLE hProcess, 344 PVOID Token, 345 PCWSTR Params, 346 PCWSTR VarName, 347 PWSTR Value, 348 DWORD Size) 349 { 350 UNIMPLEMENTED; 351 return FALSE; 352 } 353 354 BOOL WINAPI 355 SymGetSymbolFile(HANDLE hProcess, 356 PCSTR pszSymPath, 357 PCSTR pszImageFile, 358 DWORD Type, 359 PSTR SymbolFile, 360 size_t cSymbolFile, 361 PSTR DbgFile, 362 size_t cDbgFile) 363 { 364 UNIMPLEMENTED; 365 return FALSE; 366 } 367 368 BOOL WINAPI 369 SymGetSymbolFileW(HANDLE hProcess, 370 PCWSTR pszSymPath, 371 PCWSTR pszImageFile, 372 DWORD Type, 373 PWSTR pszSymbolFile, 374 size_t cSymbolFile, 375 PWSTR pszDbgFile, 376 size_t cDbgFile) 377 { 378 UNIMPLEMENTED; 379 return FALSE; 380 } 381 382 BOOL WINAPI 383 SymGetTypeFromNameW(HANDLE hProcess, 384 ULONG64 ModBase, 385 PCWSTR pszName, 386 PSYMBOL_INFOW Symbol) 387 { 388 UNIMPLEMENTED; 389 return FALSE; 390 } 391 392 BOOL WINAPI 393 SymGetTypeInfoEx(HANDLE hProcess, 394 DWORD64 ModBase, 395 PIMAGEHLP_GET_TYPE_INFO_PARAMS Params) 396 { 397 UNIMPLEMENTED; 398 return FALSE; 399 } 400 401 BOOL WINAPI 402 SymNext(HANDLE hProcess, 403 PSYMBOL_INFO Symbol) 404 { 405 UNIMPLEMENTED; 406 return FALSE; 407 } 408 409 BOOL WINAPI 410 SymNextW(HANDLE hProcess, 411 PSYMBOL_INFOW Symbol) 412 { 413 UNIMPLEMENTED; 414 return FALSE; 415 } 416 417 BOOL WINAPI 418 SymPrev(HANDLE hProcess, 419 PSYMBOL_INFO Symbol) 420 { 421 UNIMPLEMENTED; 422 return FALSE; 423 } 424 425 BOOL WINAPI 426 SymPrevW(HANDLE hProcess, 427 PSYMBOL_INFOW Symbol) 428 { 429 UNIMPLEMENTED; 430 return FALSE; 431 } 432 433 BOOL 434 WINAPI 435 SymSetScopeFromIndex( 436 HANDLE hProcess, 437 ULONG64 BaseOfDll, 438 DWORD Index) 439 { 440 UNIMPLEMENTED; 441 return FALSE; 442 } 443 444 // SymSetSymWithAddr64 445 446 PCSTR WINAPI 447 SymSrvDeltaName(HANDLE hProcess, 448 PCSTR pszSymPath, 449 PCSTR pszType, 450 PCSTR pszFile1, 451 PCSTR pszFile2) 452 { 453 UNIMPLEMENTED; 454 return NULL; 455 } 456 457 PCWSTR WINAPI 458 SymSrvDeltaNameW(HANDLE hProcess, 459 PCWSTR pszSymPath, 460 PCWSTR pszType, 461 PCWSTR pszFile1, 462 PCWSTR pszFile2) 463 { 464 UNIMPLEMENTED; 465 return NULL; 466 } 467 468 BOOL WINAPI 469 SymSrvGetFileIndexString(HANDLE hProcess, 470 PCSTR pszSrvPath, 471 PCSTR pszFile, 472 PSTR pszIndex, 473 size_t Size, 474 DWORD dwFlags) 475 { 476 UNIMPLEMENTED; 477 return FALSE; 478 } 479 480 BOOL WINAPI 481 SymSrvGetFileIndexStringW(HANDLE hProcess, 482 PCWSTR pszSrvPath, 483 PCWSTR pszFile, 484 PWSTR pszIndex, 485 size_t Size, 486 DWORD dwFlags) 487 { 488 UNIMPLEMENTED; 489 return FALSE; 490 } 491 492 BOOL WINAPI 493 SymSrvGetFileIndexes(PCSTR File, 494 GUID* Id, 495 DWORD* Val1, 496 DWORD* Val2, 497 DWORD dwFlags) 498 { 499 UNIMPLEMENTED; 500 return FALSE; 501 } 502 503 BOOL WINAPI 504 SymSrvGetFileIndexesW(PCWSTR File, 505 GUID* Id, 506 DWORD* Val1, 507 DWORD* Val2, 508 DWORD dwFlags) 509 { 510 UNIMPLEMENTED; 511 return FALSE; 512 } 513 514 PCSTR WINAPI 515 SymSrvGetSupplement(HANDLE hProcess, 516 PCSTR pszSymPath, 517 PCSTR pszNode, 518 PCSTR pszFile) 519 { 520 UNIMPLEMENTED; 521 return NULL; 522 } 523 524 PCWSTR WINAPI 525 SymSrvGetSupplementW(HANDLE hProcess, 526 PCWSTR pszSymPath, 527 PCWSTR pszNode, 528 PCWSTR pszFile) 529 { 530 UNIMPLEMENTED; 531 return NULL; 532 } 533 534 BOOL WINAPI 535 SymSrvIsStore(HANDLE hProcess, 536 PCSTR pszPath) 537 { 538 UNIMPLEMENTED; 539 return FALSE; 540 } 541 542 BOOL WINAPI 543 SymSrvIsStoreW(HANDLE hProcess, 544 PCWSTR pszPath) 545 { 546 UNIMPLEMENTED; 547 return FALSE; 548 } 549 550 PCSTR WINAPI 551 SymSrvStoreFile(HANDLE hProcess, 552 PCSTR pszSrvPath, 553 PCSTR pszFile, 554 DWORD pszFlags) 555 { 556 UNIMPLEMENTED; 557 return NULL; 558 } 559 560 PCWSTR WINAPI 561 SymSrvStoreFileW(HANDLE hProcess, 562 PCWSTR pszSrvPath, 563 PCWSTR pszFile, 564 DWORD dwFlags) 565 { 566 UNIMPLEMENTED; 567 return NULL; 568 } 569 570 PCSTR WINAPI 571 SymSrvStoreSupplement(HANDLE hProcess, 572 PCSTR pszSymPath, 573 PCSTR pszNode, 574 PCSTR pszFile, 575 DWORD dwFlags) 576 { 577 UNIMPLEMENTED; 578 return NULL; 579 } 580 581 PCWSTR WINAPI 582 SymSrvStoreSupplementW(HANDLE hProcess, 583 PCWSTR pszSymPath, 584 PCWSTR pszNode, 585 PCWSTR pszFile, 586 DWORD dwFlags) 587 { 588 UNIMPLEMENTED; 589 return NULL; 590 } 591 592 HANDLE 593 WINAPI 594 FindDebugInfoFileExW( 595 PCWSTR FileName, 596 PCWSTR SymbolPath, 597 PWSTR DebugFilePath, 598 PFIND_DEBUG_FILE_CALLBACKW Callback, 599 PVOID CallerData) 600 { 601 UNIMPLEMENTED; 602 return FALSE; 603 } 604 605 BOOL 606 WINAPI 607 SymAddSourceStream( 608 HANDLE hProcess, 609 ULONG64 Base, 610 PCSTR StreamFile, 611 PBYTE Buffer, 612 size_t Size) 613 { 614 UNIMPLEMENTED; 615 return FALSE; 616 } 617 618 BOOL 619 WINAPI 620 SymAddSourceStreamW( 621 HANDLE hProcess, 622 ULONG64 Base, 623 PCWSTR FileSpec, 624 PBYTE Buffer, 625 size_t Size) 626 { 627 UNIMPLEMENTED; 628 return FALSE; 629 } 630 631 BOOL 632 WINAPI 633 SymEnumSourceFileTokens( 634 HANDLE hProcess, 635 ULONG64 Base, 636 PENUMSOURCEFILETOKENSCALLBACK Callback) 637 { 638 UNIMPLEMENTED; 639 return FALSE; 640 } 641 642 BOOL 643 WINAPI 644 SymAddSourceStreamA( 645 HANDLE hProcess, 646 ULONG64 Base, 647 PCSTR StreamFile, 648 PBYTE Buffer, 649 size_t Size) 650 { 651 UNIMPLEMENTED; 652 return FALSE; 653 } 654 655 BOOL 656 WINAPI 657 SymEnumTypesByName( 658 HANDLE hProcess, 659 ULONG64 BaseOfDll, 660 PCSTR mask, 661 PSYM_ENUMERATESYMBOLS_CALLBACK EnumSymbolsCallback, 662 PVOID UserContext) 663 { 664 UNIMPLEMENTED; 665 return FALSE; 666 } 667 668 BOOL 669 WINAPI 670 SymEnumTypesByNameW( 671 HANDLE hProcess, 672 ULONG64 BaseOfDll, 673 PCWSTR mask, 674 PSYM_ENUMERATESYMBOLS_CALLBACKW EnumSymbolsCallback, 675 PVOID UserContext) 676 { 677 UNIMPLEMENTED; 678 return FALSE; 679 } 680 681 682 HANDLE 683 WINAPI 684 SymFindDebugInfoFile( 685 HANDLE hProcess, 686 PCSTR FileName, 687 PSTR DebugFilePath, 688 PFIND_DEBUG_FILE_CALLBACK Callback, 689 PVOID CallerData) 690 { 691 UNIMPLEMENTED; 692 return 0; 693 } 694 695 696 HANDLE 697 WINAPI 698 SymFindDebugInfoFileW( 699 HANDLE hProcess, 700 PCWSTR FileName, 701 PWSTR DebugFilePath, 702 PFIND_DEBUG_FILE_CALLBACKW Callback, 703 PVOID CallerData) 704 { 705 UNIMPLEMENTED; 706 return 0; 707 } 708 709 710 HANDLE 711 WINAPI 712 SymFindExecutableImage( 713 HANDLE hProcess, 714 PCSTR FileName, 715 PSTR ImageFilePath, 716 PFIND_EXE_FILE_CALLBACK Callback, 717 PVOID CallerData) 718 { 719 UNIMPLEMENTED; 720 return 0; 721 } 722 723 724 HANDLE 725 WINAPI 726 SymFindExecutableImageW( 727 HANDLE hProcess, 728 PCWSTR FileName, 729 PWSTR ImageFilePath, 730 PFIND_EXE_FILE_CALLBACKW Callback, 731 PVOID CallerData) 732 { 733 UNIMPLEMENTED; 734 return 0; 735 } 736 737 738 BOOL 739 WINAPI 740 SymSrvGetFileIndexInfo( 741 PCSTR File, 742 PSYMSRV_INDEX_INFO Info, 743 DWORD Flags) 744 { 745 UNIMPLEMENTED; 746 return FALSE; 747 } 748 749 BOOL 750 WINAPI 751 SymSrvGetFileIndexInfoW( 752 PCWSTR File, 753 PSYMSRV_INDEX_INFO Info, 754 DWORD Flags) 755 { 756 UNIMPLEMENTED; 757 return FALSE; 758 } 759 760 BOOL 761 WINAPI 762 SymGetOmaps( 763 HANDLE hProcess, 764 DWORD64 BaseOfDll, 765 POMAP *OmapTo, 766 PDWORD64 cOmapTo, 767 POMAP *OmapFrom, 768 PDWORD64 cOmapFrom) 769 { 770 UNIMPLEMENTED; 771 return FALSE; 772 } 773 774 BOOL 775 WINAPI 776 SymGetUnwindInfo( 777 HANDLE hProcess, 778 DWORD64 Address, 779 PVOID Buffer, 780 PULONG Size) 781 { 782 UNIMPLEMENTED; 783 return FALSE; 784 } 785