Files

32 lines
721 B
C++
Raw Permalink Normal View History

2025-10-02 00:20:28 -06:00
#include "profileapi.h"
2025-10-02 00:20:28 -06:00
#include "common.h"
#include "context.h"
2025-10-02 00:20:28 -06:00
#include "errors.h"
namespace kernel32 {
BOOL WIN_FUNC QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount) {
HOST_CONTEXT_GUARD();
2025-10-02 00:20:28 -06:00
VERBOSE_LOG("STUB: QueryPerformanceCounter(%p)\n", lpPerformanceCount);
if (!lpPerformanceCount) {
wibo::lastError = ERROR_INVALID_PARAMETER;
return FALSE;
}
*lpPerformanceCount = 0;
return TRUE;
}
BOOL WIN_FUNC QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency) {
HOST_CONTEXT_GUARD();
2025-10-02 00:20:28 -06:00
VERBOSE_LOG("STUB: QueryPerformanceFrequency(%p)\n", lpFrequency);
if (!lpFrequency) {
wibo::lastError = ERROR_INVALID_PARAMETER;
return FALSE;
}
*lpFrequency = 1;
return TRUE;
}
} // namespace kernel32