| Home | Templates | Classes | Guides |
QuickBooks Desktop does not run elevated.
If your app runs elevated and tries to communicate with QuickBooks, Windows will start a new hidden QuickBooks instance under the elevated account. That profile does not have the expected company files and settings, so nothing works as intended. You may see connection failures, empty responses, or no visible sign that QuickBooks was accessed.
For most developers and end users, apps run as a standard user. The main exception is Clarion 9.x development.
Workaround for C9.x
Always test for elevation at startup and warn the user to restart as a normal user if elevation is detected. The global template inserts this check for you automatically.
! Detect elevation and stop early if found
QBConnMgr.AppElevatedStatus = QBConnMgr.IsAppElevated()
IF QBConnMgr.AppElevatedStatus
MESSAGE('This program is running as an elevated user and must be restarted as a standard user.', 'Elevation Warning', ICON:Exclamation)
RETURN
END
IsAppElevated() sets AppElevatedStatus and fills AppElevatedLevel for diagnostics.| Home | Templates | Classes | Guides |