C++ :: Where Registry Keys For Allowed Applications Stored In Windows 8
Sep 4, 2014
I'm trying figure out how Windows Firewall functions by experimenting with Bittorrent's add exception to windows firewall option, I deleted the entry from the Firewall options and also located that the regkeys are in HKLM/System/CurrentControlSet/Services/SharedAccess/Parameters/FirewwallPolicy but I can't figure out what registries are made when an application is added as an exception in the Windows Registry.
I need to write a windows form application that allows the user to enter a credit card number and credit card type and then determines whether it is a valid number using the following rules:
1.) the first number is:
a. 4 for visa b. 5 for master card c. 37 for american express d. 6 for discover
2.) passes the mod 10/ luhn check, which is calculated as:
a. from right to left, multiply every other digit by 2. when doubling a digit results in a two digit number, add the numbers to get
a single digit. ( like 6 * 2 = 12 therefore 1 + 2 = 3).
b. add all the single digits from 2a
c. add all the odd places from right to left in the card number
d. sum the results fro steps 2b and 2c
e. if the resulting number in 2c is divisible by 10, the card number is valid otherwise it is invalid.
The chapter is introducing methods so that is the main thing i will be using for each step.
I'm looking for a library which enables me to take screenshots of a all open applications, and store them as .bmp or .jpg .
I've tried to find something but so far no luck
I don't necessarily need code just a library with good understandable documentation (if such a thing exists). Also, is something like this possible for a beginner-intermediate c++ user? If not where should I start?
I intend writing a Windows form c# application that freezes windows and disables all other running application in the background while executing for security reasons. How I could go about this?
I have a 32-bit application that I've been maintaining for about 12 years and it runs on every Windows platform up to Windows 7. In all that time I've been using CWinApp::GetProfileXxxx() and CWinApp::WriteProfileXxxx() calls to read and write my program settings (about 70 settings) in the Registry. The settings are read from the Registry at start-up and written to the Registry when the program closes. There is also a method for the user to read and write the program settings to an INI file using the same code as the Registry access.
On my Windows 7 system the Registry read/write works just like it always has on all previous Windows versions. However, on some customer's Windows 7 machines there appears to be a problem with the Registry access. The program settings are either not being read from the Registry or are not being written to the Registry. I think the settings are not being written - but I don't know that. When the user uses the INI file the settings appear to be read and written.
The customer has complained a bit (I'd complain too) but doesn't have the time or doesn't want to take the time to run some simple tests for me to find out what's going on with his Windows 7 system.
So here is my question: Are there any user account settings or permissions that can block the program's access to the Registry? He claims he is an Administrator but I can't even get him to verify that.
When I write to the Windows 7 Registry at HKEY_LOCAL_MACHINE, I get a return code of 5 which is the "access denied" message when I execute RegCreateKeyEx.
This happens even if the User has administrator rights.
How can I tell Windows 7 to allow the program to write to the registry?
The application is a 32-bit application and it should be allowed to run in either a Windows 7 32-bit or 64-bit machine.
I noticed that when I run certain popular programs, a User Account Control dialog box comes asking:
"Do if you want to allow the following program from an unknown publisher to make changes to this computer".
Should my application call User Account Control and if so, how do I do it in C++ Visual Studio 2008?
I also found out that 64-bit Windows machines have two registry hives. Is there a different code to handle the same task?
I am developing a program that needs auto start at windows startup. For that I need to add Registry entries. Also the program needs to read some registry keys. What are the functions i need to do these.. Simply I need to
check if the startup key already exists add a new key if it doesn't exist read a key values
how can I allow pressing some keys on the keyboard in C++? I mean, when you are in the console and you are only allowed to press numbers before pressing enter, for example.
(below) on a website which is used for printing the characters as the keys on keyboard are hit i-e without hitting the ENTER key. This method is used in a while loop like this
Code: while ((c = win_getch()) != 13) {}
I wanted to know why is the character compared to
Code: 13 i-e Code: if((c = win_getch()) != 13) then do something
Code: /** * This function will simulate the getch() function from conio.h. * Note that this does not work for special keys like F1-F12, arrow keys, * even the ESC key does not seem to work with this function. * @return TCHAR read from input buffer. */ TCHAR win_getch() { DWORD mode; TCHAR theChar = 0;
My program uses a menu that easily facilitates a person to navigate trough out it but im stuck on a part and I cant go to menu3 with the arrows (only use c code not c++)
I need a container which has multiple keys. The number of keys, which are related to a value, is not constant, but it is small. (less than 10). I have tried to do this with std::map, but things are working only with a constant number of keys per value.
I was developing an exercise program for myself (note: not a project in school) to enhance my programming skills in C++ then I encountered a "logic bug" (that's how I call it :D ) I think. I googled stuffs I need to know and ended up to post my question here.
Here's the scene:
1. When using GetAsyncKeyState I can capture Function Keys [F1-F12, etc..]
2. While doing and having fun to my exercise program, I suddenly noticed that whatever key I pressed from the keyboard {example: asdfkj], it keeps the keys entered and brings to a "field" that accepts user input.
What you should do...
1. Press any key (example: asdfisdjfisdjff) then proceed to press F1. And see what happens. I don't know how to erase what I have entered before pressing F1.
here's the code.
#include <cstdlib> #include <iostream> #include <windows.h> #include <string> using namespace std; void gotoxy(); void gotoxy( int column, int line ) {
So I have assigned this method to each TextBox. It works fine pressing the left arrow and right arrow, but for some reason will not work using the up and down arrows. I have tested the string, using MessageBox and it is correct...the loop even proves it finds a matching TextBox. It is correct as in it displays the TextBox name it should be selecting but doesn't. I have no clue! Now the first select method is the one I want to use, I used the loop to check to see if it was even finding a match. It does find it but doesn't select it. The naming convention for my text boxes is r1c1 where the first number indicates the row and the second number is the column. There are 9 rows and 9 columns. This SHOULD be working but for whatever reason it is not. I've even put a message box inside the if statement for the up and down keypress check and it pops up when i press up or down.
I'm working a personal project where I have two applications namely Server, Client. when Server is started, it continuously transmits data. When Client is opened, it is ready to consume the data and display it.
I will put both .exe files in a shared location (LAN). Therefore Sever and Client will be launched from different machines. When I searched for articles that teach how to establish communication between the two, I was offered with choices like NamedPipes, WCF, Polling etc.. I'm not sure whether they will work in a LAN based environment.Also are there any other means of establishing communication?
Any time I run my program after I make a selection from the menu the output is printed on the console screen then immediately a windows screen comes up saying project.exe has stopped working.
Below is my code, and I suspect the error has something to either
A) due with how I'm calling the method or B) how I have the method coded.
I have an client application and server application, I want to make an update program, In my program I want client send a message to server if there is an new version or not, and server reply with a text message ,send will be done via web service .
I want to create an application that automatize different applications in the sense that my application will be able to press automatically different buttons on another application.
For example: my application will start, let's say, Microsoft Office, will press some buttons in MSOffice, and will close MSOffice.
I have been writing a program to generate pairs of RSA keys using small prime numbers. I have been using mpz_invert() to get a value for d for the private key. On small prime numbers it calculates the correct value, but on larger primes it calculates incorrect values.
I'm assuming there must be an upper limit to the values the mpz_invert() function can handle? If so, what is this limit to avoid erroneous values?
Now i want to be able to change some settings at runtime using a normal Winforms App. Is there a good and easy way to change the user.config of a different application directly? I tried with ConfigurationManager but that does not seem to work.
I am developing an application which monitors file changes and also registry key changes during a driver installation. I have used this code from internet, but doesn't works.
public void WmiChangeEventTester() { try { WqlEventQuery query = new WqlEventQuery( "SELECT * FROM RegistryValueChangeEvent WHERE " + "Hive = 'HKEY_LOCAL_MACHINE'" + @"AND KeyPath = 'SOFTWARESchneider ElectricDMODBUS' AND ValueName='CurrentVersion'");
I'm trying to set up some basic communication between two programs via the registry.
For this I would like to use the functions
Code: int value=10; CString strSection="Data"; CWinApp* pApp = AfxGetApp(); pApp->WriteProfileInt(strSection,ValueName,value); and
Code: CString strSection="Data"; CWinApp* pApp = AfxGetApp(); int value=pApp->GetProfileInt(strSection,ValueName,0); which read/write to the application's registry.
Is there some way of making two different programs use the same application registry?