Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

28 lines
770 B

/*===================================================================
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 );
}
}