class axl::sys::win::AccessToken

#include <axl_sys_win_AccessToken.h>

class AccessToken: public axl::sl::Handle
{
public:
    // methods

    bool
    openProcessToken(
        handle_t process,
        dword_t access = TOKEN_ALL_ACCESS
        );

    bool
    openProcessToken(dword_t access = TOKEN_ALL_ACCESS);

    bool
    openThreadToken(
        handle_t thread,
        dword_t access = TOKEN_ALL_ACCESS,
        bool openAsSelf = false
        );

    bool
    openThreadToken(
        dword_t access = TOKEN_ALL_ACCESS,
        bool openAsSelf = false
        );

    bool
    getTokenInformation(
        TOKEN_INFORMATION_CLASS infoClass,
        void* p,
        dword_t size,
        dword_t* actualSize
        );

    bool
    getTokenInformation(
        TOKEN_INFORMATION_CLASS infoClass,
        sl::Array<char>* buffer
        );

    sl::Array<char>
    getTokenInformation(TOKEN_INFORMATION_CLASS infoClass);

    bool
    setTokenInformation(
        TOKEN_INFORMATION_CLASS infoClass,
        void* p,
        dword_t size
        );

    bool
    isMemberOf(PSID group);
};

Inherited Members

public:
    // typedefs

    typedef T H;

    // methods

    operator T() const;

    T
    operator->() const;

    const Handle&
    operator=(T h);

    bool
    isOpen() const;

    void
    close();

    void
    attach(T h);

    T
    detach();

    T*
    p();

    static
    T
    getInvalidHandle();