Beijer Electronics (formerly QSI Corporation)

Manufacturer of Mobile Data and Human Machine Interface Terminals.
It is currently Sun Nov 19, 2017 8:54 am

All times are UTC - 7 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
PostPosted: Fri Feb 17, 2012 1:17 pm 
Offline
QSI Support
QSI Support
User avatar

Joined: Wed Mar 08, 2006 12:25 pm
Posts: 881
Location: Salt Lake City, Utah
If you start your application via HKEY_LOCAL_MACHINE\init you are required to call SignalStartedin your application to ensure that the system fully boots. Failure to call this API will result in intermittent failures that can be very difficult to diagnose, but can include:

* Repeatedly incorrectly calibrated touch screen.
* Registry is not persistent (values are not saved)
* Signals (such as ignition sense or dock sense) don't trigger at the proper time.
* Other issues.

The key is to call SignalStarted at the beginning of your application's main function.

C++:
Code:
#include <windows.h>
int _tmain(int argc, _TCHAR* argv[])
{
    SignalStarted(_ttoi(argv[1]));
}


C#

Code:
        [DllImport("coredll.dll")]
         private extern static void SignalStarted(UInt32 code);
         /// <summary>
         /// The main entry point for the application.
         /// </summary>
         [MTAThread]
         static void Main(string[] args)
         {
             UInt32 code = UInt32.Parse(args[0]);
             SignalStarted(code);
         }

_________________
Jeremy
http://www.beijerinc.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 7 hours


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group