reactos/lib/kernel32/misc
diff -u -r1.87 -r1.88
--- stubs.c 22 Sep 2004 09:31:01 -0000 1.87
+++ stubs.c 22 Sep 2004 10:49:07 -0000 1.88
@@ -1,6 +1,6 @@
-/* $Id: stubs.c,v 1.87 2004/09/22 09:31:01 weiden Exp $
+/* $Id: stubs.c,v 1.88 2004/09/22 10:49:07 weiden Exp $
*
- * KERNEL32.DLL stubs (unimplemented functions)
+ * KERNEL32.DLL stubs (STUB functions)
* Remove from this file, if you implement them.
*/
@@ -10,57 +10,59 @@
#include "../include/debug.h"
-//#define _OLE2NLS_IN_BUILD_
+#define STUB \
+ SetLastError(ERROR_CALL_NOT_IMPLEMENTED); \
+ DPRINT1("%s() is UNIMPLEMENTED!\n", __FUNCTION__)
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
BaseAttachCompleteThunk (VOID)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
VOID STDCALL
BaseDumpAppcompatCache(VOID)
{
- DPRINT1("BaseDumpAppcompatCache: stub\n");
+ STUB;
}
/*
- * @unimplemented
+ * @STUB
*/
VOID STDCALL
BaseFlushAppcompatCache(VOID)
{
- DPRINT1("BaseFlushAppcompatCache: stub\n");
+ STUB;
}
/*
- * @unimplemented
+ * @STUB
*/
VOID STDCALL
BaseCheckAppcompatCache(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3, ULONG Unknown4)
{
- DPRINT1("BaseCheckAppcompatCache: stub\n");
+ STUB;
}
/*
- * @unimplemented
+ * @STUB
*/
VOID STDCALL
BaseUpdateAppcompatCache(ULONG Unknown1, ULONG Unknown2, ULONG Unknown3)
{
- DPRINT1("BaseUpdateAppcompatCache: stub\n");
+ STUB;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -68,13 +70,13 @@
DWORD Unknown
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
int
STDCALL
@@ -87,13 +89,13 @@
int cchCount2
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
int
STDCALL
@@ -125,7 +127,7 @@
if (dwCmpFlags & ~NORM_IGNORECASE)
{
- DPRINT1("CompareString: Unimplemented flags - 0x%x\n",
+ DPRINT1("CompareString: STUB flags - 0x%x\n",
dwCmpFlags & ~NORM_IGNORECASE);
}
@@ -148,7 +150,7 @@
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -158,13 +160,13 @@
DWORD Unknown2
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -173,13 +175,13 @@
DWORD Unknown1
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -188,13 +190,13 @@
DWORD Unknown1
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
int
STDCALL
@@ -206,13 +208,13 @@
int cchDest
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
int
STDCALL
@@ -224,13 +226,13 @@
int cchDest
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -238,18 +240,13 @@
HANDLE hVirtualBuffer
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
-#ifndef _OLE2NLS_IN_BUILD_
-
-
-
-
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -257,13 +254,13 @@
DWORD Unknown0
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -275,13 +272,13 @@
LPWORD lpCharType
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -293,13 +290,13 @@
LPWORD lpCharType
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -310,13 +307,13 @@
LPWORD lpCharType
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -328,15 +325,13 @@
LPWORD lpCharType
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
-#endif
-
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -344,13 +339,13 @@
LPSYSTEM_POWER_STATUS PowerStatus
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -359,13 +354,13 @@
DWORD Unknown1
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -383,13 +378,13 @@
DWORD Unknown10
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -397,13 +392,13 @@
DWORD Unknown0
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -411,13 +406,13 @@
DWORD Unknown0
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL STDCALL
SetSystemPowerState (
@@ -425,13 +420,13 @@
BOOL fForce
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -440,13 +435,13 @@
DWORD Unknown1
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return FALSE;
}
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -454,13 +449,13 @@
DWORD Unknown0
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -469,13 +464,13 @@
DWORD Unknown1
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -483,15 +478,13 @@
DWORD Unknown0
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
-#ifndef _OLE2NLS_IN_BUILD_
-
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -501,13 +494,13 @@
DWORD nSize
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -517,14 +510,13 @@
DWORD nSize
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
-#endif
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -534,12 +526,12 @@
DWORD Unknown2
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -548,12 +540,12 @@
ULONG_PTR *lpCookie
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
VOID
STDCALL
@@ -561,11 +553,11 @@
HANDLE hActCtx
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -575,12 +567,12 @@
PULONG_PTR PageArray
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -589,12 +581,12 @@
HANDLE hProcess
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -604,12 +596,12 @@
ULONG Flags
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -617,13 +609,13 @@
HANDLE hDevice
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
HANDLE
STDCALL
@@ -631,12 +623,12 @@
PCACTCTXA pActCtx
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
HANDLE
STDCALL
@@ -644,12 +636,12 @@
PCACTCTXW pActCtx
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -658,12 +650,12 @@
PJOB_SET_ARRAY UserJobSet,
ULONG Flags)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -672,13 +664,12 @@
ULONG_PTR ulCookie
)
{
- DbgPrint("DeactivateActCtx: stub\n");
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -690,12 +681,12 @@
PACTCTX_SECTION_KEYED_DATA ReturnedData
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -703,12 +694,12 @@
HANDLE hFindVolume
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -716,12 +707,12 @@
HANDLE hFindVolumeMountPoint
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -731,24 +722,24 @@
PULONG_PTR PageArray
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
GetCurrentActCtx(
HANDLE *lphActCtx)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -757,12 +748,12 @@
BOOL *pfOn
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
VOID
STDCALL
@@ -770,11 +761,11 @@
LPSYSTEM_INFO lpSystemInfo
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -782,12 +773,12 @@
PULONG HighestNodeNumber
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -796,12 +787,12 @@
PULONGLONG ProcessorMask
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -810,12 +801,12 @@
PUCHAR NodeNumber
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -824,12 +815,12 @@
PBOOL lpIOIsPending
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
UINT
STDCALL
@@ -842,12 +833,12 @@
PULONG lpdwGranularity
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -859,12 +850,12 @@
PSIZE_T ReturnLength OPTIONAL
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -875,12 +866,12 @@
SIZE_T HeapInformationLength OPTIONAL
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -890,12 +881,12 @@
PBOOL Result
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -903,12 +894,12 @@
VOID
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -917,12 +908,12 @@
PBOOL Wow64Process
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -932,12 +923,12 @@
PULONG_PTR PageArray OPTIONAL
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -947,12 +938,12 @@
PULONG_PTR PageArray OPTIONAL
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -966,12 +957,12 @@
SIZE_T *pcbWrittenOrRequired OPTIONAL
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
BOOL
STDCALL
@@ -983,12 +974,12 @@
LPDWORD lpReturnLength
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
/*
- * @unimplemented
+ * @STUB
*/
DWORD
STDCALL
@@ -998,12 +989,12 @@
ULONG_PTR dwData
)
{
- SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+ STUB;
return 0;
}
[truncated at 1000 lines; 1227 more skipped]