Split kernel32 into separate files (part 2)

This commit is contained in:
2025-10-02 00:20:28 -06:00
parent 9ea5b24b67
commit fa3ed4893a
53 changed files with 7352 additions and 6134 deletions

View File

@@ -0,0 +1,29 @@
#include "profileapi.h"
#include "common.h"
#include "errors.h"
namespace kernel32 {
BOOL WIN_FUNC QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount) {
VERBOSE_LOG("STUB: QueryPerformanceCounter(%p)\n", lpPerformanceCount);
if (!lpPerformanceCount) {
wibo::lastError = ERROR_INVALID_PARAMETER;
return FALSE;
}
*lpPerformanceCount = 0;
wibo::lastError = ERROR_SUCCESS;
return TRUE;
}
BOOL WIN_FUNC QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency) {
VERBOSE_LOG("STUB: QueryPerformanceFrequency(%p)\n", lpFrequency);
if (!lpFrequency) {
wibo::lastError = ERROR_INVALID_PARAMETER;
return FALSE;
}
*lpFrequency = 1;
wibo::lastError = ERROR_SUCCESS;
return TRUE;
}
} // namespace kernel32