--- mstools/samples/deb/debmisc.h 2018/08/09 18:20:39 1.1.1.1 +++ mstools/samples/deb/debmisc.h 2018/08/09 18:23:33 1.1.1.3 @@ -1,44 +1,51 @@ -// ************************************************************************ -// HEADER : DEBMisc.h -// PURPOSE : Miscellaneous support functions for the Debug Event Browser -// FUNCTIONS : -// CreateTextButtonBar() - create a text button bar -// OpenDebugee() - open a debugee application -// ChooseNewFont() - choose a new font -// ChooseNewBkColor() - choose a new background color -// CopyListBoxToClipboard() - copies a listbox into the clipboard -// ListBoxInsert() - insert a string into a listbox -// ListBoxPrintF() - printf for listboxes -// MakeDebugEventString() - creates standard event info string -// OrderFunc() - link list ordering function -// EnumProcessListFunc() - enumeration func for active processes -// GetPrivateProfileSettings() - gets stored profile settings -// WritePrivateProfileSettings() - stores default settings in profile -// UpdateMenuSettings() - update menu check marks -// SubclassWindow() - generic window subclass func -// WritePrivateProfileInt() - opposite of GetPrivateProfileInt() -// SendWmSizeMessage() - sends a WM_SIZE message with current size -// GetPathFromFullPathName() - extracts path from a pathname -// LongToCharUpper() - converts a long to upper-case string -// COMMENTS : -// ************************************************************************ - -//-- function prototypes -HWND CreateTextButtonBar( HWND, LPINT ); -BOOL OpenDebugee( LPPROCESS_INFORMATION, LPSTARTUPINFO ); -BOOL ChooseNewFont( HWND ); -BOOL ChooseNewBkColor( HWND ); -BOOL CopyListBoxToClipboard( HWND, LONG ); -LONG ListBoxInsert( HWND, LPLONG, LPCTSTR ); -LONG ListBoxPrintF( LPCTSTR, ... ); -BOOL MakeDebugEventString( LPTSTR, LPCTSTR, LPDEBUG_EVENT ); -int OrderFunc( PNODE, PNODE ); -BOOL CALLBACK EnumProcessListFunc( HWND, LPARAM ); -BOOL GetPrivateProfileSettings( LPCTSTR, LPCTSTR ); -BOOL WritePrivateProfileSettings( LPCTSTR, LPCTSTR ); -BOOL UpdateMenuSettings( VOID ); -WNDPROC SubclassWindow( HWND, WNDPROC ); -BOOL WritePrivateProfileInt( LPCTSTR, LPCTSTR, INT, LPCTSTR ); -BOOL SendWmSizeMessage( HWND ); -UINT GetPathFromFullPathName( LPCTSTR, LPTSTR, UINT ); -LPTSTR LongToCharUpper( long, LPTSTR, int ); + +/******************************************************************************\ +* This is a part of the Microsoft Source Code Samples. +* Copyright (C) 1993 Microsoft Corporation. +* All rights reserved. +* This source code is only intended as a supplement to +* Microsoft Development Tools and/or WinHelp documentation. +* See these sources for detailed information regarding the +* Microsoft samples programs. +\******************************************************************************/ + + +#ifndef DEBMISC_H + + #define DEBMISC_H + + #ifndef DEBDEBUG_H + #include "DEBDebug.H" + #endif + + #ifndef DEBMAIN_H + #include "DEBMain.H" + #endif + + //-- function prototypes + BOOL StartDebuggee( LPTSTR, HWND ); + BOOL AttachToDebuggee( DWORD, HWND ); + BOOL CALLBACK EnumProcessListFunc( HWND, LPARAM ); + BOOL GetDebuggeeFileName( LPTSTR, HWND ); + BOOL ChooseNewFont( HWND ); + BOOL ChooseNewBackColor( HWND ); + BOOL MakeCommonDebugEventString( LPTSTR, LPDEBUG_EVENT); + HWND CreateTextButtonBar( HWND, LPINT ); + HWND CreateIconWindow( HWND, LPCTSTR ); + BOOL GetPrivateProfileSettings( LPCTSTR, LPCTSTR, PPROFILE ); + BOOL WritePrivateProfileSettings( LPCTSTR, LPCTSTR, PPROFILE ); + BOOL WritePrivateProfileInt( LPCTSTR, LPCTSTR, INT, LPCTSTR ); + BOOL UpdateMenuSettings( HWND ); + BOOL OutOfMemoryMessageBox( HWND ); + BOOL MaxDebuggeesMessageBox( HWND ); + BOOL ErrorMessageBox( LPCTSTR, LPCTSTR, LPCTSTR, INT ); + WNDPROC SubclassWindow( HWND, WNDPROC ); + BOOL SendWmSizeMessage( HWND ); + UINT GetPathFromFullPathName( LPCTSTR, LPTSTR, UINT ); + BOOL CopyListBoxToClipboard( HWND, LONG ); + LONG ListBoxInsert( HWND, LPLONG, LPCTSTR ); + LONG ListBoxPrintF( HWND, LPCTSTR, ... ); + LPTSTR StringPrintF( LPTSTR, LPCTSTR, ... ); + BOOL StringAppendF( LPTSTR, LPCTSTR, ... ); + +#endif // DEBMISC_H