Home > Software engineering >  An administrator running processes, called CLSIDFromProgID, error code is 1008, do not specify a tok
An administrator running processes, called CLSIDFromProgID, error code is 1008, do not specify a tok

Time:09-16

 
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:

reference 1st floor zgl7903 response:
try right click on the program, modify attributes compatibility for all users as an administrator to start the

Can't tried, UAC excute level is currently set to requireAdministrator

CodePudding user response:

What value is returned by the hr?

CodePudding user response:

The
reference 3 floor zgl7903 response:
return hr what value?

The return value is zero x800401f3, invalid string

CodePudding user response:

Encounter the same situation, the administrator permissions can't run, the average user permission to run normally,
For reasons unknown, baidu search not the answer,,,,
  • Related