I am currently evaluating named pipes for IPC on Windows with .NET/C#.
I am currently looking at a single producer, single consumer scenario.
Are there any good performance consideration guidelines?
In my first test case I was comparing the speed of large messages vs small messages and seems to be that large (64k) messages are sent as qu...
Hi
I have the following scenario:
- 64bit Windows Server 2008.
- 32bit .NET application (needs to be x86 for various reasons).
- I need to start ServerManager.msc from my .NET application.
When using Process.Start("ServerManager.msc"), I get the following exception:
System.ComponentModel.Win32Exception.
Message="The system cannot find ...
I'm trying to bundle a JRE with my jar file so that I can run my application on any windows computer, regardless of if it has Java or not. The jsmooth manual says:
For the option to work correctly, you have to put a JRE in a directory near the EXE (generally in a subdirectory called "jre" or whatever). Once the exe is generated, it wi...
Hi,
I am newbie in vc++. I have configured my system with WDK,DDK and Visual Studio 2008. I want to implement dual functionality to my wireless hardware and i am using Vista so please help me out from here.
so just tell me which function should i use
Thanks in advance... :)
...
Here's a snippet of a script of mine attempting to put extra Unicode awesomeness at my fingertips.
::\iff::
SendUnicode("⇔")
return
; many rules later...
SendUnicode(char){
ClipSaved := ClipboardAll ;;;
;apparently this is the only way AHK can handle Unicode.
Transform, Clipboard, Unicode, %char%
SendInput ^v
...
I want certain functions in my application to only be accessible if the current user is an administrator.
How can I determine if the current user is in the local Administrators group using Python on Windows?
...
I have a device on a network that I am attempting to ping through my Java program. Through my windows command prompt, I can ping the device address fine and do a tracert on the address fine.
Online, I have seen that in order to do a ping through Java you have to do the following:
InetAddress.getByName(address).isReachable(timeout);
B...
I installed XP on a virtual machine, updated it to SP3 and then tested a small program compiled with Visual C++ 2008 on my real computer - however it didn't start but outputted only an error saying that a problem had been detected and that a reinstall of the application (mine is 10KB in size and doesn't even have an installation) could f...
I was reading this article on Coding Horror:
http://www.codinghorror.com/blog/2008/04/setting-up-subversion-on-windows.html
I went to the downloads and am confused. I would have just downloaded the first entry but I am afraid it would break my server or something if I don't have apache. We use IIS only and I wouldn't want to break it...
I have a DLL that's compiled, and I don't have the source code for it anymore. The only thing I want from the DLL is the functions it provides, and how they are accessed, i.e. their signature.
How can I do this?
...
Is there any way to detect which windows XP theme is in use?
I suspect that there is no specific api call you can make, but you may be able to figure it out by checking something on some DOM element, ie feature detection.
Another question: does the classic theme even exist on windows vista or windows 7?
edit - this is my solution:
fu...
Hi everybody.
Are there any guidelines how to transit to x64 with as little pain as possible?
Suppose, I have a windows native x86 executable written in C++. The EXE works fine by itself, but there is also DLL that is hosted by both, the former EXE and an outside x64 process. With setup like this, what parts would I need to rewrite?
I...
Hello,
I am doing a file server migration and I'm writing a small C# app to help me map the user permissions so we can put them in user groups.
I'm currently using
Directory.GetAccessControl(path);
However it fails when it get to this 263 char file path.
Invalid name.
Parameter name: name
I get the same error when I use Dir...
I wish to send text between processes. I have found lots of examples of this but none that I can get working. Here is what I have so far:
for the sending part:
COPYDATASTRUCT CDS;
CDS.dwData = 1;
CDS.cbData = 8;
CDS.lpData = NULL;
SendMessage(hwnd, WM_COPYDATA , (WPARAM)hwnd, (LPARAM) (LPVOID) &CDS);
the receiving part:
case WM_COPY...
I'd like to build a client for dbgsrv.exe. I'd like to know if there's a spec on the protocol that it uses and if there are any (open source?) libraries that are able to communicate with it for a remote debugging session.
...
I would like to create a simple .MAP file listing addresses and symbol names from a PDB file. My natural inclination was to look for a tool named "pdb2map", but most of the results I get for that appear to refer to a sample program from the CD included with Debugging Applications for Microsoft .NET and Microsoft Windows, which unfortunat...
Noob question, apologies. I'm compiling Java in Windows Vista's command-line and have so many syntax errors that some are being pushed off the top (a lot of 'class, interface or enum expected' errors which leads me to believe it's an obvious syntax mistake early on in the code that I can't spot). Does anyone know how I could get it to di...
I a batch script that calls a process and it waits for the process to complete before going to the next line by default. Is there a way (or a switch) for it NOT to wait and just run the process and continue? I am using Windows 2008.
...
If I generate a p12 certificate with openssl as: -
openssl pkcs12 -export -in myprivatecert.pem -nokeys -out mycert.p12
Even though I ask openssl to not export the private key, why does windows still require the private key password when installing the certificate.
I figure I am missing something.
Thanks in advance,
David.
...
I did a quick search on how to check whether Internet is available or not. Most of them talked about making InterOp calls to wininet.dll.
One of the answers pointed towards System.Net.NetworkInformation namespace. Exploring the namespace I found a class Ping which could be used to pinging to our servers from code, and checking whether s...