I want to have an application or service that is running that, on some schedule, can disable access to the internet for all applications except for specific ones.
I'm trying to create a filter that can be turned on or off under programmatic control. Not just IP addresses and ports, but I want to be able to block specific applications as...
On a dual quad-core GetProcessAffinityMask (or the dialog from "Set affinity" in taskman.exe) will report eight logical processors. How do I find out which logical processor is on which physical processor? Especially: which logical processors are on the same physical processor?
EDIT: If it is not possible to do this programmatically, do...
What is the relationship between the Windows API and the C run time library?
...
I am out of ideas as to why my app has suddenly stopped working - perhaps the collective mind of the SO community can help...
Background:
I have a large application that has been working up until recently. Now when ever I try and run it I get the error "The application failed to initialize properly (0xc0000005)"
This happens before the a...
Sometimes I create some quick personal projects using c# with windows forms or wpf. I have noticed that depending of the kind of application, looks that managed applications take 2x or 3x more time to start compared with native applications.
It's does a "Quick Notes" application don't so... "quick". :-(
There are some technique to spee...
This is a strange one to me. Let me list the setup:
Application with a manifest (ie: wont get pushed to virtual store)
UAC is turned on (can't write to other program files directories, or other areas, and uac prompt appears)
Can write to "c:\program files\%app_name%\%directory%\" both from within my application (not run as admin) as w...
This is closely related to an earlier question.
In the managed world:
How do I check if the current thread
has messages in its message queue?
How do I yield to the OS and wait
for a message in the current thread
(like GetMessage or WaitMessage)?
I am looking for the managed equivalents without PInvoke.
...
I have an application that gets installed with a Wise installer (EDIT: Wise creates a Setup.exe file, not an MSI). Upon installation, an icon is set for a certain file type:
HKEY_CLASSES_ROOT\.auz\DefaultIcon = C:\Path\To\App\some_icon.ico,0
Right after the installation, however, Explorer chooses to display this icon using the generic...
Hi,
I have small problem with my .net 2.0 winforms application.
I want to embed a few different icons to app.
There are also other requirements:
must be automatic rebuildable by
ms-build; using external gui apps
for preparation isn't allowed
application must contain versioninfo.
After embeding multiple icons, I want to register let...
Under AppVerifier, one of our apps blows up. I get a DMP file, but it's a minidump. Specifically, while I've got the call stack, I'd also like the user-space memory for the faulting process (it uses a lot of globals). How do I configure App Verifier (or Windows) to give me a full dump file?
...
Thank you guys so much for your help, this has been bothering me for a couple days.
I am using Windows Vista, and writing my program in C++, using straight Windows API(no MFC).
When I resize my window, the menu items flicker. My window class DOES NOT use CS_HREDRAW or CS_VREDRAW. I use double buffering for the CLIENT AREA, so the clien...
I have stumbled in this phrase in the web:
"C# is probably not the best choice for a system-level application like this. I believe plain C++ is much better here as you will need to do lots of low-level API calls."
I was searching about security programs made using c#, like firewal, parental control, anti-virus, anti-spyware, etc.
So, ...
We have a modem terminal application written in VB6. It works great for what we need it to do, but there is a new requirement to initiate a VPN connection when dialing a particular provider. I've looked over some related posts and it looks like this may be possible using the RAS API. Can anyone suggest resources/advice for working with t...
::GetSystemMetrics (SM_CYBORDER)
...comes back with 1 and I know the title bar is taller than ONE pixel :/
I also tried:
RECT r;
r.left = r.top = 0; r.right = r.bottom = 400;
::AdjustWindowRect (
_bdW = (uword)(r.right - r.left - 400);
_bdH = (uword)(r.bottom - r.top - 400);
But border w,h cam...
Would anyone know what the Win32 equivalent of opendir is (or if it even exists) ?
Obviously I could use FindFirstFile(Ex) with FindNextFile, but appending * to the path seems like such a hackish way to do it.
...
Hello,
would anyone know of a class/example application for a message only window that is in c++ win32?
Thank you Micheal Weller! I took the code for a standard window in c++ and commented out the show window and it works like a charm! Thanks again!
...
Is there a O(1) way in windows API to concatenate 2 files?
O(1) with respect to not having to read in the entire second file and write it out to the file you want to append to. So as opposed to O(n) bytes processed.
I think this should be possible at the file system driver level, and I don't think there is a user mode API available ...
Could you please explain me, what is the different between API functions AllocConsole and AttachConsole(-1) ? I mean if AttachConsole gets ATTACH_PARENT_PROCESS(DWORD)-1
Update: Sorry! My mistake. Of course AllocConsole instead of CreateConsole!
...
Hi,
I've recently bought myself a new cellphone, running Windows Mobile 6.1 Professional. And of course I am currently looking into doing some coding for it, on a hobby basis. My plan is to have a service running as a DLL, loaded by Services.exe. This needs to gather som data, and do som processing at regular intervals (every 5-10 minut...
I want to make a control that handles user input, so I want to be able to handle different keyboards, and one of the ways is using IME.
If you don't handle it, there is a floating window that appears when you have IME active (for example japanese writing active). I found the messages that needs to be taken care of, but I don't know how...