1. DLL Functions And Return Values
- Posted by Lone_EverGreen_Ranger May 28, 2012
- 1290 views
Hello,
I have started working with using Win32 API DLL functions and calls. However, I am having some trouble finding return values and what other parameters I would need to make wrappers. Are there any good sites or books I can look into? I have done some searching on the web, and have found a few function calls and return values, but it is not enough for what I want. I would really like to know if there are any such resources that explain all functions contained in these DLLs and their return values. I'm talking about DLLS like kernel32.dll and gdi32.dll to name a few. I have looked into the win32lib, and have seen that it doucments some of the DLL function calls, but not all. So if anyone could help out or reccommend some sites or books that explain all functions and return values contained within them, that would be great.
2. Re: DLL Functions And Return Values
- Posted by DerekParnell (admin) May 29, 2012
- 1331 views
Hello,
I have started working with using Win32 API DLL functions and calls. However, I am having some trouble finding return values and what other parameters I would need to make wrappers. Are there any good sites or books I can look into? I have done some searching on the web, and have found a few function calls and return values, but it is not enough for what I want. I would really like to know if there are any such resources that explain all functions contained in these DLLs and their return values. I'm talking about DLLS like kernel32.dll and gdi32.dll to name a few. I have looked into the win32lib, and have seen that it doucments some of the DLL function calls, but not all. So if anyone could help out or reccommend some sites or books that explain all functions and return values contained within them, that would be great.
The best all-round book (but be prepared to do some work) is Programming Windows by Charles Petzold
Note that these DLL are considered 'obsolete' now but they are still used by Windows apps.
As for web sites, the Microsoft MSDN used to be helpful, but their focus is now Windows 8 programming and the API access is now harder to find. You can try this http://msdn.microsoft.com/en-us/library/windows/desktop/hh447209(v=vs.85).aspx but it might disappear one day.
3. Re: DLL Functions And Return Values
- Posted by jimcbrown (admin) May 29, 2012
- 1256 views
Note that these DLL are considered 'obsolete' now
As for web sites, the Microsoft MSDN used to be helpful, but their focus is now Windows 8 programming and the API access is now harder to find. You can try this http://msdn.microsoft.com/en-us/library/windows/desktop/hh447209(v=vs.85).aspx but it might disappear one day.
That's what you get for using Micro$oft.
4. Re: DLL Functions And Return Values
- Posted by ghaberek (admin) May 29, 2012
- 1260 views
PInvoke is very helpful. Its signatures are all for VB/C#, but they usually convert well to Euphoria. MSDN is also very helpful, although it can often be cumbersome to find what you need by simply browsing the entire site. Google is typically your friend here, e.g. site:msdn.microsoft.com kernel32 copyfile.
Others have already written (semi-)complete Win32 API wrappers in the Archive: win32 api. The first result for that search is the old win32.hlp, which is now a broken link. I will see if I can track it down, since it was also very helpful.
-Greg
5. Re: DLL Functions And Return Values
- Posted by Lone_EverGreen_Ranger May 29, 2012
- 1196 views
Thanks for the help. I know it can be hard to find the actual documentation and whatnot. I was hoping there was some books on it that had detailed information. I have program called DLLExporter which tells you all the functions contained within the DLL, but not the return values or parameters I would need to make a wrapper in Euphoria. I hope Windows 8 adds back the start button, I also hope they figured out something different then the metro UI for desktop users. If not, I think Windows 8 will be a disaster for desktop users.