windows-nt/Source/XPSP1/NT/inetsrv/iis/svcs/cmp/asp/debug.cpp

29 lines
742 B
C++
Raw Normal View History

2020-09-26 03:20:57 -05:00
/*===================================================================
Microsoft Denali
Microsoft Confidential.
Copyright 1996 Microsoft Corporation. All Rights Reserved.
Component: Debug tools
File: debug.cpp
This file contains the routines for helping with debugging.
===================================================================*/
#include "denpre.h"
#pragma hdrstop
void _ASSERT_IMPERSONATING(void)
{
HANDLE _token;
DWORD _err;
if( OpenThreadToken( GetCurrentThread(), TOKEN_ALL_ACCESS, TRUE, &_token) )
CloseHandle( _token );
else
{
_err = GetLastError();
ASSERT( _err != ERROR_NO_TOKEN );
}
}