Registry read Failure when program launched by AT scheduling program 
Author Message
 Registry read Failure when program launched by AT scheduling program

My VB6 'standard exe' program uses 'GetSetting' to retrieve some registry
information.  The function works when launched from the desktop (NTW4 sp5),
but when I run the program from the scheduler program 'AT' the function
fails.  Is this a known issue or is there something I am doing wrong?  When
I use the API functions directly, I still get a 'path not found' error.  I
am using the ASCII version of the registry functions.  Do I need to convert
to Unicode? How?

Thanks for any help.

Mike Stokan
GeoEconomics, Inc.



Fri, 23 Aug 2002 03:00:00 GMT  
 Registry read Failure when program launched by AT scheduling program
Mike,

I'm not really sure, but I think this might be the cause of your problem.

GetSetting retrieves values from the current_user part of the registry,
which is ok when running the app from the desktop.

When using the scheduler the current_user part is not available,
since the scheduler needs to be able to launch the program even if
no user is logged in.

You should use the registry api calls to retrieve the information from
the local_machine part instead.

/Bj?rn Holmgren, Framfab/Guide AB



Quote:
> My VB6 'standard exe' program uses 'GetSetting' to retrieve some registry
> information.  The function works when launched from the desktop (NTW4
sp5),
> but when I run the program from the scheduler program 'AT' the function
> fails.  Is this a known issue or is there something I am doing wrong?
When
> I use the API functions directly, I still get a 'path not found' error.  I
> am using the ASCII version of the registry functions.  Do I need to
convert
> to Unicode? How?

> Thanks for any help.

> Mike Stokan
> GeoEconomics, Inc.



Sat, 24 Aug 2002 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. launching a program using its registry entry NOT Shell()

2. Launching Windows Program from DOS Program

3. Having a BASIC program launch another program

4. How to launch a VB program off the back of a non VB program

5. Newbie needs help in reading installed programs from the registry using RegObj.dll

6. Read installed programs from the registry?

7. Newbie needs help in reading installed programs from the registry using RegObj.dll

8. Newbie needs help in reading installed programs from the registry using RegObj.dll

9. Newbie needs help in reading installed programs from the registry using RegObj.dll

10. Reading Registry in a 16-bit program

11. Advanced Programming -- Reading Data from an Active Program

12. HELP - program setup failure when compiled under winME

 

 
Powered by phpBB® Forum Software