Hello Mw,

I've done some Windows kernel work some years ago. I think you're
going to have to build your own disk IO and file locking modules
because standard windows API's don't work in the kernel level.  I
think you might be better off leaving the DB up in user space and just
let the driver communicate to a DB module in user space. At least
that's how I'd try to implement it.

C

Friday, December 4, 2009, 10:56:57 AM, you wrote:

MM> sqlite3.lib was made by VC++;and already added to the sources file.

MM> TARGETLIBS=sqlite3.lib


MM> code:


MM> #include <ntddk.h>
MM> #include <stdio.h>
MM> #include <sqlite3.h>


MM> void database()
MM> {
MM> sqlite3 *db;
MM> sqlite3_open("c:\\test.db",&db);
MM> DbgPrint("hello,on it\n");
MM> }


MM> NTSTATUS DriverEntry(PDRIVER_OBJECT pDriverObj,PUNICODE_STRING 
pRegistryString)
MM> {
MM> database();
MM> return 0;
MM> }



MM>       Yahoo!香港提供網上安全攻略,教你如何防範黑客! 請前往
MM> http://hk.promo.yahoo.com/security/ 了解更多!
MM> _______________________________________________
MM> sqlite-users mailing list
MM> sqlite-users@sqlite.org
MM> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users



-- 
Best regards,
 Teg                            mailto:t...@djii.com

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to