Not able to reach even wWinMain in Windows Server Core Machine 2022

Shyam Butani 235 Reputation points
2024-07-16T10:52:59.8866667+00:00

Hi,

I am trying to run a C++ Win32 application with XAML Island as UI Library. I am able to run on normal desktop machines such as Windows 11 but when I try to run the same application on Windows Server core machine it failed and didn't even reach our entry point -- 'wWinMain'.

I tried to check the event logs in this Server core machine using the below command. Pasting the command and adding the logs that I received. We are not able to understand what is such causing this issue, can somebody help here?

Get-EventLog -LogName Application -EntryType Error -Newest 1 | Format-List -Property *

Error Details:
Exception code: 0xc0000409

Fault offset: 0x0000000000453f9d

Faulting process id: 0x808

Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,652 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,761 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Darran Rowe 1,041 Reputation points
    2024-07-16T14:38:19.71+00:00

    Is it possible that Server Core doesn't have the full UI capabilities, and Xaml is one of the things that is missing?

    The exception code, 0xc0000409 is traditionally documented as STATUS_STACK_BUFFER_OVERRUN, but it is used as the status code for any fast process exit. It is the code that appears when a process calls __fastfail in user mode.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.