loading Windows DLL inside PPAPI

1,561 views
Skip to first unread message

Cary Ng

unread,
Aug 18, 2013, 10:43:27 PM8/18/13
to native-cli...@googlegroups.com
Hello,

We wrote our own Windows DLL (let's call it "abc.dll") that allows the caller to create/modify our systray icon with different images. We also wrote a Chrome Extension using NPAPI native library to hook into certain browser navigation events, and then dynamically load "abc.dll" and call its functions to modify our systray icon. 

Since NPAPI is no longer supported in Chrome for Windows 8, we are now trying to port our extension to use PPAPI instead. 

My question is, inside our PPAPI native library, are we allowed to load "abc.dll" (via LoadLibrary / GetProcAddress) so that we can modify our systray icon just like before? I read somewhere that PPAPI no longer allows direct access to the OS functions. If we are no longer allowed to load "abc.dll" in our PPAPI native library, can we make some Windows API calls directly from the PPAPI native library to be able to create/modify our systray icon?

Please let me know if my questions require further clarification.


Darin Fisher

unread,
Aug 18, 2013, 11:10:02 PM8/18/13
to Native-Client-Discuss

[re-sending from correct address]

On Aug 18, 2013 8:08 PM, "Darin Fisher" <da...@google.com> wrote:

The Chrome Extension system only supports PPAPI plugins that run within a Native Client sandbox. Within that sandbox, there is no way to interact with the systray or load DLLs. (There is support for loading other Native Client modules, but those are similarly restricted.)

I believe the Chrome Extension system provides some facilities for interacting with the systray (and similar UI on other OSes). You might explore if that satisfies your goal.

Regards,
-Darin

--
You received this message because you are subscribed to the Google Groups "Native-Client-Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to native-client-di...@googlegroups.com.
To post to this group, send email to native-cli...@googlegroups.com.
Visit this group at http://groups.google.com/group/native-client-discuss.
For more options, visit https://groups.google.com/groups/opt_out.

Pepper Huang

unread,
Mar 11, 2016, 1:33:28 AM3/11/16
to Native-Client-Discuss
HELLO Cary
 After two year,DO you gave solved this problem?
                            Thank you

Cary Ng於 2013年8月19日星期一 UTC+8上午10時43分27秒寫道:

Jimmy Devine

unread,
Sep 24, 2016, 12:15:25 AM9/24/16
to Native-Client-Discuss
+1  I'm looking for a way to load my windows VSTs which are dll files, if possible.
Reply all
Reply to author
Forward
0 new messages