In search of meaningful error messages and some housekeeping on the stubs file.
[reactos.git] / reactos / lib / kernel32 / misc / stubs.c
1 /* $Id: stubs.c,v 1.37 2002/12/06 13:14:14 robd Exp $
2 *
3 * KERNEL32.DLL stubs (unimplemented functions)
4 * Remove from this file, if you implement them.
5 */
6 #include <windows.h>
7
8
9 BOOL
10 STDCALL
11 IsProcessorFeaturePresent( DWORD ProcessorFeature )
12 {
13 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
14 return FALSE;
15 }
16
17
18 BOOL
19 STDCALL
20 BaseAttachCompleteThunk (VOID)
21 {
22 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
23 return FALSE;
24 }
25
26
27 BOOL
28 STDCALL
29 CmdBatNotification (
30 DWORD Unknown
31 )
32 {
33 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
34 return FALSE;
35 }
36
37
38 int
39 STDCALL
40 CompareStringA (
41 LCID Locale,
42 DWORD dwCmpFlags,
43 LPCSTR lpString1,
44 int cchCount1,
45 LPCSTR lpString2,
46 int cchCount2
47 )
48 {
49 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
50 return 0;
51 }
52
53
54 int
55 STDCALL
56 CompareStringW (
57 LCID Locale,
58 DWORD dwCmpFlags,
59 LPCWSTR lpString1,
60 int cchCount1,
61 LPCWSTR lpString2,
62 int cchCount2
63 )
64 {
65 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
66 return 0;
67 }
68
69
70 LCID
71 STDCALL
72 ConvertDefaultLocale (
73 LCID Locale
74 )
75 {
76 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
77 return 0;
78 }
79
80
81 DWORD
82 STDCALL
83 CreateVirtualBuffer (
84 DWORD Unknown0,
85 DWORD Unknown1,
86 DWORD Unknown2
87 )
88 {
89 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
90 return 0;
91 }
92
93
94 WINBOOL
95 STDCALL
96 EnumCalendarInfoW (
97 CALINFO_ENUMPROC lpCalInfoEnumProc,
98 LCID Locale,
99 CALID Calendar,
100 CALTYPE CalType
101 )
102 {
103 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
104 return FALSE;
105 }
106
107
108 WINBOOL
109 STDCALL
110 EnumCalendarInfoA (
111 CALINFO_ENUMPROC lpCalInfoEnumProc,
112 LCID Locale,
113 CALID Calendar,
114 CALTYPE CalType
115 )
116 {
117 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
118 return FALSE;
119 }
120
121
122 WINBOOL
123 STDCALL
124 EnumDateFormatsW (
125 DATEFMT_ENUMPROC lpDateFmtEnumProc,
126 LCID Locale,
127 DWORD dwFlags
128 )
129 {
130 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
131 return FALSE;
132 }
133
134
135 WINBOOL
136 STDCALL
137 EnumDateFormatsA (
138 DATEFMT_ENUMPROC lpDateFmtEnumProc,
139 LCID Locale,
140 DWORD dwFlags
141 )
142 {
143 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
144 return FALSE;
145 }
146
147
148 WINBOOL
149 STDCALL
150 EnumSystemCodePagesW (
151 CODEPAGE_ENUMPROC lpCodePageEnumProc,
152 DWORD dwFlags
153 )
154 {
155 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
156 return FALSE;
157 }
158
159
160 WINBOOL
161 STDCALL
162 EnumSystemCodePagesA (
163 CODEPAGE_ENUMPROC lpCodePageEnumProc,
164 DWORD dwFlags
165 )
166 {
167 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
168 return FALSE;
169 }
170
171
172 WINBOOL
173 STDCALL
174 EnumSystemLocalesW (
175 LOCALE_ENUMPROC lpLocaleEnumProc,
176 DWORD dwFlags
177 )
178 {
179 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
180 return FALSE;
181 }
182
183
184 WINBOOL
185 STDCALL
186 EnumSystemLocalesA (
187 LOCALE_ENUMPROC lpLocaleEnumProc,
188 DWORD dwFlags
189 )
190 {
191 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
192 return FALSE;
193 }
194
195
196 WINBOOL
197 STDCALL
198 EnumTimeFormatsW (
199 TIMEFMT_ENUMPROC lpTimeFmtEnumProc,
200 LCID Locale,
201 DWORD dwFlags
202 )
203 {
204 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
205 return FALSE;
206 }
207
208
209 WINBOOL
210 STDCALL
211 EnumTimeFormatsA (
212 TIMEFMT_ENUMPROC lpTimeFmtEnumProc,
213 LCID Locale,
214 DWORD dwFlags
215 )
216 {
217 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
218 return FALSE;
219 }
220
221
222 DWORD
223 STDCALL
224 ExitVDM (
225 DWORD Unknown0,
226 DWORD Unknown1
227 )
228 {
229 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
230 return 0;
231 }
232
233
234 BOOL
235 STDCALL
236 ExtendVirtualBuffer (
237 DWORD Unknown0,
238 DWORD Unknown1
239 )
240 {
241 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
242 return FALSE;
243 }
244
245
246 int
247 STDCALL
248 FoldStringW (
249 DWORD dwMapFlags,
250 LPCWSTR lpSrcStr,
251 int cchSrc,
252 LPWSTR lpDestStr,
253 int cchDest
254 )
255 {
256 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
257 return 0;
258 }
259
260
261 int
262 STDCALL
263 FoldStringA (
264 DWORD dwMapFlags,
265 LPCSTR lpSrcStr,
266 int cchSrc,
267 LPSTR lpDestStr,
268 int cchDest
269 )
270 {
271 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
272 return 0;
273 }
274
275
276 BOOL
277 STDCALL
278 FreeVirtualBuffer (
279 HANDLE hVirtualBuffer
280 )
281 {
282 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
283 return FALSE;
284 }
285
286
287 UINT
288 STDCALL
289 GetACP (VOID)
290 {
291 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
292 return 0;
293 }
294
295
296 WINBOOL
297 STDCALL
298 GetBinaryTypeW (
299 LPCWSTR lpApplicationName,
300 LPDWORD lpBinaryType
301 )
302 {
303 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
304 return FALSE;
305 }
306
307
308 WINBOOL
309 STDCALL
310 GetBinaryTypeA (
311 LPCSTR lpApplicationName,
312 LPDWORD lpBinaryType
313 )
314 {
315 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
316 return FALSE;
317 }
318
319
320 WINBOOL
321 STDCALL
322 GetCPInfo (
323 UINT a0,
324 LPCPINFO a1
325 )
326 {
327 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
328 return 0;
329 }
330
331
332 int
333 STDCALL
334 GetCurrencyFormatW (
335 LCID Locale,
336 DWORD dwFlags,
337 LPCWSTR lpValue,
338 CONST CURRENCYFMT * lpFormat,
339 LPWSTR lpCurrencyStr,
340 int cchCurrency
341 )
342 {
343 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
344 return 0;
345 }
346
347
348 int
349 STDCALL
350 GetCurrencyFormatA (
351 LCID Locale,
352 DWORD dwFlags,
353 LPCSTR lpValue,
354 CONST CURRENCYFMT * lpFormat,
355 LPSTR lpCurrencyStr,
356 int cchCurrency
357 )
358 {
359 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
360 return 0;
361 }
362
363
364 int
365 STDCALL
366 GetDateFormatW (
367 LCID Locale,
368 DWORD dwFlags,
369 CONST SYSTEMTIME * lpDate,
370 LPCWSTR lpFormat,
371 LPWSTR lpDateStr,
372 int cchDate
373 )
374 {
375 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
376 return 0;
377 }
378
379
380 int
381 STDCALL
382 GetDateFormatA (
383 LCID Locale,
384 DWORD dwFlags,
385 CONST SYSTEMTIME * lpDate,
386 LPCSTR lpFormat,
387 LPSTR lpDateStr,
388 int cchDate
389 )
390 {
391 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
392 return 0;
393 }
394
395
396 int
397 STDCALL
398 GetLocaleInfoW (
399 LCID Locale,
400 LCTYPE LCType,
401 LPWSTR lpLCData,
402 int cchData
403 )
404 {
405 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
406 return 0;
407 }
408
409
410 int
411 STDCALL
412 GetLocaleInfoA (
413 LCID Locale,
414 LCTYPE LCType,
415 LPSTR lpLCData,
416 int cchData
417 )
418 {
419 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
420 return 0;
421 }
422
423
424 DWORD
425 STDCALL
426 GetNextVDMCommand (
427 DWORD Unknown0
428 )
429 {
430 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
431 return 0;
432 }
433
434
435 int
436 STDCALL
437 GetNumberFormatW (
438 LCID Locale,
439 DWORD dwFlags,
440 LPCWSTR lpValue,
441 CONST NUMBERFMT * lpFormat,
442 LPWSTR lpNumberStr,
443 int cchNumber
444 )
445 {
446 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
447 return 0;
448 }
449
450
451 int
452 STDCALL
453 GetNumberFormatA (
454 LCID Locale,
455 DWORD dwFlags,
456 LPCSTR lpValue,
457 CONST NUMBERFMT * lpFormat,
458 LPSTR lpNumberStr,
459 int cchNumber
460 )
461 {
462 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
463 return 0;
464 }
465
466
467 UINT
468 STDCALL
469 GetOEMCP (VOID)
470 {
471 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
472 return 437; /* FIXME: call csrss.exe */
473 }
474
475
476 WINBOOL
477 STDCALL
478 GetStringTypeExW (
479 LCID Locale,
480 DWORD dwInfoType,
481 LPCWSTR lpSrcStr,
482 int cchSrc,
483 LPWORD lpCharType
484 )
485 {
486 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
487 return FALSE;
488 }
489
490
491 WINBOOL
492 STDCALL
493 GetStringTypeExA (
494 LCID Locale,
495 DWORD dwInfoType,
496 LPCSTR lpSrcStr,
497 int cchSrc,
498 LPWORD lpCharType
499 )
500 {
501 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
502 return FALSE;
503 }
504
505
506 WINBOOL
507 STDCALL
508 GetStringTypeW (
509 DWORD dwInfoType,
510 LPCWSTR lpSrcStr,
511 int cchSrc,
512 LPWORD lpCharType
513 )
514 {
515 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
516 return FALSE;
517 }
518
519
520 WINBOOL
521 STDCALL
522 GetStringTypeA (
523 LCID Locale,
524 DWORD dwInfoType,
525 LPCSTR lpSrcStr,
526 int cchSrc,
527 LPWORD lpCharType
528 )
529 {
530 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
531 return FALSE;
532 }
533
534
535 LCID
536 STDCALL
537 GetSystemDefaultLCID (VOID)
538 {
539 /* FIXME: ??? */
540 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
541 return MAKELCID(
542 LANG_ENGLISH,
543 SORT_DEFAULT
544 );
545 }
546
547
548 LANGID
549 STDCALL
550 GetSystemDefaultLangID (VOID)
551 {
552 /* FIXME: ??? */
553 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
554 return MAKELANGID(
555 LANG_ENGLISH,
556 SUBLANG_ENGLISH_US
557 );
558 }
559
560
561 DWORD
562 STDCALL
563 GetSystemPowerStatus (
564 DWORD Unknown0
565 )
566 {
567 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
568 return 0;
569 }
570
571
572 LCID
573 STDCALL
574 GetThreadLocale (VOID)
575 {
576 /* FIXME: ??? */
577 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
578 return MAKELCID(
579 LANG_ENGLISH,
580 SORT_DEFAULT
581 );
582 }
583
584
585 WINBOOL
586 STDCALL
587 GetThreadPriorityBoost (
588 HANDLE hThread,
589 DWORD dwSelector,
590 LPLDT_ENTRY lpSelectorEntry
591 )
592 {
593 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
594 return FALSE;
595 }
596
597
598 WINBOOL
599 STDCALL
600 GetThreadSelectorEntry (
601 HANDLE hThread,
602 DWORD dwSelector,
603 LPLDT_ENTRY lpSelectorEntry
604 )
605 {
606 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
607 return FALSE;
608 }
609
610
611 int
612 STDCALL
613 GetTimeFormatW (
614 LCID Locale,
615 DWORD dwFlags,
616 CONST SYSTEMTIME * lpTime,
617 LPCWSTR lpFormat,
618 LPWSTR lpTimeStr,
619 int cchTime
620 )
621 {
622 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
623 return 0;
624 }
625
626
627 int
628 STDCALL
629 GetTimeFormatA (
630 LCID Locale,
631 DWORD dwFlags,
632 CONST SYSTEMTIME * lpTime,
633 LPCSTR lpFormat,
634 LPSTR lpTimeStr,
635 int cchTime
636 )
637 {
638 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
639 return 0;
640 }
641
642
643 LCID
644 STDCALL
645 GetUserDefaultLCID (VOID)
646 {
647 /* FIXME: ??? */
648 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
649 return MAKELCID(
650 LANG_ENGLISH,
651 SORT_DEFAULT
652 );
653 }
654
655
656 LANGID
657 STDCALL
658 GetUserDefaultLangID (VOID)
659 {
660 /* FIXME: ??? */
661 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
662 return MAKELANGID(
663 LANG_ENGLISH,
664 SUBLANG_ENGLISH_US
665 );
666 }
667
668
669 DWORD
670 STDCALL
671 GetVDMCurrentDirectories (
672 DWORD Unknown0,
673 DWORD Unknown1
674 )
675 {
676 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
677 return 0;
678 }
679
680
681 WINBOOL
682 STDCALL
683 IsDBCSLeadByte (
684 BYTE TestChar
685 )
686 {
687 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
688 return FALSE;
689 }
690
691
692 WINBOOL
693 STDCALL
694 IsDBCSLeadByteEx (
695 UINT CodePage,
696 BYTE TestChar
697 )
698 {
699 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
700 return FALSE;
701 }
702
703
704 WINBOOL
705 STDCALL
706 IsValidCodePage (
707 UINT CodePage
708 )
709 {
710 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
711 return FALSE;
712 }
713
714
715 WINBOOL
716 STDCALL
717 IsValidLocale (
718 LCID Locale,
719 DWORD dwFlags
720 )
721 {
722 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
723 return FALSE;
724 }
725
726
727 int
728 STDCALL
729 LCMapStringA (
730 LCID Locale,
731 DWORD dwMapFlags,
732 LPCSTR lpSrcStr,
733 int cchSrc,
734 LPSTR lpDestStr,
735 int cchDest
736 )
737 {
738 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
739 return 0;
740 }
741
742
743 int
744 STDCALL
745 LCMapStringW (
746 LCID Locale,
747 DWORD dwMapFlags,
748 LPCWSTR lpSrcStr,
749 int cchSrc,
750 LPWSTR lpDestStr,
751 int cchDest
752 )
753 {
754 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
755 return 0;
756 }
757
758
759 DWORD
760 STDCALL
761 LoadModule (
762 LPCSTR lpModuleName,
763 LPVOID lpParameterBlock
764 )
765 {
766 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
767 return 0;
768 }
769
770
771 WINBOOL
772 STDCALL
773 QueryPerformanceCounter (
774 LARGE_INTEGER * lpPerformanceCount
775 )
776 {
777 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
778 return FALSE;
779 }
780
781
782 WINBOOL
783 STDCALL
784 QueryPerformanceFrequency (
785 LARGE_INTEGER * lpFrequency
786 )
787 {
788 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
789 return FALSE;
790 }
791
792
793 WINBOOL
794 STDCALL
795 RegisterConsoleVDM (
796 DWORD Unknown0,
797 DWORD Unknown1,
798 DWORD Unknown2,
799 DWORD Unknown3,
800 DWORD Unknown4,
801 DWORD Unknown5,
802 DWORD Unknown6,
803 DWORD Unknown7,
804 DWORD Unknown8,
805 DWORD Unknown9,
806 DWORD Unknown10
807 )
808 {
809 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
810 return FALSE;
811 }
812
813
814 WINBOOL
815 STDCALL
816 RegisterWowBaseHandlers (
817 DWORD Unknown0
818 )
819 {
820 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
821 return FALSE;
822 }
823
824
825 WINBOOL
826 STDCALL
827 RegisterWowExec (
828 DWORD Unknown0
829 )
830 {
831 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
832 return FALSE;
833 }
834
835
836 WINBOOL
837 STDCALL
838 SetComputerNameA (
839 LPCSTR lpComputerName
840 )
841 {
842 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
843 return FALSE;
844 }
845
846
847 WINBOOL
848 STDCALL
849 SetComputerNameW (
850 LPCWSTR lpComputerName
851 )
852 {
853 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
854 return FALSE;
855 }
856
857
858 WINBOOL
859 STDCALL
860 SetLocaleInfoA (
861 LCID Locale,
862 LCTYPE LCType,
863 LPCSTR lpLCData
864 )
865 {
866 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
867 return FALSE;
868 }
869
870
871 WINBOOL
872 STDCALL
873 SetLocaleInfoW (
874 LCID Locale,
875 LCTYPE LCType,
876 LPCWSTR lpLCData
877 )
878 {
879 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
880 return FALSE;
881 }
882
883
884 WINBOOL
885 STDCALL
886 SetSystemPowerState (
887 DWORD Unknown0,
888 DWORD Unknown1
889 )
890 {
891 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
892 return FALSE;
893 }
894
895
896 WINBOOL
897 STDCALL
898 SetThreadIdealProcessor(VOID)
899 {
900 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
901 return 0;
902 }
903
904 WINBOOL
905 STDCALL
906 SetThreadLocale (
907 LCID Locale
908 )
909 {
910 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
911 return FALSE;
912 }
913
914
915 WINBOOL
916 STDCALL
917 SetThreadPriorityBoost(VOID)
918 {
919 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
920 return 0;
921 }
922
923
924 WINBOOL
925 STDCALL
926 SetVDMCurrentDirectories (
927 DWORD Unknown0,
928 DWORD Unknown1
929 )
930 {
931 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
932 return FALSE;
933 }
934
935
936 DWORD
937 STDCALL
938 TrimVirtualBuffer (
939 DWORD Unknown0
940 )
941 {
942 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
943 return 0;
944 }
945
946
947 DWORD
948 STDCALL
949 VDMConsoleOperation (
950 DWORD Unknown0,
951 DWORD Unknown1
952 )
953 {
954 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
955 return 0;
956 }
957
958
959 DWORD
960 STDCALL
961 VDMOperationStarted (
962 DWORD Unknown0
963 )
964 {
965 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
966 return 0;
967 }
968
969
970 DWORD
971 STDCALL
972 VerLanguageNameA (
973 DWORD wLang,
974 LPSTR szLang,
975 DWORD nSize
976 )
977 {
978 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
979 return 0;
980 }
981
982
983 DWORD
984 STDCALL
985 VerLanguageNameW (
986 DWORD wLang,
987 LPWSTR szLang,
988 DWORD nSize
989 )
990 {
991 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
992 return 0;
993 }
994
995
996 DWORD
997 STDCALL
998 VirtualBufferExceptionHandler (
999 DWORD Unknown0,
1000 DWORD Unknown1,
1001 DWORD Unknown2
1002 )
1003 {
1004 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
1005 return 0;
1006 }
1007
1008 /* EOF */