User Defines | ||
User Defines allow you to get a better log information, showing you defined litterals instead of raw values, inside the Detailed View. For example, for CreateFile, we have the following |
||
- Requirements - Define file content / Syntax Requirements
To be supported, you have to : - 1) Add information into your monitoring file, the relative path of the file containing define values. (Path is relative to the "UserDefines" directory). a) for a parameter use the ":Define=" parameter option b) for return value, use the "|ReturnDefine=" option - 2) put define values in the specified file using a C/C++ syntax Examples : user32.dll|int MessageBoxA( HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType:Define=user32.dll/MessageBox_Type.txt) user32.dll|int MessageBoxExA( HWND hWnd, LPCSTR lpText, LPCSTR lpCaption, UINT uType:Define=user32.dll/MessageBox_Type.txt, WORD wLanguageId) user32.dll|int MessageBoxW( HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType:Define=user32.dll/MessageBox_Type.txt) |
||
kernel32.dll|HANDLE CreateFileW( LPCWSTR lpFileName, DWORD dwDesiredAccess:Define=kernel32.dll/CreateFile_DesiredAccess.txt, DWORD dwShareMode:Define=kernel32.dll/CreateFile_ShareMode.txt, LPSECURITY_ATTRIBUTES lpSecurityAttributes, DWORD dwCreationDisposition:Define=kernel32.dll/CreateFile_CreationDisposition.txt, DWORD dwFlagsAndAttributes:Define=kernel32.dll/CreateFile_FlagsAndAttributes.txt, HANDLE hTemplateFile)|FailureIfRetValue=0xFFFFFFFF |
||
For Return : user32.dll|int MessageBoxW( HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType) |ReturnDefine=user32.dll/MessageBox_Return.txt Mixing this option with the parameter :Define= option, we get for MessageBox : user32.dll|int MessageBoxW( HWND hWnd, LPCWSTR lpText, LPCWSTR lpCaption, UINT uType:Define=user32.dll/MessageBox_Type.txt) |ReturnDefine=user32.dll/MessageBox_Return.txt |
||
Define file content / Syntax : For defines content, the following operations are allowed : +, -, *, /, ||, &&, !, |, &, ^, ~, <<, >> , ? :, <,>, ==, <=,>= Example of content : For the MessageBox of upper example, the content of file "UserDefines\user32.dll\MessageBox_Type.txt" is the following
|