LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /opt/golang/1.22.0/src/runtime/testdata/testwinlibthrow/
File Upload :
Command :
Current File : //opt/golang/1.22.0/src/runtime/testdata/testwinlibthrow/veh.c

//go:build ignore

#include <windows.h>

__declspec(dllexport)
void RaiseNoExcept(void)
{
    RaiseException(42, 0, 0, 0);
}

static DWORD WINAPI ThreadRaiser(void* Context)
{
    RaiseNoExcept();
    return 0;
}

__declspec(dllexport)
void ThreadRaiseNoExcept(void)
{
    HANDLE thread = CreateThread(0, 0, ThreadRaiser,  0, 0, 0);
    if (0 != thread)
    {
        WaitForSingleObject(thread, INFINITE);
        CloseHandle(thread);
    }
}

LittleDemon - FACEBOOK
[ KELUAR ]