driver

Directory relative ZwCreateFile

核能气质少年 提交于 2020-01-15 03:28:09
问题 I have to implement cross view file integrity checker for my University project. For that how do I list the files of a Directory in Kernel Mode?? 回答1: Your starting point would be ZwCreateFile - which has options such as "FILE_LIST_DIRECTORY". You will then use ZwQueryDirectoryFile to get the information about the file(s) within that directory. Make SURE that you are not forgetting to ZwClose after you open something - it's not so critical in a user-mode application that closes again after it

Win7: Replacing a driver without reboot

ⅰ亾dé卋堺 提交于 2020-01-14 13:15:34
问题 I'm debugging an audio driver under Windows 7. When I need to replace it with an updated version, I have to reboot the system because a copy of current driver under DriverStore is locked despite the fact that the driver is unloaded. Is there a way to avoid rebooting? It was possible on XP... 回答1: Do you tried to stop driver with devcon.exe utility (an old version can be downloaded also in http://support.microsoft.com/kb/311272, a new version you find under C:\WinDDK\7600.16385.1\tools\devcon

How stable is dokan sshfs?

半城伤御伤魂 提交于 2020-01-13 03:17:36
问题 People have reported BSOD on windows 7 (64bit) http://dokan-dev.net/en/2009/04/06/the-next-release-of-dokan-library/. For some reason unknown to me, my explorer on winxp sp3 (32bit) gets shaky and at time freezes if I do lots of browsing via doken SSHFS drive. Have you faced any issues lately with sshfs doken driver? Just wanted to get your opinion on its stability? 回答1: Yes, BSOD on x64 in general, with 100% certainty on my Windows Vista x64, everytime ! The shaky is because it continuously

When does the probe function for a Linux kernel driver gets called?

最后都变了- 提交于 2020-01-12 06:49:23
问题 I am trying to update a kernel driver for Android, I have added some printk's to debug it, the _init function is invoked, but the probe function is not. What I am missing ? When/how is the probe function invoked ? The code is available at: https://github.com/lamegopinto/kernel-2.6.32.27-M722HC/blob/master/drivers/power/rk2918_battery.c 回答1: Found the answer after some research, For a "platform" device the probe function is invoked when a platform device is registered and it's device name

Is it possible to modify interface index

风格不统一 提交于 2020-01-11 12:22:50
问题 If the kernel decides to change the interface index for some reason, our userspace code cached interface index does not gets updated and it starts dropping the packet because their is mismatch between interface index cached in userspace and what is actually present in kernel. I've used if_indextoname(index, interfaceName) to solve this problem. Basically kernel knows which index maps to correct interface name. Now comes my requirement: I need to test my code. Is there a way by which I can

Java program and mySQL connectivity issue: No suitable driver found

一笑奈何 提交于 2020-01-11 10:26:12
问题 I've been having a problem with mySQL database connectivity. I'm getting an error: No suitable driver found for jdbc:mysql://127.0.0.1/sakila. I have installed mySQL workbench, and have the driver from here http://dev.mysql.com/downloads/connector/j/ I have saved mysql-connector-java-5.1.18-bin and set the classpath to C:\Program Files\Java\jre7\lib\mysql-connector-java-5.1.18-bin; and started the mysql workbench where the database is found. The code I am using is as follows: Which I am sure

Laravel connection MSSqL server works with cli, but not in browser

时光总嘲笑我的痴心妄想 提交于 2020-01-11 10:16:28
问题 After installing the dll's to use with MSSqL server, the command php artisan migrate ran correctly and the tables were made in the db . So I thought the connection would work for this application. I then used the command php artisan make:auth (which doesn't use the db connection) to scaffold the authentication files. Now when I try to register anyone I get errors: PDOExeption (1/2) Could not find driver and PDOExeption (2/2) Could not find driver (select count(*) from ..... Now I tried to see

Laravel connection MSSqL server works with cli, but not in browser

☆樱花仙子☆ 提交于 2020-01-11 10:16:19
问题 After installing the dll's to use with MSSqL server, the command php artisan migrate ran correctly and the tables were made in the db . So I thought the connection would work for this application. I then used the command php artisan make:auth (which doesn't use the db connection) to scaffold the authentication files. Now when I try to register anyone I get errors: PDOExeption (1/2) Could not find driver and PDOExeption (2/2) Could not find driver (select count(*) from ..... Now I tried to see

OpenGL: glVertexAttribPointer() fails with “Invalid value” for stride bigger than 2048 on new NVIDIA drivers

纵饮孤独 提交于 2020-01-07 05:45:08
问题 Did anyone else recognize that it is not possible any more to call glVertexAttribPointer() with a stride bigger then 2048 with new NVIDIA drivers (from 331.58 WHQL and above)? The call creates the OpenGL error Invalid value (1281) . For example the following minimal GLUT example will generate the OpenGL error 1281 after testStride(2049); is called when using driver 331.58 WHQL: #include <iostream> #include <GL/glut.h> #include <windows.h> using namespace std; PFNGLVERTEXATTRIBPOINTERPROC

ambiguous << operator in Mongodb C++ driver document builder

前提是你 提交于 2020-01-07 04:58:08
问题 I am trying to build a mongodb document using the v3 driver. I am using strings from an array of "char *" pointers but I keep getting an error that says the << operator is ambiguous. The exact error is: item.cpp:105: error: ambiguous overload for ‘operator<<’ (operand types are ‘std::enable_if<true, bsoncxx::v_noabi::builder::stream::key_context<> >::type {aka bsoncxx::v_noabi::builder::stream::key_context<>}’ and ‘const char*’) << dbTypeString[dbType::IT_TYPE] dbTypeString is an array of