aboutsummaryrefslogtreecommitdiffhomepage
path: root/ext/detours/samples/tracebld/tracebld.h
diff options
context:
space:
mode:
authorAndrzej Janik <[email protected]>2021-01-03 17:52:14 +0100
committerAndrzej Janik <[email protected]>2021-01-03 17:52:14 +0100
commit77523940b39d522adc26b18f00c3373407523c55 (patch)
tree666a5541f635b56d1f56305767a09cab2ae48d81 /ext/detours/samples/tracebld/tracebld.h
parentae950163cd05f7a2205740af0acc6e427f0ffd92 (diff)
parentdabc40cb19bf4e297c32284d26c74adbd6775e49 (diff)
downloadZLUDA-77523940b39d522adc26b18f00c3373407523c55.tar.gz
ZLUDA-77523940b39d522adc26b18f00c3373407523c55.zip
Merge commit 'dabc40cb19bf4e297c32284d26c74adbd6775e49' as 'ext/detours'
Diffstat (limited to 'ext/detours/samples/tracebld/tracebld.h')
-rw-r--r--ext/detours/samples/tracebld/tracebld.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/ext/detours/samples/tracebld/tracebld.h b/ext/detours/samples/tracebld/tracebld.h
new file mode 100644
index 0000000..9a878af
--- /dev/null
+++ b/ext/detours/samples/tracebld/tracebld.h
@@ -0,0 +1,59 @@
+//////////////////////////////////////////////////////////////////////////////
+//
+// Detours Test Program (tracebld.h of tracebld.exe)
+//
+// Microsoft Research Detours Package
+//
+// Copyright (c) Microsoft Corporation. All rights reserved.
+//
+#pragma once
+#ifndef _TRACEBLD_H_
+#define _TRACEBLD_H_
+#include <stdarg.h>
+
+//////////////////////////////////////////////////////////////////////////////
+//
+//
+#define TBLOG_PIPE_NAMEA "\\\\.\\pipe\\tracebuild"
+#define TBLOG_PIPE_NAMEW L"\\\\.\\pipe\\tracebuild"
+#ifdef UNICODE
+#define TBLOG_PIPE_NAME TBLOG_PIPE_NAMEW
+#else
+#define TBLOG_PIPE_NAME TBLOG_PIPE_NAMEA
+#endif
+
+//////////////////////////////////////////////////////////////////////////////
+//
+typedef struct _TBLOG_MESSAGE
+{
+ DWORD nBytes;
+ CHAR szMessage[32764]; // 32768 - sizeof(nBytes)
+} TBLOG_MESSAGE, *PTBLOG_MESSAGE;
+
+typedef struct _TBLOG_PAYLOAD
+{
+ DWORD nParentProcessId;
+ DWORD nTraceProcessId;
+ DWORD nGeneology;
+ DWORD rGeneology[64];
+ WCHAR wzParents[256];
+ WCHAR wzStdin[256];
+ WCHAR wzStdout[256];
+ WCHAR wzStderr[256];
+ BOOL fStdoutAppend;
+ BOOL fStderrAppend;
+ WCHAR wzzDrop[1024]; // Like an environment: zero terminated strings with a last zero.
+ WCHAR wzzEnvironment[32768];
+} TBLOG_PAYLOAD, *PTBLOG_PAYLOAD;
+
+// Shared state payload guid.
+//
+const GUID s_guidTrace = {
+ 0xd8e2dc69, 0x3004, 0x453e,
+ {0x94, 0x15, 0x19, 0x0e, 0x79, 0xe8, 0x93, 0x52}
+};
+
+
+#endif // _TRACEBLD_H_
+//
+///////////////////////////////////////////////////////////////// End of File.