i have a devcert with full capabilities. one of the APIs i use requires
SwEvent capability.
i checked and confirmed from www.symbiansigned.com that my devcert includes
that capability.
however, i am still getting errors in calling the API. the API is for
capturing hotkeys. i keep getting KErrPermissionDenied.
?????
Hi
Its possible your process is trying to load a DLL which does not have the
capability of your process. If you really have ALL capabilities that is
likely - most Symbian DLLs have capability ALL-Tcb, so if your process has
Tcb, then it won't be able to load very much.
There is an easy way to find out.... follow the instructions in
FAQ-1344 How do I Enable Platform Security Diagnostics on the Symbian OS
Emulator?
http://www3.symbian.com/faq.nsf/AllByDate/138E15D7FA8E656D802570C0001BDB3B?OpenDocument
Regards
H
"droll" <[email protected]> wrote in message
news:[email protected]...
> i have a devcert with full capabilities. one of the APIs i use requires
> SwEvent capability.
>
> i checked and confirmed from www.symbiansigned.com that my devcert
includes
> that capability.
>
> however, i am still getting errors in calling the API. the API is for
> capturing hotkeys. i keep getting KErrPermissionDenied.
>
> ?????
>
>
i did try this. i disabled platform security on the emulator and my
application works fine.
so you reckon the problem is the DLL i'm trying to load?
so there's no way for me to use capturekey from RWindowGroup()? oh my...
"Hamish Willee" <[email protected]> wrote in message
news:[email protected]...
> Hi
> Its possible your process is trying to load a DLL which does not have the
> capability of your process. If you really have ALL capabilities that is
> likely - most Symbian DLLs have capability ALL-Tcb, so if your process has
> Tcb, then it won't be able to load very much.
>
> There is an easy way to find out.... follow the instructions in
> FAQ-1344 How do I Enable Platform Security Diagnostics on the Symbian OS
> Emulator?
> http://www3.symbian.com/faq.nsf/AllByDate/138E15D7FA8E656D802570C0001BDB3B?OpenDocument
>
> Regards
> H
>
> "droll" <[email protected]> wrote in message
> news:[email protected]...[color=green]
>> i have a devcert with full capabilities. one of the APIs i use requires
>> SwEvent capability.
>>
>> i checked and confirmed from www.symbiansigned.com that my devcert
> includes
>> that capability.
>>
>> however, i am still getting errors in calling the API. the API is for
>> capturing hotkeys. i keep getting KErrPermissionDenied.
>>
>> ?????
>>
>>
>
>[/color]
btw, i've read and modified my MMP file for CAPABILITY keyword. however, i
don't know where to get the vendorid. i've simply put it as 1 since setting
it to 0 means it is not required for security checks (which i assume means
my exe won't have any privileges).
help??
"droll" <[email protected]> wrote in message
news:[email protected]...
>i did try this. i disabled platform security on the emulator and my
>application works fine.
>
> so you reckon the problem is the DLL i'm trying to load?
>
> so there's no way for me to use capturekey from RWindowGroup()? oh my...
>
> "Hamish Willee" <[email protected]> wrote in message
> news:[email protected]...[color=green]
>> Hi
>> Its possible your process is trying to load a DLL which does not have the
>> capability of your process. If you really have ALL capabilities that is
>> likely - most Symbian DLLs have capability ALL-Tcb, so if your process
>> has
>> Tcb, then it won't be able to load very much.
>>
>> There is an easy way to find out.... follow the instructions in
>> FAQ-1344 How do I Enable Platform Security Diagnostics on the Symbian
>> OS
>> Emulator?
>> http://www3.symbian.com/faq.nsf/AllByDate/138E15D7FA8E656D802570C0001BDB3B?OpenDocument
>>
>> Regards
>> H
>>
>> "droll" <[email protected]> wrote in message
>> news:[email protected]...[color=darkred]
>>> i have a devcert with full capabilities. one of the APIs i use requires
>>> SwEvent capability.
>>>
>>> i checked and confirmed from www.symbiansigned.com that my devcert
>> includes
>>> that capability.
>>>
>>> however, i am still getting errors in calling the API. the API is for
>>> capturing hotkeys. i keep getting KErrPermissionDenied.
>>>
>>> ?????
>>>
>>>
>>
>>[/color]
>
>[/color]
Check the emulator output file (%temp%\epocwind.out) for any lines
containing "PlatSec" - this should tell you where there are capability
problems. Add the listed problem capabilities back into your MMP file
(don't use ALL - as Hamish says, it will fail to load many Symbian DLLs)
Mark
Symbian Developer Network
found the problem. my UID3 was in the wrong range.
"Mark Shackman" <-> wrote in message
news:[email protected]...
> Check the emulator output file (%temp%\epocwind.out) for any lines
> containing "PlatSec" - this should tell you where there are capability
> problems. Add the listed problem capabilities back into your MMP file
> (don't use ALL - as Hamish says, it will fail to load many Symbian DLLs)
>
> Mark
> Symbian Developer Network
>
>
>
>