comp.os.mswindows.programmer.win32
  Home FAQ Contact Sign in
comp.os.mswindows.programmer.win32 only
 
Advanced search
April 2008
motuwethfrsasuw
 123456 14
78910111213 15
14151617181920 16
21222324252627 17
282930     18
2008
 Jan   Feb   Mar   Apr 
 May   Jun   Jul   Aug 
 Sep   Oct   Nov   Dec 
2008 2007    
total
comp.os ... win32 Profile…
RELATED GROUPS

POPULAR GROUPS

more...

 Up
  win2k service limitation ?         


Author: stef
Date: Apr 1, 2008 16:00

Hello,

Running on a win2k server, I did a tcp/ip server like in C (vc6-sp4)
which waits client connections (and does thing after but no the
problem, I think...)

If I run the server under a cmd.exe, everything works fine, I can up
to 200/300 "simultaneous" client connections.
(I'm using non-blocking select() with FD_SETSIZE set to 1024)
Perfect...
But now, If I set the server in "service mode" (with XYNTService tool
for example), I got WSAECONNRESET 100054 socket error after 165 client
entries !!

I don't have this behavior under windows-XP, windows-2003 and
windows-2008... only on windows 2000 family.

Before going deeply into code explanations, could you just tell me if
there's something "special" with socket under win2k (some kind of
console limitation !?)

Thanks for your help
2 Comments
  A WideCharToMultiByte result mismatch ...         


Author:
Date: Apr 1, 2008 07:00

Hello all,

I'm currently using the WideCharToMultiByte function to convert a 2-byte
string to a 1-byte (ANSI) string and looked at the result when I noticed
something strange :

Although the docs
http://msdn2.microsoft.com/en-us/library/ms776420(VS.85).aspx ) mention the
result should be "the number of bytes written to the buffer pointed to by
lpMultiByteStr" it actually returns, when a single byte per char
characterset is choosen (CP_ACP), double the number of bytes written (as if
it thinks its writing double-byte chars).

Am I missing something here, or is the documentation faulty ?

Regards,
Rudy Wieser
4 Comments
  FTP file upload through proxy API function         


Author: cvhaare
Date: Apr 1, 2008 02:26

Hi, I've written an application for a Windows client that is behind a
ISA-server (Microsoft Internet Security and Acceleration Server). Now
this client has to upload some files to a FTP server outside the ISA
server, doing so the client has to use the standard proxy-server
installed by default on the ISA server to connect to the Internet
where this FTP server is living.

The question now is what windows API should I use? When there is no
proxy server between I use from the wininet.dll the InternetOpen,
InternetConnect and FtpPutFile functions. But I can't figure out what
functions I should use to go through the proxy server, can I use the
same functions, but what about the parameters than? Or other
functions?

Any help or point into the right direction is helpful!

Thanks in advance!
7 Comments
  thread status         


Author: sweety_s
Date: Apr 1, 2008 01:48

I am working on win xp and using vc++.
There were no replies for the question
i wanted to know if i can get the status of all the threads in the
process.
I am able to get all the threads but not the state of the thread.
All i want to know is whether the process is suspended or running..
Thanks in Advance
3 Comments