I have a program in a windows 2k environment that continually listens on a port using winsock, it works fine except that when the user logs off or shutsdown the computer, I get that "End Program Now" window because the program is still listening for connections.
My question is, How can I avoid this message without having the end-users close my program manually ?