An administrator running processes, called CLSIDFromProgID, error code is 1008, do not specify a tok
BOOL bAdmin=IsUserAnAdmin ();//judge whether the administrator
Retrieves the hr=CLSIDFromProgID (L "Excel. Application", & amp; Clsids);
DWORD errCode1=GetLastError ();
It has already been done COM initialization,
The registry has Excel. The Application of this item, if change the UAC to RunAsInvoker can normal call,
CodePudding user response:
Try right-click on the program, attribute compatibility of modified all users as an administrator to start the
CodePudding user response: