|
Do you know what registry key says we are using XP or VISTA?
|
|
|
|
|
HKLM\Software\Microsoft\Windows NT\Current Version\CurrentVersion => 5.1 for XP and 6.0 for Vista.
|
|
|
|
|
Thanks a lot!
|
|
|
|
|
Is there a known way to convert values from HKEY_CURRENT_USER\Control Panel\Keyboard\KeyboardSpeed to milliseconds?
Thanks in advance
|
|
|
|
|
Hi,
sure, seems KeyboardSpeed is a number in the [0, 31] range depending on Control Panel/Keyboard.
So set it at maximum, write a little program that accepts a line of text, hold down
the 'a' key for 10 seconds then hit ENTER, and let your program decide how may a's you've got.
Divide 10000 by it and that is the shortest key repeat period in msec.
Luc Pattyn [Forum Guidelines] [My Articles]
This month's tips:
- before you ask a question here, search CodeProject, then Google;
- the quality and detail of your question reflects on the effectiveness of the help you are likely to get;
- use PRE tags to preserve formatting when showing multi-line code snippets.
|
|
|
|
|
Hi,
I have setup a Windows XP dial-up server(Control Panel->Networking->New Connection->Advanced->Accept Incoming connections). The connection works but the server (XP machine) uses CHAP protocol for authentification. How do I change it to PAP(it must be PAP)?
Thank you!
|
|
|
|
|
Hi,
I need to connect a PPP client device to a winXP machine using RS232 (COM5).
I have tried setting up a "Incoming connections" and using a standard 9600 bps modem on COM5 RS232 port.
The client send all kinds of PPP requests but the XP machine doesn't respond.
Any ideas, any custom software PPP server?
Thank you very much!
|
|
|
|
|
|
Hi,
As far as I know the main cause of such issue is Incompatible add-ons.
Try to run your IE7 without add ons.
Right click the IE icon on the desktop and choose Start Without Add-ons.
Or
Go to Start | All Programs | Accessories | System Tools | Internet Explorer (No Add-ons).
Hope this helps .
Regards,
John Adams
ComponentOne LLC
|
|
|
|
|
i gonna make my question as clear as I can.
I want to change text of tabs and other text inside window of DirectX example
in tab System i have text Computer Name: Machine and I want to change text to PC: Machine
if i am not so clear in my question then plz ask me.
regards
I Love SQL
|
|
|
|
|
Blue_Boy wrote: if i am not so clear in my question then plz ask me.
I see a couple of statements but do not see a question. Is it encoded into the blank lines with the new algorithm by Pallab_GT[^]?
Best Wishes,
-David Delaune
|
|
|
|
|
thanks Randor,but that's not what I need.
I will try to explain again.
I click Star->Run and I write dxdiag command then i have DirectX Diagnostic Tool window, in this window i want to change text of original one, example : On System tab it's informations
Current Date/Time:
Computer Name:
Operating System:
Language:
.
.
.
and I want to change like this
Da/Time:
PC:
OS:
Language:
.
.
.
how can I do those changes?
regards
I Love SQL
modified on Sunday, April 13, 2008 3:58 AM
|
|
|
|
|
I'm not sure that your question has anything to do with the forum subject. Maybe you should have asked this somewhere else.
This seems to work. Hope your a C++ developer.
typedef struct _WINDOW_INFORMATION
{
TCHAR title[MAX_PATH];
TCHAR Wndclass[MAX_PATH];
} WINDOW_INFORMATION, *LPWINDOW_INFORMATION;
VOID ModifyDirectXDiag()
{
HWND hwnd = ::FindWindow(NULL,_T("DirectX Diagnostic Tool"));
if(NULL != hwnd)
{
WINDOW_INFORMATION wndInfo;
_tcscpy(wndInfo.title,_T("Current Date/Time:"));
_tcscpy(wndInfo.Wndclass,_T("Static"));
EnumChildWindows(hwnd,EnumWindowHandler,(LPARAM)&wndInfo);
}
else
{
MessageBox(NULL,_T("Cannot find DirectX window."),NULL,0);
}
}
static BOOL CALLBACK EnumWindowHandler(HWND hwnd, LPARAM lParam)
{
LPWINDOW_INFORMATION pParentInfo = reinterpret_cast<LPWINDOW_INFORMATION>(lParam);
WINDOW_INFORMATION childInfo;
if(0 != GetClassName(hwnd,childInfo.Wndclass,MAX_PATH))
{
if(0 == _tcscmp(childInfo.Wndclass,pParentInfo->Wndclass))
{
GetWindowText(hwnd,childInfo.title,MAX_PATH);
if(0 == _tcscmp(childInfo.title,pParentInfo->title))
{
SetWindowText(hwnd,_T("Hello World"));
}
}
}
return TRUE;
}
I can't believe I actually took the time to do this.
Best Wishes,
-David Delaune
|
|
|
|
|
thanks for your help, I'll try it
I Love T-SQL
|
|
|
|
|
There must be a maximum number of simultaneously opened files. I found out -the hard way- by a rather strange error, that after opening 507 files, a next file could no longer be opened.
After fixing the bug in my programm: closing a file after having processed the information, the error dispappeared, so 507 is close to 512, therefore i suppose that 512 files is the maximum. That assumption may be wrong.
Is it possible to change the maximum number of simultaneously opened files? If so, how?
21 cm: the universal wave length of hydrogen
modified on Saturday, April 12, 2008 2:39 PM
|
|
|
|
|
As I know of these limits are per process.
There is a KB article on this here[^], that may be of value. So your assumptions may be correct.
Also there are some obscure registry settings to change the limit on the max handle limit documented
here[^].
|
|
|
|
|
Hi Zoltan,
> There is a KB article on this here[^], that may be of value.
It reports 500 per process for NT 4. Seems to be the same for XP.
> Also there are some obscure registry settings
Those report 10000 handles. Weird. When Googling for an answer, [RedHat] Linux reports 1000 simultaneously opened files as maximum.
Fortunately 'decently' recoding the previous mess the solved my agony.
Thanks,
Henk
21 cm: the universal wave length of hydrogen
|
|
|
|
|
henk21cm wrote: Those report 10000 handles
Yeah but for handles you must count a lot of things like synchronization/event handles, registry key handles, thread handles, ui object handles (pens, brushes, etc) and file handles.
|
|
|
|
|
You can modify the maximum number of file handles opened simultaneously. I believe the ceiling is 2048 file handles. You can use _getmaxstdio[^] to verify this on your operating system. If you wish to modify this value you can use _setmaxstdio[^] to set the new value.
Best Wishes,
-David Delaune
|
|
|
|
|
G'day David,
> You can modify the maximum number of file handles opened simultaneously.
The functions _get and _setmnaxstdio are 2005 and 2008 specific. The project was compiled with the old VC 6.0.
> I believe the ceiling is 2048 file handles.
Correct, when using the number 2049 in VS 2005, it reports an error.
Regards,
Henk
21 cm: the universal wave length of hydrogen
|
|
|
|
|
henk21cm wrote: The functions _get and _setmnaxstdio are 2005 and 2008 specific. The project was compiled with the old VC 6.0.
This is not correct, what gives you this idea? This function is part of the standard C runtime library. Those functions have been around for as long as I can remember. Possibly even MSVC 5.0 I will have to check later.
I also still use MSVC 6.0 for some projects... I just checked and it works just fine. The declaration is inside stdio.h on line 340.
It exists in the VC6 documentation as well.
http://msdn2.microsoft.com/en-us/library/aa298575(VS.60).aspx[^]
Best Wishes,
-David Delaune
|
|
|
|
|
G'day David,
Randor wrote: henk21cm wrote:
The functions _get and _setmnaxstdio are 2005 and 2008 specific. The project was compiled with the old VC 6.0.
This is not correct, what gives you this idea?
1) The link in the previous reply referred to a webpage in which explicitly "VS 2005 and later" was mentioned.
2) When typing _getmaxstdio in the VC 6 help, a messagebox "No topics found" pops up.
Randor wrote: This function is part of the standard C runtime library. Those functions have been around for as long as I can remember.
And you are absolutely right. I compiled a simple snippet with both (get/set) under VC 6, and it ran flawlesly.
Thanks for the additional info.
Regards,
Henk
21 cm: the universal wave length of hydrogen
|
|
|
|
|
I'm not sure if your old enough to remember this but in the old MS-DOS days this was achieved by editing a file called CONFIG.SYS in which you could add:
FILES=255
http://www.easydos.com/files.html[^]
Since Win95 and Win98 was built on top of MS-DOS you could still modify the value in those operating systems as well. If I am not mistaken I believe the default value in Win95 was 60 handles which was set by IO.SYS in the root boot directory unless overridden in CONFIG.SYS.
Ahhh the dinosaur age... now I'm feeling old.
Best Wishes,
-David Delaune
|
|
|
|
|
Randor wrote: 'm not sure if your old enough to remember this but in the old MS-DOS days this was achieved by editing a file called CONFIG.SYS in which you could add:
FILES=255
Yes, i do remember, i'm that old that i've been working with punched paper tape and punched cards. Devising a diode array to translate EBCDIC into ASCII.
When running into this limited amount of files, CONFIG.SYS was the first file to look for. Under XP it is 0 bytes, not too much space to hold any info of particular value.
Randor wrote: If I am not mistaken I believe the default value in Win95 was 60 handles which was set by IO.SYS in the root boot directory unless overridden in CONFIG.SYS.
Under DOS (3.2) it was usually set to FILES=20. The default of 8. "Those were the days", compiling programs into .COM files of 512 bytes or less.
FCBS=4,4
LASTDRIVE=Z
David, we are growing old, but not grumpy!
Regards,
Henk
21 cm: the universal wave length of hydrogen
|
|
|
|
|
Hi Guys,
I have a major problem right now. I have a Kerio Mail Server which is currently installed in windows xp home edition. And the number of email accounts are in this Mail Server are only 50 users.
A week ago all our incoming and outgoing emails works fine, and there are no delays of mail delivery. And just this week starting on Monday, we only received incoming emails. And our outgoing emails will be delivered late.
When we send emails to yahoo.com, gmail.com, etc. the message will be delivered 6 hours to 1 day. And I haven't change anything on the configuration. What do you think really is the problem? It's a week now and still it doesn't work properly. The problem is with our outgoing emails.
Was it our Static I.P. that was being blocked because of greylisting?
How can I correct this problem?
Thanks Guys
hifiger2004
|
|
|
|