Advertisement

635 organizations, including eBay, Ericsson and Lockheed Martin, now work smarter with Corporate Accounts. Save up to 42%

 

Welcome! If you have any general questions about Experts Exchange, feel free to ask me.

 
Time Tested Windows Programming Solutions: 201 - 225 of 1838
 
Hi, I've got two programs : A and B A has code to map a network drive using WNetAddConnection2. This works fine if I start program a from the command line. Program B is a NT-service. It's...
I have written some code in CBuilder and compiled this as  cbase.dll . Currently my MSVC code dynamically loads the dll using LoadLibrary( dll_path ); and then GetProcAddress to get a function...
I can't seem to get it right. We are using a .sh script on Windows using MKS sh.exe If I type the following sh SignFile.sh SomeFile Name eveything works properly. however if I add the ...
I have an odd problem here, hoping someone can help. I have a small dialog based app that is run (using a system()) call from another application which I can only tell to issue the system()...
Hi Experts, I'm using Visual C++ 6.0 with MFC and I created a custom control CWnd derived class that draws itself and sets its own position and size according to parameters passed to it with ...
I want to write an HTML application and determine the path the script is running from.  I have used WSH to run external programs from an HTA but I cannot figure out how to expose the WScript.S...
Hi all, I am having trouble understanding why my HTTP request is not working properly.  Basically, I connect to a server on port 80, and send the following request: "GET / HTTP/1.1\r\n" ...
I need to get the SID of a local group for which I know the name.  For example, if the name of a group on a Windows XP Pro machine is "My Administrators", I want to get the SID of that group s...
Am trying to capture the Refresh event of a html page. I am using an activeX component that implement few inerfaces and sink dwebbrowserevents as well but didn't find a way I could capture th...
Starting a process and the Enumerating is an easy task, but it does not match for me and I don't know why. I start an exe with ShellExecuteEx and i finally get a Process Handle back into my...
Hi, I need help using DOS commands in Windows 98. For some reason there seems to be no help available at the command line. I spawn a batch file which has to clean up a folder created earlier...
hi, I am using the following code: AttachThreadInput(GetCurrentThreadId(),GetWindowThreadProcessId(hMenu,NULL),true); ::SetFocus(hMenu); AttachThreadInput(GetCurrentThreadId(),GetWindowT...
Hello, I am creating a batch file using Powershell.  I am executing a copy command as such: copy-item $sourcefile $destinationfile I want to trap if the copy command works or fails, b...
Is it possible to write a simple batch file to copy from one network server to another?  I am trying to write a simple copy batch file that will copy 3 files from one Windows server to another...
We are having problems deleting a registry key from Windows Xp sp2 machines. We need to create a script that I can roll out to our end users that removes the following registry key. HKEY_LOCA...
I can set the font I want for the items in a listview with a simple WM_SETFONT message. The row height adjusts as required to fit the text. What I want is for the row to have an extra few p...
Hello, MSDN states: The CallWndProc hook procedure is an application-defined or library-defined callback function used with the SetWindowsHookEx function. * Windows 95/98/Me, Windows NT...
Hi, The WaitForSingleObject return WAIT_ABANDONED. The main thread owns it. Two threads are using this mutex.  Each thread takes ownership on the mutex  and release it for intermitte...
What is the best way to intercept a WM_NCPAINT message going to a window. I want to find out when Non client area are going to be drawn so I can draw my own and stop the target process from ge...
Hi! I want to write a programm that displays the frequencies of the currently played sound on my computer. Imagine an equalizer on an amplifier (or WinAmps equalizer). How can I capture ...
I need to get the CPU time (in percentage) for an indivual process, and the overall CPU utilization on the system...like Task Manager. I have the Process ID, and using GetProcessTimes I can...
I can do this if I have IE5 installed using SHCopyKey, but I want the solution to not require IE. Is there a way to rename a key, or copy a key along with all of its sub-keys? Thanks in adva...
How do get the size of the stack of my application from program code.  Unless a different value is specified via the /STACK statement on the command line of the linker, or the STACK statement ...
In a user-mode C++ program (not a driver) in Windows 2000 or later with regular user privileges, I would like to get an event when the user leaves the Ctrl-Alt-Del (a.k.a. Winlogon) screen and...
Hi, Here is my question.  I realize I can pipe the information to a text file by running a bat file with redirection: i.e.  Printsomeinfo.bat > info.log but I want to create a bat fil...