mirror of https://github.com/lianthony/NT4.0
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.
29 lines
631 B
29 lines
631 B
#ifndef __UTIL_H__
|
|
#define __UTIL_H__
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#define TSTR_DONT_CARE (-1)
|
|
|
|
FUNC_DECLSPEC TCHAR * TstrConcat (
|
|
TCHAR * pchBuffer, // The output buffer
|
|
INT cchMax, // Size of buffer or -1 (don't care)
|
|
const TCHAR * pchStr, ... // 1st string pointer
|
|
) ;
|
|
|
|
|
|
// Enxable all privileges on the current process token. This
|
|
// is used just prior to attempting to shut down the system.
|
|
|
|
FUNC_DECLSPEC LONG EnableAllPrivileges ( VOID ) ;
|
|
|
|
FUNC_DECLSPEC BOOL NetBiosNameInUse( TCHAR * pszName );
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|