This will cause a crash:
// Set the main window as borderless
hWnd = openWindow(0, 0, ScreenW, ScreenH, "Zabi's Escape Editor", WS_POPUP | WS_CLIPCHILDREN, true);
// Attach the DarkGDK screen to the window
dbOpenScreen(hWnd, 0, 0, ScreenW, ScreenH,ScreenD,0);
// Set the window to the to the top of the z-order
SetWindowPos(hWnd, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOREPOSITION | SWP_NOSIZE);
ShowWindow(hWnd, SW_SHOW);
dbSetDisplayMode(ScreenW, ScreenH,ScreenD,0,1,0,0,0,0);
I have a feeling I'm supposed to use it in place of something, but I can't figure it out.
The fastest code is the code never written.