Quantcast
Channel: LabWindows/CVI topics
Viewing all articles
Browse latest Browse all 5357

SetSystemDate and SetSystemTime

$
0
0

I have a CVI 2017 application that needs to run in kiosk mode.  It needs to allow the operator to set the system date and time from the user interface.  I have found on Win7 that calls to SetSystemDate() and SetSystemtime() fail if the application is not launched "Run as Administrator".  Even if the login account is an administrator, this must be invoked. 

 

Is there some way force this upon application launch without the operator having to do it via right-click?  I have found that one can select in Properties that one can select "Run as Administrator", and once I have a deliverable product that can be done.  The bigger question though, is there some way to tell CVI to always create .exe files that invoke that, so that it does not have to be done manually?


Viewing all articles
Browse latest Browse all 5357


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>