windows-nt/Source/XPSP1/NT/com/ole32/dcomss/olescm/winsta.hxx
2020-09-26 16:20:57 +08:00

29 lines
745 B
C++

//+-------------------------------------------------------------------------
//
// Microsoft Windows
// Copyright (C) Microsoft Corporation, 1997.
//
// File: winsta.hxx
//
// Contents: winstation caching declarations
//
//--------------------------------------------------------------------------
// Lock for LogonUser cache.
extern CRITICAL_SECTION gTokenCS;
extern HRESULT RunAsGetTokenElem(HANDLE *pToken,
void **ppvElemHandle);
extern void RunAsSetWinstaDesktop(void *pvElemHandle, WCHAR *pwszWinstaDesktop);
extern void RunAsRelease(void *pvElemHandle);
extern void RunAsInvalidateAndRelease(void *pvElemHandle);
extern WCHAR *RunAsGetWinsta(void *pvElemHandle);
extern void InitRunAsCache();