Win32 application that opens PDF files using the Windows API ShellExecuteA.

New Here ,
Jun 28, 2018

Copy link to clipboard

Copied

We are the developers of a Win32 application that opens PDF files using the Windows API ShellExecuteA.

Adobe Acrobat Reader DC (version 2018.011.20040) is installed in Windows to open PDF files.

We have a 64-bit Windows 10 Home machine (version 1803, OS build

  1. 17134.137) with two copies of our application - Both copies are the exact same version of our application.

When we run the application normally (ie. NOT as an Admin user), both copies of our application are able to open PDF files successfully.

However, on one of the copies of our application, if we run the application using the "Run as Administrator" Windows option, when we try to open a PDF file, ShellExecuteA does NOT return any error but the PDF file does not open AND Acrobat is then "stuck" from that point forward and cannot open any PDF file using ANY user context. We are forced to restart Windows to allow Acrobat to work again.

On the other copy of the application when "Run as Administrator", the problem does NOT happen.

In both cases, the application and PDF files are identical - The only difference is the folder they are run from. We checked the rights for both folders and they are the same.

TOPICS
Acrobat SDK and JavaScript

Views

402

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Win32 application that opens PDF files using the Windows API ShellExecuteA.

New Here ,
Jun 28, 2018

Copy link to clipboard

Copied

We are the developers of a Win32 application that opens PDF files using the Windows API ShellExecuteA.

Adobe Acrobat Reader DC (version 2018.011.20040) is installed in Windows to open PDF files.

We have a 64-bit Windows 10 Home machine (version 1803, OS build

  1. 17134.137) with two copies of our application - Both copies are the exact same version of our application.

When we run the application normally (ie. NOT as an Admin user), both copies of our application are able to open PDF files successfully.

However, on one of the copies of our application, if we run the application using the "Run as Administrator" Windows option, when we try to open a PDF file, ShellExecuteA does NOT return any error but the PDF file does not open AND Acrobat is then "stuck" from that point forward and cannot open any PDF file using ANY user context. We are forced to restart Windows to allow Acrobat to work again.

On the other copy of the application when "Run as Administrator", the problem does NOT happen.

In both cases, the application and PDF files are identical - The only difference is the folder they are run from. We checked the rights for both folders and they are the same.

TOPICS
Acrobat SDK and JavaScript

Views

403

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jun 28, 2018 0
LEGEND ,
Jun 28, 2018

Copy link to clipboard

Copied

Moved from the Acrobat Reader forum.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jun 28, 2018 0