|
Thank you very much.
I Touched Osama Bin Ladens Bushy Beard
|
|
|
|
|
hi,
i am using win2000,and i want to perform following operation in windows login,
i)All ways default user should be GUEST.
ii)if a user enters password wrong for three times, then automatically it has to login as guest.
iii)If administrator logs in it has to goes to desktop,
else i want to perform my application(ie ordinary user have no entry to desktop)
pls help me ....its urgent
bye,
achip
|
|
|
|
|
achip wrote:
i)All ways default user should be GUEST.
Check out the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\DontDisplayLastUserName registry key. This won't do anything about a default user, but it does remove the ability to view which user was last logged onto the machine by clearing the username box on the login screen.
achip wrote:
ii)if a user enters password wrong for three times, then automatically it has to login as guest.
I'm not sure if this is possible without a custom GINA.DLL.
achip wrote:
iii)If administrator logs in it has to goes to desktop,
else i want to perform my application(ie ordinary user have no entry to desktop)
By default, after a successful login, the desktop is displayed. I'm not sure what you mean by "ordinary user have no entry to desktop." Perhaps the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Windows\SecureDesktop registry key might be of use.
A rich person is not the one who has the most, but the one that needs the least.
|
|
|
|
|
i) ok......
then how u will set the default user name as Guest.
ii) i also know that for this u have to change the msgina.dll, but i dont have the source code & i dont know how to do it.
iii)what i mean is if the user is Administrator it has to dirrectly goes to desktop.
for all other user, after windows login dirrectly my applicaton has to run. No access to desktop.
i think now it is clear, u can help me..
i am waiting for ur reply,
thanks,
bye
|
|
|
|
|
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.
|
|
|
|