Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [kernel32]

Anything related to MS Windows Kernel API (part of Windows API), residing in the `kernel32.dll` library. This library provides basic kernel services to user code, e.g. copying or locking a file, creating a mutex or a process, allocating memory, etc. This library is used by both 32-bit and 64-bit Windows, despite the name.

kernel32
-1 votes
0 answers
36 views

Why kernel32.dll ignores frequency parameter?

I have tried to make music with kernel32.dll's Beep function/method, like this: rundll32.exe kernel32.dll,Beep 40,100 rundll32.exe kernel32.dll,Beep 50,100 rundll32.exe kernel32.dll,Beep 60,100 ...
user26368465's user avatar
1 vote
1 answer
50 views

How to Enumerate Threads using CreateToolhelp32Snapshot and Python ctypes?

This seems like it should print the thread ID of the first thread in the snapshot, but it always prints 0. What is wrong with it? The following assumes that process ID 1234 is a real, running process. ...
Utkonos's user avatar
  • 744
1 vote
1 answer
30 views

Create Process in Debug Using Python ctypes

The following code is supposed to start a new process calc.exe in debug mode. However, it fails with the code 2 or ERROR_FILE_NOT_FOUND. However, this file calc.exe does exist on the system. What ...
Utkonos's user avatar
  • 744
0 votes
0 answers
76 views

Kernel32.dll LoadLibrary does not work in Docker container

I am developing a .NET WebApi Application which is intended to make calls to a Windows dll library. I use kernel32.dll's function LoadLibrary to load the dll. When I run the application on IIS or IIS ...
Sergei Poliakov's user avatar
-1 votes
1 answer
295 views

LNK1104 cannot open file 'kernel32.lib'

Getting following error LNK1104 cannot open file 'kernel32.lib', what path do i need to add, and where to add it in Visual Studio 2022. I looked at previous threads, most solutions are for older ...
Doc's user avatar
  • 11
0 votes
0 answers
38 views

SUMMA USB Plotter write operation using Kernel32.WriteFile is failing

I am attempting to create handle for SUMMA USB plotter, using its device id ("USB\VID_099F&PID_0100\5&10D09A20&0&1") and writing it using WriteFile, Below is the extracted ...
jayanth's user avatar
2 votes
2 answers
275 views

How to capture a DLL's stdout/stderr in Python?

How can you capture a DLL's stdout and/or stderr in Python on Windows? For example, this prints "hello" to stderr, but it should be possible to capture the "hello" as a string ...
1'''s user avatar
  • 26.8k
0 votes
1 answer
41 views

Use CreateThread With Kotlin Native?

I tried to use CreateThread in kernel32 to start a DataCollectorEntry function in new thread but it did not execute any line on the function and the GetLastError return 0 that means everything is ...
Ahmed Jihad's user avatar
0 votes
1 answer
182 views

"bootstrap handle cannot be initialized" error when working with LibreOffice in .NET Core?

I'm attempting to work with LibreOffice using .NET Core, but I'm encountering an error that says 'bootstrap Handle is not initialized . using unoidl.com.sun.star.uno; m_xContext = uno.util.Bootstrap....
BilalMr's user avatar
  • 337
1 vote
1 answer
156 views

IsWindows10OrGreater function from <VersionHelpers.h> usage problem in asm x86 code

Have a task to call IsWindows10OrGreater function in asm x86 code. At first, I tried to include it from kernel32 lib, but than I found out that this library doesn't contain IsWindows10OrGreater ...
nzrsvt's user avatar
  • 11
0 votes
0 answers
309 views

USB C# .NET Write on USB printer device using kernel32.dll's WriteFile

I've been trying to get it to work for a while, but I just can't. And looking online there don't seem to be many USB oriented answers for communicating with a printer. The final objective is to ...
Robin's user avatar
  • 1
1 vote
1 answer
274 views

How to create an import library for kernel32.dll using a .def file on x86?

I have a small project that does not depend on the CRT or windows sdk. In order to link against kernel32.dll I created a minimal .def file with only the couple functions I need: LIBRARY kernel32.dll ...
lelgetrekt's user avatar
1 vote
0 answers
525 views

Finding Kernel32 Base Address

I've been experimenting with ways to obtain the Kernel32.dll base address in C shellcode and came up with the following method. It works on my machine running Windows 11 Pro, but I'm wondering how ...
vengy's user avatar
  • 2,125
0 votes
0 answers
136 views

Calling asynchronous file write (WriteFileEx) from VBA in Windows?

I am trying to write a stream of data with minimal delay between buffer transfers in VBA. The data may be acquired with maximal 30~35 usec precision in VBA. But because of continuous data stream, I ...
Asdf's user avatar
  • 298
0 votes
0 answers
118 views

How to find list of JobObjects that are assigned to the current process?

I'm running a program in C#, and I want to know the list of JobObjects that are assigned to the current process. Is there a way to do this? To be more specific about my use-case, I'm trying to find ...
Yahav's user avatar
  • 1

15 30 50 per page
1
2 3 4 5
22