DriverLoader | Small tool which loads Windows drivers with NtLoadDriver
kandi X-RAY | DriverLoader Summary
kandi X-RAY | DriverLoader Summary
Small tool which loads Windows drivers with NtLoadDriver.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of DriverLoader
DriverLoader Key Features
DriverLoader Examples and Code Snippets
Community Discussions
Trending Discussions on DriverLoader
QUESTION
I have a kernel driver written in C, where it is expecting a text of type PCWSTR
. What's the Delphi type equivalent to send a control code? I tried sending using the following code but GetLastError
reports ERROR_NOACCESS
. How to solve that?
ANSWER
Answered 2020-Jul-21 at 06:39While calling DeviceIOControl(IOCTL_PATH_DELETE)
, when you pass in szInput
and szOutput
, you are type-casting a single WideChar
to a PWideChar
, so whatever numeric value that WideChar
contains will be mis-interpreted as a memory address, which is wrong. So you end up passing in invalid memory addresses, which can easily account for the ERROR_NOACCESS
error.
Change PWideChar(szInput[0])
to PWideChar(@szInput[0])
or simply get rid of the type-cast altogether, passing @szInput
as-is. Same with szOutput
.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install DriverLoader
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page