Skip to main content
Known Participant
Nov 26, 2020 6:38 AM UTC
Question

Can not create name pipe in *.api, have the access denied error

Dear All,

 

I just want to create a name pipe in *.api for adobe reader as follow, by using visual C++.

hPipe = CreateNmaedPipe(L"\\\\.\\pipe\\my_pipe", PIPE_ACCESS_DUPLEX, PIPE_TYPE_MESSAGE | PIPE_READMODE_MESSAGE | PIPE_NOWAIT, PIPE_UNLIMITED_INSTANCES, 4096, 4096, 1000, NULL);

and put *.api in the adobe plugin,  open adobe and call this.

But hPipe will return INVALID_HANDLE_VALUE and GetLastError as 5, Access Denied.

 

If I only run the is code in invidual c++ project and run it directly, it can be successful. Anyone has this idea?

 

Thanks,

Tony

 

 

This topic is closed to new replies. Start a new post to keep the conversation going.

8 replies

Legend
Nov 26, 2020 11:57 AM UTC

If you only just downloaded the SDK, do you already have a Reader-enabling license and key from Adobe? Not sure how you can just download the SDK and make a Reader plug-in without all this extra work?  

Translate
li0D4CAuthor
Known Participant
Dec 15, 2020 3:01 AM UTC

Enable protected mode, it is fine now.

 

Translate
li0D4CAuthor
Known Participant
Dec 18, 2020 1:11 AM UTC

I want to know whether it must be protected mode, if I need to use sandbox and broker.exe.

Translate
Legend
Nov 26, 2020 11:10 AM UTC

Look under Reader Preferences, Security (enhanced). Are you running with "Enable Protected Mode At Startup" switch ON?

Translate
li0D4CAuthor
Known Participant
Nov 26, 2020 11:36 AM UTC

I only downloaded Adobe Reader DC SDK, how can I enable "Enable Protected Mode at Startup"? It is inside in SDK?

Translate