Ravi Kansangara
2014-02-28 06:47:39 UTC
Dear all,
I am developing TSP for my PBX.
I want following key path to store my TSP GUI Parameters like PBX IP address, Port, Debug Log File Path, etc...
HKEY_LOCAL_MACHINE\\SOFTWARE\\<Company Name>\\<Product Name>\\
So When user select "Configure" option for my TSP from "Phone & Modem Option"
my TSP GUI pop ups & Whatever configuration is done by user would be saved in above registry Path.
I have opened above Registry key with "KEY_ALL_ACCESS".
Observations:
1. This works fine in Windows XP that is i can create, modify & delete registry
keys from my TSP routines.
2. From Windows 7 on wards, it gives error of ACCESS_DENIED for all registry
operation like create, modify, delete. Though i can read registry keys
that are already present.
3. By Default "Telephony service" in Windows 7 is running under
"Network Account". If i change it to run under "Local Account", registry
Problem solves.
4. Any Console or windows Application can access registry without any extra
efforts. Problem arises in TSP as it is not application &
TSP library (.tsp file) is loaded by Telephony Service which has no
write/modify access of Registry.
Work Around:
1. One can create one console application which will write/modify registry.
So whenever TSP configuration changes, TSP will invoke that application with
appropriate input Parameters to write/modify particular registries.
Problem:
1. As i don't want that user manually change the account of "Telephony Service"
from "Network account" to "Local Account". Also i don't want above work
around.
How can i access registry HKEY_LOCAL_MACHINE from my TSP ?
Any Suggestions are appreciated.
Thanks.
I am developing TSP for my PBX.
I want following key path to store my TSP GUI Parameters like PBX IP address, Port, Debug Log File Path, etc...
HKEY_LOCAL_MACHINE\\SOFTWARE\\<Company Name>\\<Product Name>\\
So When user select "Configure" option for my TSP from "Phone & Modem Option"
my TSP GUI pop ups & Whatever configuration is done by user would be saved in above registry Path.
I have opened above Registry key with "KEY_ALL_ACCESS".
Observations:
1. This works fine in Windows XP that is i can create, modify & delete registry
keys from my TSP routines.
2. From Windows 7 on wards, it gives error of ACCESS_DENIED for all registry
operation like create, modify, delete. Though i can read registry keys
that are already present.
3. By Default "Telephony service" in Windows 7 is running under
"Network Account". If i change it to run under "Local Account", registry
Problem solves.
4. Any Console or windows Application can access registry without any extra
efforts. Problem arises in TSP as it is not application &
TSP library (.tsp file) is loaded by Telephony Service which has no
write/modify access of Registry.
Work Around:
1. One can create one console application which will write/modify registry.
So whenever TSP configuration changes, TSP will invoke that application with
appropriate input Parameters to write/modify particular registries.
Problem:
1. As i don't want that user manually change the account of "Telephony Service"
from "Network account" to "Local Account". Also i don't want above work
around.
How can i access registry HKEY_LOCAL_MACHINE from my TSP ?
Any Suggestions are appreciated.
Thanks.