|
Yes
No (except possibly for a structured exception [generated by the OS])
|
|
|
|
|
Is there a way in C or C# to enumerate the port numbers in listening state on a remote Windows computer? I know you can use GetTcpTable() to enumerate the ports on the local computer, but I want remote.
|
|
|
|
|
I do'nt think this is possible.
Some applications called port scanners (like SATAN) give result by looping on a all port numbers within a specified range, initiate a connection i,n each time then decide using the reply result.
Easy Profiler : a compile-time profiler for C++
www.potatosoftware.com
|
|
|
|
|
Like the other poster said, you could do a port scan, or run your client on the other end and that should send you a snapshot of the ports that the computer is listening on.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
OP here.
There can be multiple instances of my app running on computer A, each listening on a different port. On computer B, I want to run a monitor app that can connect to any of the app instances running on computer A. It would be nice if I could enumerate those instances rather than having to just "know" what port(s) are listening.
What I might do is code my application to use a limited range or list of ports (say 100 fixed port numbers) and then code the monitor app to simply scan that list.
|
|
|
|
|
Perhaps you could select one specific standard port as a "management" port; computer B could open a connection to the standard port, and computer A would send back a list of its own open ports.
Adam Maras | Software Developer
Microsoft Certified Professional Developer
|
|
|
|
|
When using GDI+ ImageAttributes::SetColorMatrix, does the ColorMatrix pointed to in the first paramter need to remain in scope after the method call?
|
|
|
|
|
How to Write the Stored Procedure From Visual C++ with two arguments
|
|
|
|
|
Hello!
I have a Windows service which starts another application using CreateProcess. Thus, the application runs with SYSTEM privileges. This application calls LsaEnumerateLogonSessions, which returns the error code 8 (Not enough storage is available to process this command.). The service and the application are run under Windows 7 x64.
ULONG luLogonSessionCount = 0;
LUID *pLogonSessionList = NULL;
NTSTATUS lNtStatus = LsaEnumerateLogonSessions( &luLogonSessionCount, &pLogonSessionList );
LsaNtStatusToWinError( lNtStatus ) returns 8. Does anyone know the cause of this?
Thanks in advance!
|
|
|
|
|
msdn Smple-> http://msdn.microsoft.com/en-us/library/aa378275%28VS.85%29.aspx
what if you run the service under an admin account?
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi all,
I m using a Dialog based application,
On one button click i display the Modeless dialog box.here i m using a for loop.
and using Sleep function for delay of 1 second after each increment in for loop.
in modeless dialog box i m using two progressbar.Prg1,Prg2
1. Prg1 StepIt one by one as For loop working.
2. I want Prg2 show continous progress like its step it by timer and step it the progressbar until the modeless dialog box exist,for each value of for loop.
when for loop ends than modelss dialog box destroy.
everything is working fine ,only Prg2 not works fine here.
its not stepit by timer,
please help me for this.
thanks in advance.
To accomplish great things, we must not only act, but also dream;
not only plan, but also believe.
|
|
|
|
|
Since you are using a timer, the WM_TIMER message will not be processed when you are in the for loop.
Try putting the following message loop within the for loop.
if (::PeekMessage(&msg, 0, 0, 0, PM_REMOVE))
::DispatchMessage(&msg);
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
|
Ask the author (this may help you not spamming the forum ).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Who will have enough knowledge of this some
|
|
|
|
|
So, you ask us to first download your program, install it and check what it is and then write the full source code for you ? Well, I think you'll have more success on www.rentacoder.com
|
|
|
|
|
While I see the small irony, I would not be overly optimistic.
Iain.
I have now moved to Sweden for love (awwww).
If you're in Scandinavia and want an MVP on the payroll (or happy with a remote worker), or need cotract work done, give me a job! http://cv.imcsoft.co.uk/[ ^]
|
|
|
|
|
Hello,
How to show certificate in WebBrowser Control..
Thanks..
|
|
|
|
|
hello friends
I want to open a new instance of program on the double click of an Icon in windows.I tried with some code but they r using SetExtension,setdocumentshellopencommand and regsetallinfo.
It seems to b working but I want to know that do i need to register everytime to the registery for the double click event.Or cant I register only once in registery for setExtension and then for double click.
The main Prob is i want to know how it is executing when i Double click on Icon and I dont want to register everytime.
Thanks & Regards
Yogesh
|
|
|
|
|
yogeshs wrote: I want to open a new instance of program on the double click of an Icon in windows.
So what's the problem? This is the default behavior. Only if you wanted a single instance to exist would you need to add any code.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
i need a tool for windows that can work like that:
replace all file (found) with an extension by the others,
name of that new file was not changed but its empty(does not have any infomation anymore).
please help me
sorry for everthing
|
|
|
|
|
What do you mean by replace?
Do you want to delete it or rename it?
You can do both using SHFileOperation[^].
«_Superman_»
I love work. It gives me something to do between weekends.
|
|
|
|
|
I too don't understand for sure, but if you simply want to change the extension (rename the files) to a new extension, you can simply use the old DOS rename command.
rename *.xyz *.abc
Hope that helps.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|
|
No. example. file abc.xyz being replaced by new abc.xyz (the same name) (but this file is empty, no information inside)
|
|
|
|
|
So you want to keep the file but simply delete it's contents?
If so, open the file for writing and then close the file. As long as you don't specify "no truncate", this should delete all of the file contents.
Good luck.
Karl - WK5M
PP-ASEL-IA (N43CS)
PGP Key: 0xDB02E193
PGP Key Fingerprint: 8F06 5A2E 2735 892B 821C 871A 0411 94EA DB02 E193
|
|
|
|