|
TCP and UDP, as far as I know. That's it.
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
Michel Prévost wrote:
TCP and UDP, as far as I know. That's it.
Nope, it works with all the IP protocols. You can use raw socket to communicate with the other protocols like ICMP.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
you are right. my mistake. sorry.
Michel
If I am wrong or said something stupid, I apologize in advance
|
|
|
|
|
You are right, it only works with IP networks.
- Anders
Money talks, but all mine ever says is "Goodbye!"
|
|
|
|
|
My MFC UI program runs a command line executable and I need to retrieve the data that is outputed to the command prompt and put it into my UI.
Any Ideas?
|
|
|
|
|
|
Apropos of this question, does anyone know if VC++ 7 (.NET) fixes _popen so that it works in Windows apps? In VC++ 6 there were some bugs that prevented it from opening the streams properly.
|
|
|
|
|
Hi all,
I'm looking for an API to call the Add Printer Wizard from within my c-code.
I'm running under Windows ME.
Any help will be welcome
Haim
|
|
|
|
|
ShellExecute(
NULL,
NULL,
"rundll32.exe",
"shell32.dll,SHHelpShortcuts_RunDLL AddPrinter",
NULL,
SW_SHOWNORMAL);
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thx U very much.
Its great, and works too !!!!!!
Where did U find reference on shell32.dll??
Haim
|
|
|
|
|
Hi,
I have already connected through windows explorer to a remote machine with some user account of the remote machine.
Now I would like to programmatically find out whether I have connected to that machine already(but I don't know the account by which I have connected).
Is that possible and if yes how?
Thank You.
Yamuna.E.
Yamuna.E.
|
|
|
|
|
without using FindWindow/FindWindowEx API...
|
|
|
|
|
It's easy if you have the process id, which is not the same as the process handle. Just enumerate all top-level windows with <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/windows_7wvn.asp">EnumWindows</a> and compare its process id's (obtained with <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/windows_5y90.asp">GetWindowThreadProcessId</a> ) with the one you have. As for how to obtain the process id from the process handle, the problem is hard to tackle.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Thanks for you help!
I find the way to get the process ID corresponding a process handle.
In Win95/98/Me/2000, some tool help functions ( CreateToolhelp32Snapshot, Process32First and Process32Next ) can finish it.
In NT/2000, look up the register key - HKEY_LOCAL_MACHINE\\software\\microsoft\\windows nt\\currentversion\\perflib - for some information.
|
|
|
|
|
Congratulations! What about bundling everything into a nifty library and posting an article here at CP? Regards.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
With my poor English... Oh, no... forget it!
Here already have some code handle it:
http://www.codeproject.com/system/mytop.asp
|
|
|
|
|
Hi,
in my app I have the following code :
HWND hWnd = FindWindow(NULL, "Any window...");
(...)
char strClassName[64];
GetClassName(hWnd, strClassName, sizeof(strClassName));
Now that I have the handle and the class name of the window, is it possible to get the path of the program that is attached with the handle, like GetModuleFileName(NULL, ...) for my own app ?
Thanks in advance
|
|
|
|
|
It can be done, but involves some amount of work. First, obtain the process id for the window with GetWindowThreadProcessId . Then, use the information contained in MSDN sample MODLIST.EXE Shows How to Enumerate Processes and Modules (Q192986) to enumerate the modules of the given process and its corresponding paths (a process is made of multiple modules, like the main .EXE and the different DLLs loaded). Please note the code differs for 95...ME and NT...XP systems.
Joaquín M López Muñoz
Telefónica, Investigación y Desarrollo
|
|
|
|
|
Hi there!
I have some big problems translating one relatively separated dll written in C++ to the managed world because I don't know how to work with the GUID structure. I can't just replace it with the System::Guid structure cause one of my functions which returns guid is used from both worlds, managed and unmanaged.
I'm also getting errors when trying to assign one GUID to another.
The code looks like this:
GUID& GetGuid()
{
GUID guidVar1, guidVar2;
CoCreateGuid(&guidVar1); //error
guidVar = guidVar2; //error
return guidVar; //error
}
Help me please!!!
|
|
|
|
|
How do i keep my widow active all the time?
|
|
|
|
|
I don't know if its help you:
with CWnd::SetWindowPos() you can set your window always on top.
Mazy
"The path you tread is narrow and the drop is shear and very high,
The ravens all are watching from a vantage point near by,
Apprehension creeping like a choo-train uo your spine,
Will the tightrope reach the end;will the final cuplet rhyme?"Cymbaline-Pink Floyd
|
|
|
|
|
Hi,
I have one application that uses MSXML4.dll, what do I need to install on the client's computer in order to make my program run ?, Just copy msxml4.dll on the system folder, and run RegSvr32 ? What about versions and... services packs and.. ?
Thanks, greetings
Braulio
|
|
|
|
|
Legally you must get the runtime distribution and install all of the files in it. You can download it seperatly from the sdk.
Good ideas are not adopted automatically.
They must be driven into practice with courageous patients. -Admiral Rickover. ...
|
|
|
|
|
Does anybody know how to get the access rights (security descriptor) of a directory or a file on the local machine ?
|
|
|
|
|
Use GetSecurityInfo[Ex] and GetNamedSecurityInfo[Ex].
Tomasz Sowinski -- http://www.shooltz.com
- It's for protection - Protection from what? Zee Germans?
|
|
|
|