|
achip wrote:
then how u will set the default user name as Guest.
Without creating your own MSGINA.DLL, I know of no way to automatically plug "Default" into the login box.
achip wrote:
...i dont know how to do it.
Start here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/msgina_dll_features.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/winlogon_and_gina.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/security/security/loading_and_running_a_gina_dll.asp
achip wrote:
what i mean is if the user is Administrator it has to dirrectly goes to desktop.
This happens by default. Some windows, such as Windows Explorer and Control Panel, might open back up if they were open when Administrator last logged off.
achip wrote:
for all other user, after windows login dirrectly my applicaton has to run. No access to desktop.
Then put your application in the Startup group, or the Run key (not in the HKLM hive) in the registry.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
hi,
if u put into startup then first desktop will come and after that ur application also will come.
more over from there by using some key u can access the desktop.
In our system only admin have the right to access the desktop, no one else.
so can u send some script for that
bye
|
|
|
|
|
achip wrote:
if u put into startup then first desktop will come and after that ur application also will come.
Correct. Only services start before the desktop.
achip wrote:
In our system only admin have the right to access the desktop, no one else.
Is this handled at the OS level (I've not been able to find anything), or is there a third party utility running that handles this?
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I was considering a solution to my problem of grabbing strings from another application. Writing to a file seems to be easiest solution. However, the app which reads the file needs to read it in real time. Both apss run at the same time. The first program is writing data to a file (redirect stdout to a file and use printf). A second program is reading the file and displaying the data in a GUI text window. However, this does not seem to work. It may be a permission problem, but I'm not sure. I thought about using create named pipe, but I want the second app to be optional (meaning it does need to be run). When using pipes, don't both need to be connected? Any suggestions. Thanks.
|
|
|
|
|
One solution is memory-mapping. Another solution is WM_COPYDATA.
Kuphryn
|
|
|
|
|
Hi.
If your data is small you can use windows registery to pass the data.
If not you can use combination of two strategy named pipe and writing to file.
but i think after every write you close the file and open it at other time the second app can wait to close the file and then itself open it.
|
|
|
|
|
Hi.
You can use CFile class and in open function use this flag:
CFile::shareDenyNone
I think that this flag can useful for you.
|
|
|
|
|
I think this is exactly what you are looking for.
|
|
|
|
|
Hi All,
I need to select the entire column when a user clicks on a column header and I am not sure how to do it. Can someone give me some insights so I can get started.
Thank you,
Dmitry
Make things as simple as possible, but no simpler. -- Albert Einstein
|
|
|
|
|
Something like:
for (int x = 0; x < itemcount; x++)
listctrl.SetItem(x, column, LVIF_STATE, "", 0, LVIS_SELECTED, LVIS_SELECTED, 0); I've not tried this so it may be full of holes.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
With the standard list control, you can't select just a column. Take a look at the grid controls here at CP, those may be what you need.
--Mike--
Ericahist | CP SearchBar v2.0.2 | Homepage | 1ClickPicGrabber New v2.0! | RightClick-Encrypt
There is a saying in statistics that a million monkeys pounding on typewriters would eventually create a work of Shakespeare. Thanks to the Internet, we now know that this is not true.
|
|
|
|
|
Thank you. I will definitely check out the grid controls.
Make things as simple as possible, but no simpler. -- Albert Einstein
|
|
|
|
|
hi,
i want to check a system in the network is up or down by using its IP address.ie Ping a system using IP add.
its very urgent.
pls help me.
achip,
|
|
|
|
|
One solution is winsock. The simplest solution is to use the tool Ping that comes with windows.
Kuphryn
|
|
|
|
|
hi,
i dont get u what tool you mean.
i want to access a remote system from my programme, with the IP address.
while running the application if the system is not ON,it becomes so slow.
So i want some programme to check a system is UP or down with the IP address in a minimal time.
pls help me...
bye
|
|
|
|
|
The ICMP in no way guarantees that a system is up or down. In any case, try searching CP for "ping", and this search.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
I want to create a logger program which should keep track of how many times the host computer was started and also the Date & time of each startup & shutdown.
Please tell me about any win 32 api or MFC solution to achieve my goal.
Jahangir Raza Shah
Pakistan.
VC, Directx Programmer. (Intermediate Level).
|
|
|
|
|
One way to do this would be to write a Windows Service that logs each time it is started and shut down...
I also found this article on CP that discusses startup/shutdown notifications:
http://www.codeproject.com/system/winlogon_notification_package.asp
Nick
This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.
|
|
|
|
|
Thanks for your answer and WARNING!!!
Jahangir Raza Shah
Pakistan.
VC, Directx Programmer. (Intermediate Level).
|
|
|
|
|
I want to create a logger program which should keep track of how many times the host computer was started and also the Date & time of each startup & shutdown.
Please tell me about any win 32 api or MFC solution to achieve my goal.
Jahangir Raza Shah
Pakistan.
VC, Directx Programmer. (Intermediate Level).
|
|
|
|
|
Hi all. I thought yesterday of creating a very simple encryption program using a basic if/else statement. This is the basic idea for it.
#include <iostream.h>
int main()
{
int const pword = (whatever your password is);
float password
cout << "To open program, enter the password: << endl;
cin >> password;
if (password = (password))
{
// this is where i have a problem, how do you open a file from a program?
}
else
{
cout << "Access Denied" << endl;
}
return 0;
}
Please help or comment on this or my idea in any way. Is this even a good idea? A workable idea? Thanks in advance.
|
|
|
|
|
if you want an external program to open with the file (like notepad, for instance...) use the you could system() command.
like:
if(password == paswd)
{
system("notepad file.txt");
}
that comes from the command prompt commands. you can actually type "notepad file.txt" in a command prompt, and it will execute notepad, with the file.
There's other ways using various window commands to open applications, but thats a pretty simple way.
*.*
cin >> knowledge;
|
|
|
|
|
There are several options. Here are a few:
- standard C++ lib: <fstream>
- MFC: CFile, CstdioFile
- Win32 API: CreateFile()
“…is this even a good idea…”
No. There are so many reasons but the most obvious is nothing is encrypted. It appears your intent was to “password protect” a file but it only works if the file is opened with your app. What’s to stop someone from opening the file with notepad.exe for example. You have hard-coded the password into the code. Bad idea. With little effort, someone could just open your compiled exe with a hex editor and nab the password. The list goes on (and its long). Encryption is a very complex subject. If you are seriously interested consider picking up a copy of Bruce Shneier’s Applied Cryptography.
you wrote:
“ if(password = (password)) “
what you meant was:
if(password == pword)…
I have seen some of your other posts on this forum and I am not sure what compelled me to answer this one. I would suggest searching www.msdn.microsoft.com and google for your questions and if they still remain unanswered, post them as a question. “How to open a file” can be answered in less than 1 minute by searching the above sites
|
|
|
|
|
Thanks for the answers, sorry if they seem easy or whatnot. I am very new at programming.
|
|
|
|
|
HackerBoy wrote:
if (password = (password))
This is an error and is common for beginners. Get into the habit now of putting constants on the left of the equality operator and the compiler will be quick to tell you when you've mistakingly used the assignment operator instead. Otherwise, while what you have is syntactically correct, it does not produce the desired result.
HackerBoy wrote:
...how do you open a file from a program?
I'm not quite sure what you mean by this. There are many ways to open files. Among them are CreateFile() , fopen() , and CFile::Open() .
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|