more cl funcs

This commit is contained in:
rjkiv
2025-08-04 10:53:35 -07:00
parent 459efea654
commit dc2ad0d678
2 changed files with 47 additions and 0 deletions

View File

@@ -2174,6 +2174,11 @@ namespace kernel32 {
return 1; // EXCEPTION_EXECUTE_HANDLER
}
unsigned int WIN_FUNC SetErrorMode(unsigned int mode){
DEBUG_LOG("SetErrorMode: %d\n", mode);
return 0;
}
struct SINGLE_LIST_ENTRY
{
SINGLE_LIST_ENTRY *Next;
@@ -2481,6 +2486,7 @@ static void *resolveByName(const char *name) {
// errhandlingapi.h
if (strcmp(name, "SetUnhandledExceptionFilter") == 0) return (void *) kernel32::SetUnhandledExceptionFilter;
if (strcmp(name, "UnhandledExceptionFilter") == 0) return (void *) kernel32::UnhandledExceptionFilter;
if (strcmp(name, "SetErrorMode") == 0) return (void*)kernel32::SetErrorMode;
// interlockedapi.h
if (strcmp(name, "InitializeSListHead") == 0) return (void *) kernel32::InitializeSListHead;