| Author |
Message |
Mark
Guest
|
Posted:
Thu Sep 23, 2004 2:19 am Post subject:
Presentation Context error code -2147352565 |
|
|
In my authentication plugin, I can read the user's IP
address from the user context using getStringValue and
getLongValue, but when I try to get values from the
presentation context, it returns code -2147352565.
How do I find out what this code means?
Thanks
|
|
| Back to top |
|
 |
The March Hare [MVP]
Guest
|
Posted:
Thu Sep 23, 2004 2:28 am Post subject:
Re: Presentation Context error code -2147352565 |
|
|
On Wed, 22 Sep 2004 15:19:07 -0700, Mark wrote:
| Quote: | In my authentication plugin, I can read the user's IP
address from the user context using getStringValue and
getLongValue, but when I try to get values from the
presentation context, it returns code -2147352565.
How do I find out what this code means?
|
You first convert it to hex and then use Google
http://groups.google.com/groups?q=0x8002000b&hl=en&lr=&ie=UTF-8&c2coff=1&safe=off&sa=N&tab=wg
Or the DirectX SDK Error lookup tool:
HRESULT: 0x8002000b (2147614731)
Name: DISP_E_BADINDEX
Description: n/a
Severity code: Failed
Facility Code: FACILITY_DISPATCH (2)
Error Code: 0x000b (11) |
|
| Back to top |
|
 |
Mark
Guest
|
Posted:
Wed Sep 29, 2004 1:43 am Post subject:
Re: Presentation Context error code -2147352565 |
|
|
Win Media 9, AuthPlugin in C++, following SDK example,
I can get info from the user context, but not the
presentation or command context. Any idea what I am
doing wrong?
Thanks, mark
Code:
HRESULT CAuthMain::OnAuthorizeConnect(
IWMSContext *pUserCtx,
IWMSContext *pPresentationCtx,
IWMSCommandContext *pCommandCtx )
{
HRESULT hr = S_OK;
LPWSTR wstrIP =NULL;
// The next call returns hr = 0 and the valid IP
hr = pUserCtx->GetStringValue(
WMS_USER_IP_ADDRESS_STRING,
WMS_USER_IP_ADDRESS_STRING_ID,
&wstrIP,
0 );
long userIP;
// The next call returns hr = 0 and the valid IP
hr = pUserCtx->GetLongValue(
WMS_USER_IP_ADDRESS,
WMS_USER_IP_ADDRESS_ID,
&userIP,
0 );
LPWSTR pURL = NULL;
// The next call returns hr = 8002000b
hr = pPresentationCtx->GetStringValue(
WMS_PRESENT_ORIGINAL_REQUEST_NAME,
WMS_PRESENT_ORIGINAL_REQUEST_NAME_ID,
&pURL,
WMS_CONTEXT_GET_PROPERTY_STRING_BY_REFERENCE );
long duration;
// The next call returns hr = 8002000b
hr = pPresentationCtx->GetLongValue(
WMS_PRESENT_DURATION_LO,
WMS_PRESENT_DURATION_LO_ID,
&duration,
0 );
IWMSContext *pCtx;
// The next call returns hr = 0
hr = pCommandCtx->GetCommandRequest (&pCtx);
LPWSTR pCURL = NULL;
// The next call returns hr = 8002000b
hr = pCtx->GetStringValue(
WMS_COMMAND_CONTEXT_DOWNLOAD_URL,
WMS_COMMAND_CONTEXT_DOWNLOAD_URL_ID,
&pCURL,
0 );
| Quote: | -----Original Message-----
On Wed, 22 Sep 2004 15:19:07 -0700, Mark wrote:
In my authentication plugin, I can read the user's IP
address from the user context using getStringValue and
getLongValue, but when I try to get values from the
presentation context, it returns code -2147352565.
How do I find out what this code means?
You first convert it to hex and then use Google
http://groups.google.com/groups?
q=0x8002000b&hl=en&lr=&ie=UTF- |
8&c2coff=1&safe=off&sa=N&tab=wg
| Quote: |
Or the DirectX SDK Error lookup tool:
HRESULT: 0x8002000b (2147614731)
Name: DISP_E_BADINDEX
Description: n/a
Severity code: Failed
Facility Code: FACILITY_DISPATCH (2)
Error Code: 0x000b (11)
.
|
|
|
| Back to top |
|
 |
The March Hare [MVP]
Guest
|
Posted:
Wed Sep 29, 2004 2:12 am Post subject:
Re: Presentation Context error code -2147352565 |
|
|
On Tue, 28 Sep 2004 14:43:07 -0700, Mark wrote:
| Quote: | I can get info from the user context, but not the
presentation or command context. Any idea what I am
doing wrong?
|
DISP_E_BADINDEX 0x8002000B The property specified by the pstrName parameter
could not be found.
It appears that this isn't a valid request. I see nothing in the docs that
say what is supposed to be available.
Did you use:
IWMSContext::GetValueCount
and
IWMSContext::GetIndexedValue
to see what is available? |
|
| Back to top |
|
 |
Guest
|
Posted:
Mon Oct 11, 2004 6:10 pm Post subject:
Re: Presentation Context error code -2147352565 |
|
|
GetValueCount returns 6.
calling GetIndexedValue with lIndex = 0,1,...,5
HRESULT hr = S_OK;
long lIndex = 0;
long *plNameHint;
long *pdwResultOptions = 0;
VARIANT *pValue;
LPWSTR *pstrName = NULL;
hr = pUserCtx->GetIndexedValue( lIndex, pstrName,
plNameHint, pValue, pdwResultOptions, 0 );
hr = 80020008, 'Bad variable type'
I can not find any documentation on GetIndexedValue, am I
calling it incorrectly?
Thanks,
Mark
| Quote: | -----Original Message-----
On Tue, 28 Sep 2004 14:43:07 -0700, Mark wrote:
I can get info from the user context, but not the
presentation or command context. Any idea what I am
doing wrong?
DISP_E_BADINDEX 0x8002000B The property specified by the
pstrName parameter
could not be found.
It appears that this isn't a valid request. I see
nothing in the docs that
say what is supposed to be available.
Did you use:
IWMSContext::GetValueCount
and
IWMSContext::GetIndexedValue
to see what is available?
.
|
|
|
| Back to top |
|
 |
|
|
|
|