VirtualBox

Changeset 42067 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 9, 2012 5:49:58 PM (13 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
78996
Message:

Runtime: New variant for RTProcQueryUsername which allocates the required string

Location:
trunk/include/iprt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/iprt/mangling.h

    r41920 r42067  
    964964# define RTProcIsRunningByName                          RT_MANGLER(RTProcIsRunningByName)
    965965# define RTProcQueryUsername                            RT_MANGLER(RTProcQueryUsername)
     966# define RTProcQueryUsernameA                           RT_MANGLER(RTProcQueryUsernameA)
    966967# define RTProcSelf                                     RT_MANGLER(RTProcSelf)
    967968# define RTProcSetPriority                              RT_MANGLER(RTProcSetPriority)
  • trunk/include/iprt/process.h

    r41919 r42067  
    379379                                    size_t *pcbUser);
    380380
     381/**
     382 * Query the username of the given process allocating the string for the username.
     383 *
     384 * @returns IPRT status code.
     385 * @param   hProcess     The process handle to query the username for.
     386 * @param   ppszUser     Where to store the pointer to the string containing
     387 *                       the username on success. Free with RTStrFree().
     388 */
     389RTR3DECL(int)   RTProcQueryUsernameA(RTPROCESS hProcess, char **ppszUser);
     390
    381391#endif /* IN_RING3 */
    382392
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette