Using kernel32.dll Functions in LabVIEW 8.5.1 Returns 0 Under Windows Vista Primary Software: LabVIEW Development Systems>>Professional Development SystemPrimary Software Version: 8.5.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I have created an executable in LabVIEW 8.5.1 that use a Call Library Function Node to call the SetSystemTime function of the kernel32.dll library. The executable uses the SetSystemTime function do modify the date and the time of the Operating System. Solution: The reason why SetSystemTime function returns 0 under Windows Vista is because this Operating System introduced higher security standards compared to Windows XP. The SetSystemTime function requires Administrator rights to run correctly. If the UAC prompt doesn't shows up, that means the application won't run with Administrator privileges even if you logged on as a user belonging to the Administrator group. Vista does this automatically for UAC compliant tools. However, with legacy applications Vista often fails to detect if Administrator privileges are required. To do this follow these steps:
Related Links: Vista’s UAC: 8 ways how to elevate an application to run it with Administrator rights Attachments:
Report Date: 07/18/2008 Last Updated: 07/25/2008 Document ID: 4NH6I253 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
