Using win32api

T

Tristin Davis

[Note: parts of this message were removed to make it a legal post.]

Can anyone point me in the right direction for some good, in depth examples
of using Win32API. I"m extremely lost when it comes to packing/unpacking
the data. After many many searches, I find several places where memcpy is
being used and others where DL is also being used. Other places it doesn't
look necessary. Here's the specific function i'm trying to hook into

DWORD WNetAddConnection2(
__in LPNETRESOURCE *lpNetResource*, <-- NETRESOURCE Structure
__in LPCTSTR *lpPassword*,
__in LPCTSTR *lpUsername*,
__in DWORD *dwFlags*
);

http://msdn.microsoft.com/en-us/library/aa385413(VS.85).aspx

The packing of the structure is what is giving me the most confusion.
Here's what I have so far.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top