Page 2 of 16

Posted: Wed Oct 26, 2005 10:17 am
by ts-soft
Heis Spiter wrote:You're right. I've some problems with mathematics words in English :oops:. If someone can correct it in PBOSL ;).
i will change it for next version in

Code: Select all

Result.l = RandomPrime(Maximum)
Heis Spiter wrote: About bugs, I think I've found a bug in NTService. The function removeservice doesn't work. It's strange ! I would delete a service, so I use this function that didn't work. To see where it failed, I tried with source, and with source it works... :shock:
Sorry, i have test it with the examples, it works for me :?:
Stest.exe /install
Service "NT-Services the easy way" is installed and
Stest.exe /remove
Service "NT-Services the easy way" is removed
Can you post a codeexample, please?

Posted: Wed Oct 26, 2005 10:22 am
by GeoTrail
I have used the remove service and that worked fine for me. Did you remember to stop it first?

Posted: Wed Oct 26, 2005 11:03 am
by Heis Spiter
No :lol:. That explains all ;). I'm a bit absent-minded :?.
I've too a suggestion to do. My program doesn't support Pause/Resume. And I've seen that Avast service doesn't purpose those options. How can I do to delete those options to my service ? (After install, or during install)

Posted: Wed Oct 26, 2005 11:30 am
by GeoTrail
I'm not really sure what you mean. Could you explain abit more?

Posted: Wed Oct 26, 2005 11:54 am
by Heis Spiter
Ok. When you have created a service with the lib, your service has four options : Start, Pause, Resume, Stop. My programme can't support Pause and Resume. And I've seen that Avast! has only two options : Start, Stop. So, I would like to know how I can do to have only Start and Stop.

Posted: Wed Oct 26, 2005 11:56 am
by GeoTrail
I see what you mean and that is a good question.
Was wondering about that myself.
I'd also like to be able to add a service, but not as automatic , but to run manually when needed.

Posted: Wed Oct 26, 2005 1:04 pm
by Heis Spiter
GeoTrail wrote:I'd also like to be able to add a service, but not as automatic , but to run manually when needed.
When you install your service, use this constant

Code: Select all

#SERVICE_DEMAND_START   = $00000003
instead this constant

Code: Select all

#SERVICE_AUTO_START     = $00000002

Posted: Wed Oct 26, 2005 1:25 pm
by GeoTrail
That's great. Just what I needed. Thanks m8 :)

Posted: Wed Oct 26, 2005 1:57 pm
by ts-soft
For the next PBOSL-Update, i have added the constants to the pbosl.chm

You can also help to corrected the helpfile by creating a account on webPM, send me a PM, please
(translated by webtranslator, sorry)

Posted: Wed Nov 02, 2005 11:43 am
by ts-soft
Update: PBOSL_RandomPrime, PBOSL_PurePDF (little Bugfix)
New Version: PBOSL_SQLite3 (see examples, help is coming soon...)

Posted: Sat Nov 05, 2005 7:35 pm
by Gansta93
GeoTrail wrote:Does anyone have some info about the status service?
GetServiceStatus() retreives a numeric value from 1 to 4. I found that 1 means disabled and 4 is enabled, but I don't know if it's running or not.
These are the constents I have taken with autocompletion typing #Service_ and looking for constents whish have a name looking as a state.

Code: Select all

#SERVICE_STOPPED = 1
#SERVICE_INACTIVE = 2
#SERVICE_STATE_ALL = 3
#SERVICE_RUNNING = 4
#SERVICE_PAUSED = 7
Strange... there is not 5 and 6... but if someone confirme, I will add it in the help because I can test it, I am on Win 98 SE.
I know my method is not the best, but it seams to work. ;-)
Message edited, mistake with first constent.

Posted: Sat Nov 05, 2005 8:16 pm
by Gansta93
A suggestion:
To compile the help file, only two files of HTMLHelpWorkshop are requiered : HHA.dll and HHP.exe.
Why not propose a seperated pack with thes two files if the user has not HTMLHelpWorkshop or just include thes two file in the zip archive which conteins the sources of help? If we do it, it won't be necessary to edit make.bat and it will be simply

Code: Select all

@echo off
@generate.exe /quiet
@cd output
..\hhc.exe PBOSL.hhp
so it'll be compatible with all configurations.
What do you think? :?:

Posted: Sat Nov 05, 2005 8:23 pm
by ts-soft
the hhc.exe is not redistributable, only as original-setup.

Posted: Sat Nov 05, 2005 8:31 pm
by Gansta93
ts-soft wrote:the hhc.exe is not redistributable, only as original-setup.
Oops, this is the consequence of not reading licences. :-) I'm understand, thx.

Posted: Sat Nov 05, 2005 9:34 pm
by Gansta93
About GetServiceStatus(), I have it. :-D

Code: Select all

#SERVICE_STOPPED = 1
#SERVICE_START_PENDING = 2
#SERVICE_STOP_PENDING = 3
#SERVICE_RUNNING = 4
#SERVICE_CONTINUE_PENDING = 5
#SERVICE_PAUSE_PENDING = 6
#SERVICE_PAUSED = 7
Here are the explications of constents (I will take thes in the help with WebPM but not if TsSoft is disagrea).
#SERVICE_STOPPED = The service is not running.
#SERVICE_START_PENDING = The service is starting.
#SERVICE_STOP_PENDING = The service is stopping.
#SERVICE_RUNNING = The service is running.
#SERVICE_CONTINUE_PENDING = The service continue is pending.
#SERVICE_PAUSE_PENDING = The service pause is pending.
#SERVICE_PAUSED = The service is paused.
I was on a good way! :-D