wireguard.lists.zx2c4.com archive mirror
 help / color / mirror / Atom feed
* Wintun.dll (amd64) GetProcAddress failure
@ 2021-10-12 23:59 Scott Bonar
  2021-10-13  0:13 ` Jason A. Donenfeld
  0 siblings, 1 reply; 3+ messages in thread
From: Scott Bonar @ 2021-10-12 23:59 UTC (permalink / raw)
  To: wireguard

I will be the first to admit I maybe doing something wrong, but the
DLL loads just fine, however when I try to init the API functions the
only one that is successful is WintunCreateAdapter.
All other calls to GetProcAddress() return NULL and LastError is
coming back as 0.  Any help would be appreciated.

Thanks

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wintun.dll (amd64) GetProcAddress failure
  2021-10-12 23:59 Wintun.dll (amd64) GetProcAddress failure Scott Bonar
@ 2021-10-13  0:13 ` Jason A. Donenfeld
  2021-10-13  0:30   ` Scott Bonar
  0 siblings, 1 reply; 3+ messages in thread
From: Jason A. Donenfeld @ 2021-10-13  0:13 UTC (permalink / raw)
  To: Scott Bonar; +Cc: wireguard

If you're using the just-releases Wintun 0.14, make sure you're using
the wintun.h from that release, alongside the InitializeWintun
function from example.c.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Wintun.dll (amd64) GetProcAddress failure
  2021-10-13  0:13 ` Jason A. Donenfeld
@ 2021-10-13  0:30   ` Scott Bonar
  0 siblings, 0 replies; 3+ messages in thread
From: Scott Bonar @ 2021-10-13  0:30 UTC (permalink / raw)
  To: Jason A. Donenfeld; +Cc: wireguard

Thanks.  I don’t know what version of example.c and wintun.h I was looking at verse what comes in the release zip.
But they are for sure different.  Now that I have the correct files things appear to work better and I’m not going to even
Try and track down what version I was looking at.

On 10/12/21, 6:13 PM, "Jason A. Donenfeld" <Jason@zx2c4.com> wrote:

    If you're using the just-releases Wintun 0.14, make sure you're using
    the wintun.h from that release, alongside the InitializeWintun
    function from example.c.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-13  0:30 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-10-12 23:59 Wintun.dll (amd64) GetProcAddress failure Scott Bonar
2021-10-13  0:13 ` Jason A. Donenfeld
2021-10-13  0:30   ` Scott Bonar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).