UDK 3.2.7 C/C++ API Reference
Functions
uno/current_context.h File Reference
#include <cppu/cppudllapi.h>
#include <rtl/ustring.h>

Go to the source code of this file.

Functions

CPPU_DLLPUBLIC sal_Bool uno_getCurrentContext (void **ppCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
 Gets the current task's context.
CPPU_DLLPUBLIC sal_Bool uno_setCurrentContext (void *pCurrentContext, rtl_uString *pEnvDcp, void *pEnvContext) SAL_THROW_EXTERN_C()
 Sets the current task's context.

Function Documentation

CPPU_DLLPUBLIC sal_Bool uno_getCurrentContext ( void **  ppCurrentContext,
rtl_uString *  pEnvDcp,
void *  pEnvContext 
)

Gets the current task's context.

Attention:
Don't spread the returned interface around to other threads. Every thread has its own current context.
Parameters:
ppCurrentContextinout param current context of type com.sun.star.uno.XCurrentContext
pEnvDcpdescriptor of returned interface's environment
pEnvContextcontext of returned interface's environment (commonly 0)
Returns:
true, if context ref was transferred (even if null ref)
CPPU_DLLPUBLIC sal_Bool uno_setCurrentContext ( void *  pCurrentContext,
rtl_uString *  pEnvDcp,
void *  pEnvContext 
)

Sets the current task's context.

Parameters:
pCurrentContextin param current context of type com.sun.star.uno.XCurrentContext
pEnvDcpdescriptor of interface's environment
pEnvContextcontext of interface's environment (commonly 0)
Returns:
true, if context ref was transferred (even if null ref)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines