Language

The Free and Open Productivity Suite
Released: Apache OpenOffice 4.1.10

API

SDK

Tips ‘n’ Tricks

Miscellaneous


Global Functions in Global Namespace C++
in Sourcefile process.h


rtl_getAppCommandArg
extern "C"
oslProcessError rtl_getAppCommandArg(
sal_uInt32 nArg,
rtl_uString * * strCommandArg );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO YES

Summary
Get the nArg-th command-line argument passed to the main-function of this process.
Description
This functions differs from osl_getCommandArg() in filtering any bootstrap values given by command args, that means that all arguments starting with "-env:" will be ignored by this function.
Parameters
nArg
The number of the argument to return.
    
strCommandArg
The string receives the nArg-th command-line argument.
    
Return
osl_Process_E_None or does not return.
See Also
osl_getCommandArg()
rtl_getCommandArgCount()

rtl_getAppCommandArgCount
extern "C"
sal_uInt32 rtl_getAppCommandArgCount();

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO YES

Summary
Returns the number of command line arguments at process start.
Description
This functions differs from osl_getCommandArg() in filtering any bootstrap values given by command args, that means that all arguments starting with "-env:" will be ignored by this function.
Return
the number of commandline arguments passed to the main-function of this process.
See Also
osl_getCommandArgCount()
rtl_getCommandArg()

rtl_getGlobalProcessId
extern "C"
void rtl_getGlobalProcessId(
sal_uInt8 * pTargetUUID );

virtual abstract const volatile template static inline C-linkage
NO NO NO NO NO NO NO YES

Summary
gets a 16-byte fixed size identifier which is guaranteed not to change during the current process.
Description
The current implementation creates a 16-byte uuid without using the ethernet address of system. Thus the identifier is different from identifiers created in other processes with a very probability.
Parameters
pTargetUUID
16 byte of memory
See Also
rtl_createUiid()

Top of Page

Apache Software Foundation

Copyright & License | Privacy | Contact Us | Donate | Thanks

Apache, OpenOffice, OpenOffice.org and the seagull logo are registered trademarks of The Apache Software Foundation. The Apache feather logo is a trademark of The Apache Software Foundation. Other names appearing on the site may be trademarks of their respective owners.