WNetOpenEnum...next?
Alright, i''m working on a network app for my LAN. I''ve gotten the names of all the computers connected after calls to WNetOpenEnum and WNetEnumResource...
so now how do i send and receive messages? Do I need to get into winsock programming? If so, can someone give me the basic send/receive code without sending me to Beej''s or something?
or can I do it with Windows API calls similar to WNetOpenEnum?
thanks in advance
That interface uses "Windows Networking". This is used for printer and file sharing. It does not provide a direct transport layer API like WinSock does (and uses a totally different naming scheme). To communicate using WNet, you have to implement a Share Point, which requires kernel level muckery, un-documented interfaces, and is different between Windows XP/2k and Windows 98/ME.
For more about Windows Networking (WNet):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/about_windows_networking.asp
Use WinSock and the gethostbyname() functions (or UDP broadcast to find local peers) instead.
For more about Windows Networking (WNet):
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wnet/wnet/about_windows_networking.asp
Use WinSock and the gethostbyname() functions (or UDP broadcast to find local peers) instead.
enum Bool { True, False, FileNotFound };
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement