Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

 
 
Thread Tools Display Modes
Prev Previous Post in Thread   Next Post in Thread Next
Old Jun 9th, 2006, 4:18 AM   #1
Mad_guy
Hobbyist Programmer
 
Mad_guy's Avatar
 
Join Date: Oct 2004
Location: Sandstorm, Techno Club
Posts: 239
Rep Power: 5 Mad_guy is on a distinguished road
Send a message via AIM to Mad_guy Send a message via MSN to Mad_guy
Native API header set

In a lot of Windows "under the hood" stuff I see (in both articles and source code, and books too) I come across the use of the native API all too often, and in many applications I see I find a lot of code that has to be rewritten over and over again to use more and more native API calls, they have to redefine structures and everything they need to make their call inparticular work. IOW, they have to continuously re-write code based on the api call(s) they need.

Now they don't have to, as I just really got finished testing and using this set of files (I had to annotate and add lots of stuff over 3000 lines of pre-existing using only error messages to guide me. Lots of fun there ) to make interfacing with the API easy. I've seen lots of sets of files to do this before-hand (most noticably, the code I based this on, the source from "Windows NT/2000 native api reference") but most requires you have the DDK at your disposal. Alas, after not even being able to get this to work myself, I set off to try and make it easy for me and others in the future.

I just finished testing this in Visual Studio 2005, and I'd say it's complete. It's a set of three headers that you can use to interface with the native API. All the function pointers are defined, all the structures you need are already there. You just have to get the function pointers with GetProcAddress and you're ready to be usin' (if you question why I did it this way, read the README.) The README should explain how to use it. I only tested it with Visual Studio 2005, and even then not really extensively (although chances are I'll include the project that I used to test it in the .zip file pretty soon to have an example shown.) So, if you use these three headers with other compilers and whatnot, and you find a bug, email me (mad.one@gmail.com) with the bug and as much information as possible and I'll try to fix it. (On a side note, try to email me only if it's *really* a bug, don't email me with "bug report" just asking how to get it set up. Because I probably will be reluctant to help you at that point.)

And without further ado, here's the .zip: http://austin.youareinferior.net/scripts/ntapihdrs.zip
__________________
os: mac os 10.5.4
revision control: git
editor: emacs

site
Mad_guy is offline   Reply With Quote
 

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:41 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC