How to limit the application PID to 3 digits?

  • Thread starter Thread starter BuddyWork
  • Start date Start date
B

BuddyWork

Is there anyway I can limit the PID generation to 3
digits for my application without changing the code?

The only workaround I have found is to terminate the
application and reload it until I get a 3 digit PID
generated by the operating system.

The reason I want to do this is because the PID and other
variables system keys are used to generate an unique
identifier which is then used by the application.
 
I am far from a core Windows XP expert (and this question should be asked in
a developer newsgroup), but I wouldn't even dream of starting to hack into
Windows like that. You'll only create problems with different versions, etc.

Why don't you just use the first 3 digits if the PID exceeds 3 digits in
length? Alternatively, you can add the numbers until you get to 3 or less

1234 as a PID could become 123 + 4 = 127, etc.
 
I am far from a core Windows XP expert (and this question should be asked in
a developer newsgroup), but I wouldn't even dream of starting to hack into
Windows like that. You'll only create problems with different versions, etc.

Why don't you just use the first 3 digits if the PID exceeds 3 digits in
length? Alternatively, you can add the numbers until you get to 3 or less

1234 as a PID could become 123 + 4 = 127, etc.

Because 1243 would also become 127 (i.e. 124 + 3).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top