RE: Win API Wrapper: How to write them?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: John Eikanger [MSFT] (johnei_at_online.microsoft.com)
Date: 05/07/04


Date: Fri, 07 May 2004 23:30:00 GMT

Hi, Chris

It looks like the folks here have you on the right track

Here is a link to a document that may prove useful to you:

http://www.mvps.org/vb/index2.html?tips/vb5dll.htm

Another useful tool is the dependency walker, a free download from
www.dependencywalker.com. Load the compiled DLL from it and it will
display the entry points. Depending on the calling conventions, the DLL
entry points may be easily usable or "decorated" (munged).

Hope this helps,

John Eikanger
Microsoft Developer Support

This posting is provided “AS IS” with no warranties, and confers no rights.
--------------------
| From: "Chris Wagner" <so@hotmail.com>
| Subject: Win API Wrapper: How to write them?
| Date: Tue, 4 May 2004 18:54:28 -0700
| Lines: 5
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2900.2096
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2096
| X-RFC2646: Format=Flowed; Original
| Message-ID: <uYh5oPkMEHA.3988@TK2MSFTNGP09.phx.gbl>
| Newsgroups:
microsoft.public.vb.general.discussion,microsoft.public.vb.winapi
| NNTP-Posting-Host: adsl-67-119-12-32.dsl.snfc21.pacbell.net 67.119.12.32
| Path:
cpmsftngxa10.phx.gbl!TK2MSFTNGXA07.phx.gbl!TK2MSFTNGXA06.phx.gbl!cpmsftngxa0
6.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.phx.gbl
| Xref: cpmsftngxa10.phx.gbl microsoft.public.vb.winapi:178726
microsoft.public.vb.general.discussion:500452
| X-Tomcat-NG: microsoft.public.vb.winapi
|
| I have about 5 to 10 API from a vendor and they don't supply VB warpper
for
| it. How hard is it to write a wrapper for VB. Is there a sample code just
to
| write one simple API? Thanks.
|
|
|



Relevant Pages

  • Re: RUNDLL32.EXE
    ... 0x66800000 0x155000 Windows Shell Common Dll ... 0x75FA0000 0xA000 BSD Socket API for Windows ... 0x794D0000 0x15000 Microsoft WinSock Extension APIs ...
    (comp.security.firewalls)
  • Re: Explorer keep launching at start up
    ... aka "Nutcase" - Microsoft MVP ... > "Load at next startup only"=dword:00000010 ... > Filters\Export\JPEG\Filter API] ... >> Associate Expert - WindowsXP Expert Zone ...
    (microsoft.public.windowsxp.general)
  • Re: strncpy_s()
    ... API, it's to make it convenient to modify existing code to use the new API ... Valid in the sense that they don't yield undefined behaviour, ... empty string, ... sponsor, Microsoft**, who has affirmatively stated they do not intend to ...
    (comp.std.c)
  • Re: Once Again For Your Posting Pleasure - John C. Dvorak Comments On MacOS X
    ... Microsoft is "in trouble" because the barrier to entry into Vista is ...
    (comp.sys.mac.advocacy)
  • [PATCH] mmu notifiers #v7
    ... is zero, the only discussion here is to make an API that will last ... err = populate_range; ... update_mmu_cache(vma, address, entry); ...
    (Linux-Kernel)