How to PR_LoadLibray
shellon <[email protected]>
| Newsgroups | gmane.comp.mozilla.devel.nspr |
|---|---|
| Organization | http://groups.google.com |
| Message-ID | <[email protected]> |
Hi all:
I want to control system volume in the xpcom, after research, I
find PR_LoadLibrary or PR_LoadLibraryWithFlag can help me. So I write
a test code piece as following:
NS_IMETHODIMP VolumeController::Load(PRInt32 *_retval)
{
PRLibrary* lib = PR_LoadLibrary("USER32.dll");
PRErrorCode errCode;
if(lib == NULL)
errCode = PR_GetError();
*_retval = errCode;
return NS_OK;
}
when I run the program, the errCode is a -8108273..., How can I load
the library correctly? Could you give me a code snippit? Appriciate
your help!
_______________________________________________
dev-tech-nspr mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-nspr