Top "Winapi" questions

The Windows API (formerly called the Win32 API) is the core set of application programming interfaces available for the Microsoft Windows operating systems.

How to get main window handle from process id?

How to get main window handle from process id? I want to bring this window to the front. It works …

c++ windows winapi windows-7
What is __stdcall?

I'm learning about Win32 programming, and the WinMain prototype looks like: int WINAPI WinMain ( HINSTANCE instance, HINSTANCE prev_instance, PSTR …

c winapi calling-convention stdcall
Why does CreateProcess give error 193 (%1 is not a valid Win32 app)

The code below fails to start documents. I get error 193 (%1 is not a valid Win32 app). Starting executables work fine. …

windows delphi winapi delphi-xe2 delphi-2007
How do I link to a library with Code::Blocks?

C++ GUI Tutorial: undefined reference to TextOut I have the same problem, but I'm new to programming and Code::Blocks, …

c++ winapi codeblocks
How to find if a native DLL file is compiled as x64 or x86?

I want to determine if a native assembly is complied as x64 or x86 from a managed code application (C#). …

c# .net winapi 64-bit x86-64
How to use a FolderBrowserDialog from a WPF application

I'm trying to use the FolderBrowserDialog from my WPF application - nothing fancy. I don't much care that it has …

wpf winapi
How can I get a list of all open named pipes in Windows?

Is there an easy way to test whether your named pipe is working correctly? I want to make sure that …

windows winapi pipe
Generating a unique machine id

I need to write a function that generates an id that is unique for a given machine running a Windows …

windows winapi wmi uniqueidentifier
Conversion of wchar_t* to string

How can I convert an wchar_t* array to an std::string varStr in win32 console.

c++ string winapi type-conversion wchar-t
System Error. Code: 8. Not enough storage is available to process this command

We have a few Win32 applications (coded in Delphi 2006) where sometimes the user gets an error message saying "System Error. …

delphi winapi