search for: getstdhandl

Displaying 20 results from an estimated 20 matches for "getstdhandl".

Did you mean: getstdhandle
2017 Jun 04
2
trying to get a minimal windows program linked with lld
Here's some C code: extern void *GetStdHandle(unsigned int nStdHandle); extern void ExitProcess(unsigned int exit_code); extern char WriteFile(void *HANDLE, const void * lpBuffer, unsigned int nNumberOfBytesToWrite, unsigned int *lpNumberOfBytesWritten, void *lpOverlapped); static const char *message_ptr = "hello\n"; static con...
2009 Jan 13
2
My console app doesn't run in wine
...ls to resize the console with SetConsoleScreenBufferSize and also to write anything to screen with WriteConsoleA. I use the latest stable wine release (? 1.0.1) and start the app from the Ubuntu 8.10 preinstalled Terminal window. These should be the relevant wine debug messages: 0009:Call KERNEL32.GetStdHandle(fffffff6) ret=0040aada 0009:Ret KERNEL32.GetStdHandle() retval=00000004 ret=0040aada 0009:Call KERNEL32.GetStdHandle(fffffff5) ret=0040aae6 0009:Ret KERNEL32.GetStdHandle() retval=00000008 ret=0040aae6 0009:Call KERNEL32.GetConsoleScreenBufferInfo(00000008,0040c27c) ret=0040ab06 0009:Ret KERNEL...
2017 Jun 04
2
trying to get a minimal windows program linked with lld
...kernel32.lib being no good. kernel32.lib from the 14393 SDK worked fine. My goal is to not depend on .lib files from the SDK, so there's still a problem to solve here. On Sun, Jun 4, 2017 at 3:33 PM, Andrew Kelley <superjoe30 at gmail.com> wrote: Here's some C code: extern void *GetStdHandle(unsigned int nStdHandle); extern void ExitProcess(unsigned int exit_code); extern char WriteFile(void *HANDLE, const void * lpBuffer, unsigned int nNumberOfBytesToWrite,     unsigned int *lpNumberOfBytesWritten, void *lpOverlapped); static const char *message_ptr = "hello\n"; static con...
2001 May 16
1
wine-20010510 fails to run?
...e505 08067f18:Call kernel32.SetHandleCount(00000032) ret=0046983d 08067f18:Ret kernel32.SetHandleCount() retval=00000032 ret=0046983d 08067f18:Call kernel32.GetStartupInfoA(405b6e58) ret=00469867 08067f18:Ret kernel32.GetStartupInfoA() retval=405b6e58 ret=00469867 08067f18:Call kernel32.GetStdHandle(fffffff6) ret=00469920 08067f18:Ret kernel32.GetStdHandle() retval=00000004 ret=00469920 08067f18:Call kernel32.GetStdHandle(fffffff5) ret=0046992c 08067f18:Ret kernel32.GetStdHandle() retval=00000008 ret=0046992c 08067f18:Call kernel32.GetStdHandle(fffffff4) ret=00469938 08067f18:Ret...
2017 Jun 14
2
Using LLD to create a .lib from a .def
...fer(buf_ptr(def_contents)); MemoryBufferRef mbref(*mem_buf); lld::coff::parseModuleDefs(mbref); lld::coff::Config->OutputFile = buf_ptr(dll_path); lld::coff::writeImportLibrary(); } Then I give it def_contents that looks like: LIBRARY kernel32 EXPORTS ExitProcess GetConsoleMode GetStdHandle GetFileInformationByHandleEx WriteFile GetLastError with dll_path set to ./zig-cache/all.dll. This generates ./zig-cache/all.lib. The generated LLVM IR looks like: ; Function Attrs: noreturn nounwind declare void @ExitProcess(i32) #6 ; Function Attrs: nounwind declare i1 @GetConsoleMode(i8* no...
2017 Jun 15
2
Using LLD to create a .lib from a .def
...bref); >> lld::coff::Config->OutputFile = buf_ptr(dll_path); >> lld::coff::writeImportLibrary(); >> } >> >> >> Then I give it def_contents that looks like: >> LIBRARY kernel32 >> EXPORTS >> ExitProcess >> GetConsoleMode >> GetStdHandle >> GetFileInformationByHandleEx >> WriteFile >> GetLastError >> >> >> with dll_path set to ./zig-cache/all.dll. This generates >> ./zig-cache/all.lib. >> >> The generated LLVM IR looks like: >> >> ; Function Attrs: noreturn nounwind...
2001 Sep 04
0
AOL/Jr Monopoly game installer. Crash on exit
...tion() retval=00000000 ret=411070b1 08072c98:Call kernel32.GetTickCount() ret=4110715b 08072c98:Ret kernel32.GetTickCount() retval=00014b58 ret=4110715b passed master doesn't match slave name 08074390:Ret kernel32.SetConsoleCursorPosition() retval=00000001 ret=404fb171 08074390:Call kernel32.GetStdHandle(fffffff5) ret=404f94c8 08074390:Ret kernel32.GetStdHandle() retval=00000008 ret=404f94c8 08074390:Call kernel32.WriteFile(00000008,405228e0,00000014,00000000,00000000) ret=404f94ce 08074390:Ret kernel32.WriteFile() retval=00000001 ret=404f94ce 08074390:Call kernel32.DebugActiveProcess(08068680...
2017 Jun 16
2
Using LLD to create a .lib from a .def
...t;>> lld::coff::writeImportLibrary(); >>>> } >>>> >>>> >>>> Then I give it def_contents that looks like: >>>> LIBRARY kernel32 >>>> EXPORTS >>>> ExitProcess >>>> GetConsoleMode >>>> GetStdHandle >>>> GetFileInformationByHandleEx >>>> WriteFile >>>> GetLastError >>>> >>>> >>>> with dll_path set to ./zig-cache/all.dll. This generates >>>> ./zig-cache/all.lib. >>>> >>>> The generated L...
2009 Dec 09
2
[LLVMdev] Problem with code generated for call using stdcall convention
Hi, I'm trying to run the following module in lli on LLVM 2.6, Windows/MSVS 2008, 32 bits memory model: --- declare x86_stdcallcc i8* @GetStdHandle(i32) define i32 @main() { %handle = call i8* @GetStdHandle(i32 -11) ret i32 0 } --- (This small modules that just retrieve the handle to stdout using WIN32 API). I'm converting it to bytecode using: llvm-as.exe -f helloworldwin32.ll and running it with lli using: lli.exe hell...
2011 Aug 17
1
Foxpro File Copying causes Invalid Name warning
...001b:Call KERNEL32.FormatMessageW(00001100,00000000,0000007b,00000000,00349db4,00000000,00000000) ret=7ea9746e 001b:Ret KERNEL32.FormatMessageW() retval=0000000e ret=7ea9746e 001b:Call KERNEL32.GetStdHandle(fffffff4) ret=7ea974b1 001b:Ret KERNEL32.GetStdHandle() retval=00000014 ret=7ea974b1 001b:Call KERNEL32.lstrlenW(00132f58 L"Invali...
2017 Jan 06
1
[PATCH 5/5] win_utf8_io: Avoid forbidden functions when building for WinRT/UWP
...> int win_get_console_width(void) > { > int width = 80; > +#if WINAPI_FAMILY_PARTITION(WINAPI_PARTITION_DESKTOP) Apparently these preprocessor defines are from winapifamily.h so it won't work in older MSVS and MinGW. > CONSOLE_SCREEN_BUFFER_INFO csbi; > HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); > if(hOut != INVALID_HANDLE_VALUE && hOut != NULL) > if (GetConsoleScreenBufferInfo(hOut, &csbi) != 0) > width = csbi.dwSize.X; > +#endif > return width; > } > @@ -176,6 +179,7 @@ int win_get_console_width(void) > static int wprin...
2012 Aug 20
0
Problem with initializiing R main loop under Windows (R.dll-version: 2.15.1)
...; RParams.YesNoCancel = RAskYesNoCancel; RParams.Busy = RBusy; // Install own handlers R_SetParams(&RParams); // flush the console input buffer // call to WINAPI: clears all that's in stdin FlushConsoleInputBuffer(GetStdHandle(STD_INPUT_HANDLE)); // Fake a command line int argc = 2; char* argv[2] = { qstrdup ("--no-save"), qstrdup ("--no-restore") }; // redirect the BREAK signal to own handler signal(SIGBREAK, pi_onintr); // set the arguments...
2017 Jan 06
8
[PATCH 0/5] Allow multiple targets to be disabled
Hi, This patchet allows a few targets to be disabled when unrequired. The rational is coming from VLC's contrib buildsystem, so far we use make -C to select only some subparts of the available targets. It would be easier and cleaner to use autoconf to do so IMHO. There's an additional patch which fixes the build when building for WinRT/UWP platform, upstreamed from VLC. We have a couple
2001 Sep 13
4
Setup exits with empty dialog box!
Hi all, I'm just getting started using WINE. I set it up, and it runs the canonical Solitaire game just fine. My WINE config file is attached. I popped in a Sierra Generations Family Tree Deluxe CD and ran its setup program. A small window titled "Setup" appears with a gas gauge and the text "Generations(R) 4.2 Setup is preparing the InstallShield(R) Wizard which will
2003 Jul 16
2
Fatal error in SJava.
Dear r-helpers, I have been trying to invoke R from Java in a Windows 2000 computer (unfortunately). All my environment variables seem to be properly set, everything seems to be in order, but I obtaining a Fatal error: unable to open the base package error window. Also, the output of the invoker is Loading RInterpreter library R_HOME: R_HOME=C:/Programas/R RVersion: R_VERSION=1.6.1 whereas
2014 Feb 07
0
Wine release 1.7.12
...::do_put_double. msvcrt: Fix str*coll functions behavior in C locale. msvcrt: Fix wcs*coll functions behavior in C locale. msvcrt: Support _IOSTRG flag in _filbuf function. msvcrt: Flush standard streams in flushall function. msvcrt: Don't close handles returned by GetStdHandle function. msvcm90: Share the source code with msvcm80. msvcm90: Don't forward to msvcm80. msvcp70: Share the source code with msvcp90. msvcp70: Don't forward bad_alloc implementation to msvcrt. kernel32: Handle STD_*_HANDLE in GetFileType. Sebastian Lackner (...
2010 Oct 01
0
Wine release 1.3.4
...WaitForSingleObject import. kernel32: Add test for WaitForSingleObject with lower 2 bits of handles set. kernel32: Fix WaitForMultipleObjectsEx for handles with lower 2 bits set. kernel32: VerifyConsoleIoHandle does not set last error value. kernel32: Fix last error value of GetStdHandle/SetStdHandle when called with wrong std handle. Piotr Caban (5): msvcrt: Added 'll' modifier to printf functions. oleaut32: Rename stubs.c file. oleaut32: Execute OleCreatePropertyFrameIndirect in OleCreatePropertyFrame. oleaut32: Added OleCreatePropertyFrameIndire...
2019 Jan 14
6
[PATCH nbdkit incomplete 0/5] Port to Windows.
This is an incomplete port to Windows. Currently the server compiles and starts up successfully, but goes into an infinite loop when you connect to it. Nevertheless I think the approach is ready for feedback. This being Windows the changes go quite deep. Rich.
2020 Aug 18
15
[PATCH nbdkit 0/9] Port to Windows.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw This is the port to Windows using native Windows APIs (not MSYS or Cygwin). This patch series is at the point where it basically now works. I can run the server with the memory plugin, and access it remotely using guestfish, creating filesystems and so on without any apparent problems. Nevertheless there are many
2020 Aug 20
15
[PATCH nbdkit 0/13] Port to Windows without using a separate library.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw-nolib After a lot of work I have made the port to Windows work without using a separate library. Instead, on Windows only, we build an "import library" (library of stubs) which resolves references to nbdkit_* functions in the main program and fixes up the plugin, basically the first technique outlined in