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