2010-02-27 19:51:54 +00:00
|
|
|
#ifndef __CMD_PRECOMP_H
|
|
|
|
#define __CMD_PRECOMP_H
|
2007-08-02 06:59:36 +00:00
|
|
|
|
2006-02-16 23:23:37 +00:00
|
|
|
#ifdef _MSC_VER
|
|
|
|
#pragma warning ( disable : 4103 ) /* use #pragma pack to change alignment */
|
|
|
|
#undef _CRT_SECURE_NO_DEPRECATE
|
|
|
|
#define _CRT_SECURE_NO_DEPRECATE
|
2013-01-24 23:00:42 +00:00
|
|
|
#endif /*_MSC_VER */
|
2006-02-16 23:23:37 +00:00
|
|
|
|
2017-09-30 21:37:34 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
2006-02-16 23:23:37 +00:00
|
|
|
#include <stdlib.h>
|
2007-08-01 10:17:13 +00:00
|
|
|
#include <malloc.h>
|
2017-09-30 21:37:34 +00:00
|
|
|
#include <tchar.h>
|
2013-01-24 23:00:42 +00:00
|
|
|
|
2006-02-16 23:23:37 +00:00
|
|
|
#define WIN32_NO_STATUS
|
2013-01-24 23:00:42 +00:00
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
2017-09-30 21:37:34 +00:00
|
|
|
#include <winnls.h>
|
|
|
|
#include <winreg.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <wincon.h>
|
2006-02-16 23:23:37 +00:00
|
|
|
#include <shellapi.h>
|
|
|
|
|
|
|
|
#define NTOS_MODE_USER
|
2011-08-13 23:21:06 +00:00
|
|
|
#include <ndk/rtlfuncs.h>
|
2006-02-16 23:23:37 +00:00
|
|
|
|
2018-05-20 17:57:43 +00:00
|
|
|
#include <strsafe.h>
|
|
|
|
|
2017-10-01 16:33:33 +00:00
|
|
|
#include <conutils.h>
|
|
|
|
|
2007-08-01 10:17:13 +00:00
|
|
|
#include "resource.h"
|
|
|
|
|
2006-02-16 23:23:37 +00:00
|
|
|
#include "cmd.h"
|
|
|
|
#include "config.h"
|
|
|
|
#include "batch.h"
|
|
|
|
|
2008-05-15 20:02:05 +00:00
|
|
|
#include <wine/debug.h>
|
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(cmd);
|
2024-07-08 19:25:30 +00:00
|
|
|
|
2008-05-15 20:29:50 +00:00
|
|
|
#ifdef UNICODE
|
|
|
|
#define debugstr_aw debugstr_w
|
|
|
|
#else
|
|
|
|
#define debugstr_aw debugstr_a
|
|
|
|
#endif
|
2010-02-27 19:51:54 +00:00
|
|
|
|
2024-07-08 19:25:30 +00:00
|
|
|
#ifdef FEATURE_DYNAMIC_TRACE
|
|
|
|
|
|
|
|
extern BOOL g_bDynamicTrace;
|
|
|
|
void CmdTrace(INT type, LPCSTR file, INT line, LPCSTR func, LPCSTR fmt, ...);
|
|
|
|
|
|
|
|
#undef FIXME
|
|
|
|
#define FIXME(fmt, ...) \
|
|
|
|
CmdTrace(__WINE_DBCL_FIXME, __FILE__, __LINE__, __FUNCTION__, fmt, ## __VA_ARGS__)
|
|
|
|
|
|
|
|
#undef ERR
|
|
|
|
#define ERR(fmt, ...) \
|
|
|
|
CmdTrace(__WINE_DBCL_ERR, __FILE__, __LINE__, __FUNCTION__, fmt, ## __VA_ARGS__)
|
|
|
|
|
|
|
|
#undef WARN
|
|
|
|
#define WARN(fmt, ...) \
|
|
|
|
CmdTrace(__WINE_DBCL_WARN, __FILE__, __LINE__, __FUNCTION__, fmt, ## __VA_ARGS__)
|
|
|
|
|
|
|
|
#undef TRACE
|
|
|
|
#define TRACE(fmt, ...) \
|
|
|
|
CmdTrace(__WINE_DBCL_TRACE, __FILE__, __LINE__, __FUNCTION__, fmt, ## __VA_ARGS__)
|
|
|
|
|
|
|
|
#endif /* def FEATURE_DYNAMIC_TRACE */
|
|
|
|
|
2010-02-27 19:51:54 +00:00
|
|
|
#endif /* __CMD_PRECOMP_H */
|