|
No, they would not be permitted AFAIK
modified 1-Aug-19 21:02pm.
|
|
|
|
|
It cannot be done.
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
You can use special characters that are present in your fonts, such as superscript 2 and 3.
I see no equivalent subscript characters though.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
hi
i'm trying to find out the following
in task manager each process has a unique PID.
if you kill a specific process does that PID ever get re allocated to a new process?
how does the PID generation work. Could another process come back with that same PID (without rebooting)
Regards
Pez
|
|
|
|
|
The scheme for allocating process identifiers is not documented, but I believe they're simply the byte offset of the process object's handle in the system handle table (note that they're always a multiple of 4). They might be reused at any time so you should take account of this.
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
The minimum ring-3 (usemode) PID is 0xC (12) anythign below is reserved for kernel. The maximum available PID is 0x41DC (16860) decimal. PID valus is always ((pid modulo 4) == 0) up to 16860 and then wraps back around. So yes a process id can be used multiple times.
This comment refers to my knowledge of the XP kernel, I have no idea if this applies to Vista as I have not started developing on that platform yet.
Best Wishes,
Randor (David Delaune)
|
|
|
|
|
Hi Pez,
I know this is late, but...
According to Russinovich, PIDs an TIDs (thread IDs) share the same namespace. So Process IDs will be unique from TIDs. Also, as for being a multiple of 4, this is due to the lower two bits being used as TAGBITs.
Jeff
|
|
|
|
|
I wanted to let you know that the MSDN Developer Center for Windows Server 2008[^] is now live.
The site provides infromation about
- The latest beta of Windows Server 2008.
- A developer training kit.
- How features of Windows Server 2008 can enhance your applications.
For information of interest to independent software vendors, check out the the US ISV blog.
|
|
|
|
|
You might want to fix the link. It's going to CP, not the Developer Center.
|
|
|
|
|
Hello all,
I hope i'm in the right forum (cuz i'm not sure if this is a SysAdmin issue), but anyway, here it goes:
I'm doing a small application that queries the WMI class Win32_Processor for the value LoadPercentage (on all instances).
The problem is, it takes too long to reply which causes my application to hang (I do the query every 1 second).
It is obvious that i'm trying to do a system monitoring application, and I do not want to affect system performance; so is there any other WMI class which I can get the same value from? how do other monitoring applications do it?
I do have other memory and hard disk related WMI queries that respond fast enough, so I know it is not a problem of using a WMI query, but the problem is i'm probably using the wrong class.
Regards,
Naimi
|
|
|
|
|
For this, you don't use WMI. Use the PerformanceCounter[^] classes instead. You'll be using the same performance objects you find in the Performance Monitor (Start/Run perfmon.msc).
|
|
|
|
|
Thank you Dave.
However I'd rather to use WMI, because I want to get this information from remote computers in my network. Also, my little application is actually a JavaScript code, not .NET .
|
|
|
|
|
Over the network every second?? You're asking a bit much. There is no way to speed up the results of a WMI query. It takes as long as it takes.
As for being Java code, you should have specified that in the original post. The quality of the answer you get is directly dictated by the quality of the question.
|
|
|
|
|
There is a WMI class which represents the Processor performance counter object. See Win32_PerfFormattedData_PerfOS_Processor, specifically the PercentProcessorTime property. It may be that this is faster to retrieve than the other value.
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
Dave: I agree I should said that it is a JavaScript in my first post.
Mike: Thank you - that was exactly what I was looking for.
|
|
|
|
|
Hi guys,
On a workgroup environment, if you interactively login (runas command) with your admin user under your regular user session (Power User), and you kick yourself out from the Administrators group. How can you get back to be an admin on that PC?
Is it possible to revert back this action?
Thanks,
...neualex
|
|
|
|
|
Another Admin equivilent account has to add you back to the Administrators group. There is no "undo"...
|
|
|
|
|
That's where the problem lies, there is no another admin account.
I guess I will have to run the File and Setting Transfer Wizard and reinstall WinXP
|
|
|
|
|
There is: the built-in Administrator account. If you have changed all other users to standard users, the built-in Administrator account will appear in the Welcome screen. By default it has no password.
If it does not appear on the Welcome screen, you can press Ctrl+Alt+Del twice to get the old login dialog up, where you can log on as Administrator.
Note that in Windows XP accounts without passwords cannot log on remotely, so this configuration is actually probably more secure than an administrative account with a weak password.
Personally I use this configuration - my own account is a standard user, and the Administrator account is enabled. I use that account for all administrative actions and use the limited account for day-to-day tasks. There are a number of XP features that don't work properly (e.g. Power Options control panel) where you have to use MakeMeAdmin[^] to temporarily elevate your standard account to an administrator.
DoEvents : Generating unexpected recursion since 1991
|
|
|
|
|
Mike,
Thanks for the prompt reply.
Even the built-in admin account is kicked out from the Administrators group.
In other words, there is no account in the Local Administrators group on this box
|
|
|
|
|
neualex wrote: Even the built-in admin account is kicked out from the Administrators group.
That's impossible. You cannot remove the built-in Admin account from the Administrators group.
|
|
|
|
|
Dave,
You are right, the administrator account is not removed from the Administrators group.
The problem is that the account is disabled , and there is no other account with admin rights to enable it. Power user cannot do it.
Is there still hope?
|
|
|
|
|
|
Dave,
Thanks for the post.
However, let me remind you that only one admin account exists on this XP box, and it is disabled.
The post explains how I can reset the password, but not how to enable it back.
If I miss something, please let me know.
Thanks again,
neualex
|
|
|
|
|
I know. There is a CD image on that site. Burn the CD, boot the machine on it (it's a Linux boot!) and it'll let you reset the password AND re-enable the account.
|
|
|
|