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.

307 questions
0
votes
3 answers

What Virtual TLB?

Does anybody knows what does it mean by Virtual TLB, and what is the difference between this VTLB and the normal TLB .. I can't find a clear answer on Google?
Abdel Hegazi
  • 368
  • 3
  • 14
0
votes
1 answer

Using win32Com (does not exist in current context)

I'm trying to use the Win32 API to write my own small library for connecting to a serial port. Unfortunately all the sample code that I find uses the kernel32.dll (which I can do) but the createFile command uses the prefix win32Com, which I am…
tmwoods
  • 2,353
  • 7
  • 28
  • 55
0
votes
1 answer

CreateToolhelp32Snapshot could not be located in kernel32.dll error message

When launching my application in Windows NT machine (Ver. 4.0 SP6), I get the below error message and the application does not get launched. However, the same app gets launched on Windows XP and works fine. The Message reads as below: "The procedure…
Nayan Soni
  • 1,001
  • 3
  • 12
  • 22
0
votes
1 answer

How to get partition type by kernel32 API?

Is there a kernel32 API can help us to detect the partition type ( Primary/Logical ) ? thanks!
0
votes
1 answer

SetLocalTime gives Error 87 with Remote Debugging

I have the following C# code: public static void SetDateTime(System.DateTime datetime) { var systemNew = new SystemTime { wDay = (ushort)datetime.Day, wMonth = (ushort)datetime.Month, …
Davio
  • 4,609
  • 2
  • 31
  • 58
0
votes
2 answers

Can I get handle of the process by executable name?

I am using JNA to use user32.dll and kernel32.dll . I have the sample code which can give me the handle if i specify the title of the process. hWnd = User32.FindWindowA(null, "Call of Duty®: Modern Warfare® 3 Multiplayer"); I really don't want…
Rakesh Juyal
  • 35,919
  • 68
  • 173
  • 214
-1
votes
1 answer

What is different between OutputDebugStringA and OutputDebugStringW in kernel32.dll?

I was trying to use debugView in Electron for some reason When I use OutputDebugStringW everything I send to output become random char, on the other hand it seems correct when sending output using OutputDebugStringA contains English and number is…
lizard
  • 23
  • 2
-1
votes
3 answers

DeleteFile (kernel32.dll) vs DeleteItem (shell32.dll)

What is the difference between the two functions? DeleteFile function IFileOperation::DeleteItem method
user8056359
  • 437
  • 1
  • 7
  • 16
-1
votes
1 answer

Enumerating process id in kernel mode with EPROCESS structure

I want to enumerate all of the process id running on my system by using EPROCESS structure but the problem here is, I do not know how to access to the UniqueProcessId field in EPROCESS structure. Now, I've got the pointer to EPROCESS structure by…
MinYoung Lee
  • 51
  • 1
  • 9
-1
votes
2 answers

Creating exe vcxproj in Win 7 SP 1: The procedure entry point could not be located in the dynamic link library KERNAL32.dll

"The procedure entry point CreateFile2 could not be located in the dynamic link library KERNAL32.dll" We have been going to a new system, C++ built by waf to a Visual Studio 2013 build(vcxproj), converted several projects already but they all build…
-1
votes
1 answer

Built exe using Cygwin on Win10, but getting errors regarding kernel32.dll

I'm new to Cygwin. I installed it today (latest release downloaded from their web site), and built a program I've been working on, one which, years ago, was built for Windows using Cygwin by a different developer - Blitzed IRC Trivia (develop…
Andy Alt
  • 297
  • 2
  • 12
-1
votes
1 answer

the console crashed when i try to open it twice in wpf

I want to open a console in wpf, I was try to open the console twice without close the program, but in the second time the program crashed, I don't really know why and I'd love to help using System; using System.Windows; using…
-1
votes
2 answers

Win32 Assembly - WriteFile() to console don't show output

I'm now programming some Windows native assembly, using NASM 2.12.01 and GCC 4.8.1 as a linker. However, this simple HelloWorld program compiles & links without any complaints, but doesn't output anything to console screen. It seems that…
hakeris1010
  • 285
  • 1
  • 5
  • 12
-1
votes
1 answer

Startup application error using C# process

I want to start application using Process with some memory limit. I use AssignProcessToJobObject method from kernel32.dll to do it. I try to start application which consumes 10 MB of memory with 1 MB memory limit. But after start I see a dialog…
timbset
  • 27
  • 5
-1
votes
1 answer

DLL preloading attack. kernel32.dll loads system libraries from application directory

Seems to be kernel32.dll doesn't use a fully qualified path to some DLLs which it loads and that's why they can be loaded from application directory(the directory from which the application loaded). For example, these DLLs are: fltlib.dll,…
VRBV
  • 21
  • 2
1 2 3
20
21