I want to call a Subversion API from a Visual Studio 2003 C++ project.
I know there are threads here, here, here, and here that tell how to get started with C#.NET on Windows (the consensus seems to be SharpSvn, which I've used easily and successfully on another project) but that's not what I want.
I've read the chapter on using APIs i...
I have code that uses Win API function RegSaveKeyEx to save registry entries to a file. However, RegSaveKeyEx returns ERROR_PRIVILEGE_NOT_HELD when run on Win Vista or Win 7. The code enables security privilege SE_BACKUP_NAME using code Microsoft provides in example function SetPrivilege.
Everything works fine on Win XP (admin user) or ...
This is what I did:
LPMALLOC malloc;
LPITEMIDLIST pidl;
SHFILEINFO FileInfo;
SFGAOF sfGao;
if (SUCCEEDED(SHGetMalloc(&malloc))
{
if (SUCCEEDED(SHParseDisplayName(strDirPath, NULL, &pidl, SFGAO_FOLDER, &sfGao)))
{
SHGetFileInfo((LPCWSTR)(PCHAR(pidl)), 0, &FileInfo, sizeof(FileInfo), SHGFI_PIDL | SHGFI_ICON);
CDC*...
Is there a (more or less) easy way to force the process of a windows application to hang, and not respond? Or is this entirely dependent on the application/process in question?
Edit: What I wanted to try is this: The application in question has a web GUI, and several running processes in the background. There was a report that when one ...
As part of a customized media player written in C (Win32), I need to enable my app play flash movies (.swf files) inside the player window. Can someone please indicate the most C compatible low level way to achieve this, giving me highest control? Specially control on display window and network access.
I am looking for reference to a Wi...
For tracking user activity, I am using a Windows Hook for the main application thread, and monitor (among others) WM_COMMAND messages.
I receive them as expected from dialog buttons, toolbar buttons, accelerators and popup menus, but I do NOT receive them from the main menu.
Strangely enough, Spy++ does show the main window receiving t...
There is some easily available information on finding the status of a battery, or weather it's charging or not. (GetSystemPowerStatus API or System.Windows.Forms.SystemInformation.PowerStatus).
I want to be able to stop a battery from charging based on some criteria, e.g. battery power > 20%.
Is there an API to do this?
...
I have a "simple" task. I have an existing project with a web service written in C# which has a method that will send a huge XML file to the client. (This is a backup file of data stored on the server that needs to be sent somewhere else.) This service also had some additional authentication/authorization set up.
And I have an existing D...
I know I should generally avoid messing up with such system settings, but my application do already use nonstandard colors and I have no influence on that. I would like to be able to add standard .NET controls in some places, but their colors do not match. I would like to have a hack that would replace system colors for this one applicat...
My machine has two audio inputs: a mic in that I use for gaming, and a line in that I use for guitar. When using one it's important that the other be muted to remove hiss/static, so I was hoping to write a small script that would toggle which one was muted (it's fairly inconvenient to click through the tray icon, switch to my input devic...
I'm using Delphi to make an XLL add-in for Excel, which involves making a lot of calls to the Excel4v function of xlcall32.dll. However, as I'm guessing very few Delphi experts here have worked with that specific API, I'm hoping that the problem might have been observed in other APIs too.
In C, specifically in the xlcall.h file that co...
Is it possible to get the .NET Cursors.AppStarting using a MFC or Win32 function?
Someting similar to the CWaitCursor but indicating background processing.
...
Hi
I'm new to using Heap Allocation in C++.
I'm tryin to understand the scenario that will force someone to create a private heap instead of using the Process Heap. Isn't Process Heap generally enough for most of the cases?
Thanks
--Ashish
...
I'm attempting to rewrite some C# web service code that uses the Windows IP Helper API call "SendARP" to retreive a remote system's MAC address. SendARP works great - until you cross a network segment as Arp requests aren't routed. I've been looking at the "ParseNetworkString" documentation after happening across its existance on StackOv...
How can I create a directory in C and assign an icon to the folder all with in my program?
The point of this is all doing this in one program without any other dependencies. Is this possible?
...
Does anyone have a code sample that shows how to use the Win32 function CopyFileExW in ruby? The difficulty i am having is declaring the 'ProgressRoutine' call back function correctly without getting a segfault.
I can use CopyFileW without issue, but CopyFileExW is causing grief.
require 'windows/error'
require 'windows/wide_string'
re...
Hi, I have problem with handling DDE if I want to show CDialog before creating CFrameWnd. I do it in two ways:
1) create MyApp (CWinApp) which has overriden OnDDECommand. Inside MyApp::InitInstance() I create MainFrame (CFrameWnd). DDE works well, OnDDECommand handles DDE calls.
2) before MainFrame I want to show MyDialog (CDialog), bu...
I have dynamic array filled with bytes, which are read from .raw file with BlockRead() and this operation, logically, requires hell of a Shell resources and I wanted to know if there is any methods to reserve some amount or limit maximum amount of Read/Write/Seek used for Program run time from Hard Disk Drive***
[Clarification]: I meant...
Hello,
I'm trying to create a Windows Virtual Drive ( like c:\ ) to map a remote storage.
The main purpose is to do it in a clear way to the user. Therefore the user wouldn't know that he is writing/reading from another site.
I was searching for available products, and i find that FUSE is not an option in Windows and WebDAV maps direct...
On Windows I am loading a DLL and running it. The DLL performs a lot of network activities. Now I need to monitor which url and hosts the DLL connects to. I think using a packet sniffer might be a good option. Can WinPcap be used to capture traffic from a single process? I can't find any such option in the docs.
If that can’t be done us...