mirror of
https://github.com/decompals/wibo.git
synced 2025-12-12 06:45:05 +00:00
33 lines
769 B
C++
33 lines
769 B
C++
#include "profileapi.h"
|
|
|
|
#include "common.h"
|
|
#include "context.h"
|
|
#include "errors.h"
|
|
#include "internal.h"
|
|
|
|
namespace kernel32 {
|
|
|
|
BOOL WINAPI QueryPerformanceCounter(LARGE_INTEGER *lpPerformanceCount) {
|
|
HOST_CONTEXT_GUARD();
|
|
VERBOSE_LOG("STUB: QueryPerformanceCounter(%p)\n", lpPerformanceCount);
|
|
if (!lpPerformanceCount) {
|
|
kernel32::setLastError(ERROR_INVALID_PARAMETER);
|
|
return FALSE;
|
|
}
|
|
lpPerformanceCount->QuadPart = 0;
|
|
return TRUE;
|
|
}
|
|
|
|
BOOL WINAPI QueryPerformanceFrequency(LARGE_INTEGER *lpFrequency) {
|
|
HOST_CONTEXT_GUARD();
|
|
VERBOSE_LOG("STUB: QueryPerformanceFrequency(%p)\n", lpFrequency);
|
|
if (!lpFrequency) {
|
|
kernel32::setLastError(ERROR_INVALID_PARAMETER);
|
|
return FALSE;
|
|
}
|
|
lpFrequency->QuadPart = 1;
|
|
return TRUE;
|
|
}
|
|
|
|
} // namespace kernel32
|