source: trunk/dll/misc.h

Last change on this file was 1840, checked in by Steven Levine, 10 years ago

Expose GetTidForThread and use

  • Property svn:eolstyle set to native
  • Property svn:keywords set to Id
File size: 3.8 KB
RevLine 
[1077]1
2/***********************************************************************
3
[1198]4 $Id: misc.h 1840 2015-08-12 05:06:11Z stevenhl $
[1077]5
6 Misc utility functions
7
8 Copyright (c) 1993-98 M. Kimes
[1840]9 Copyright (c) 2008, 2015 Steven H. Levine
[1077]10
11 17 Jul 08 SHL Baseline
[1400]12 08 Mar 09 GKY Add WriteDetailsSwitches and use LoadDetailsSwitches to replace in line code
[1444]13 22 Jul 09 GKY Check if drives support EAs add driveflag for this
14 22 Jul 09 GKY Allow .LONGNAME to be displayed for FAT drives.
[1840]15 09 Aug 15 SHL Expose GetTidForThread
[1077]16
17***********************************************************************/
18
19#if !defined(MISC_H)
20#define MISC_H
21
22#if !defined(OS2_INCLUDED)
23#include <os2.h>
24#endif
25
[1225]26#include "dircnrs.h" // typedef for DETAILS_SETTINGS
27
[1840]28UINT GetTidForThread(VOID);
29
[1077]30#ifdef FORTIFY
[1840]31UINT GetTidForWindow(HWND hwnd);
[1077]32#endif
33
[1394]34SHORT AddToListboxBottom(HWND hwnd, PCSZ str);
35BOOL AdjustCnrColRO(HWND hwndCnr, PCSZ title, BOOL readonly, BOOL toggle);
36BOOL AdjustCnrColVis(HWND hwndCnr, PCSZ title, BOOL visible, BOOL toggle);
[1444]37VOID AdjustCnrColsForFSType(HWND hwndCnr, PCSZ directory, DETAILS_SETTINGS *pds, BOOL compare);
38VOID AdjustCnrColsForPref(HWND hwndCnr, PCSZ directory, DETAILS_SETTINGS *pds,
[1159]39 BOOL compare);
40VOID AdjustDetailsSwitches(HWND hwnd, HWND hwndMenu, USHORT cmd,
[1394]41 PCSZ directory, PCSZ keyroot, DETAILS_SETTINGS * pds,
[1159]42 BOOL compare);
43void BoxWindow(HWND hwnd, HPS hps, LONG color);
[1182]44void Broadcast(HAB hab, HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
[1394]45INT CheckDriveSpaceAvail(PCSZ pTargetPath, ULONGLONG ullSpaceNeeded,
46 ULONGLONG ullFreeSpaceWhenComplete);
[1182]47HWND CheckMenu(HWND hwnd, HWND * hwndMenu, USHORT id);
[1159]48MRESULT CnrDirectEdit(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
[1182]49PMINIRECORDCORE CurrentRecord(HWND hwndCnr);
50void DrawTargetEmphasis(HWND hwnd, BOOL on);
[1159]51void EmphasizeButton(HWND hwnd, BOOL on);
[1394]52INT ExecFile(HWND hwnd, PCSZ filename);
[1159]53HWND FindDirCnr(HWND hwndParent);
[1394]54VOID FixSwitchList(HWND hwnd, PCSZ text);
[1182]55char *GetCmdSpec(BOOL dos);
[1159]56VOID HeapThread(VOID * dummy);
[1182]57BOOL IsFm2Window(HWND hwnd, BOOL chkTid);
[1409]58VOID LoadDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS *pds, BOOL state);
59VOID WriteDetailsSwitches(PCSZ keyroot, DETAILS_SETTINGS *pds, BOOL state);
60VOID RemoveCnrSwitches(PCSZ keyroot, PCSZ statename);
[1410]61VOID RemoveOldCnrSwitches(PCSZ szPrefix, ULONG ulTemp);
[1394]62VOID LoadLibPath(PSZ str, LONG len);
[1159]63VOID OpenEdit(HWND hwnd);
[1182]64VOID PaintRecessedWindow(HWND hwnd, HPS hps, BOOL outtie, BOOL dbl);
[1159]65void PaintSTextWindow(HWND hwnd, HPS hps);
[1182]66VOID PortholeInit(HWND hwndNew, MPARAM mp1, MPARAM mp2);
67BOOL PostMsg(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2);
[1159]68VOID QuickPopup(HWND hwnd, DIRCNRDATA * dcd, HWND hwndMenu, USHORT id);
69void SayFilter(HWND hwnd, MASK * mask, BOOL archive);
70void SaySort(HWND hwnd, INT sortflags, BOOL archive);
71void SayView(HWND hwnd, ULONG flWindowAttr);
72BOOL SetCnrCols(HWND hwndCnr, BOOL compare);
73VOID SetConditionalCascade(HWND hwndMenu, USHORT id, USHORT def);
74VOID SetDetailsSwitches(HWND hwnd, DETAILS_SETTINGS * pds);
75BOOL SetMenuCheck(HWND hwndMenu, USHORT id, BOOL * bool, BOOL toggle,
[1394]76 PCSZ savename);
[1182]77VOID SetShiftState(VOID);
[1159]78VOID SetSortChecks(HWND hwndMenu, INT sortflags);
79VOID SetSysMenu(HWND hwndSysMenu);
80void SetViewMenu(HWND hwndMenu, ULONG flWindowAttr);
[1182]81VOID SetupCommandMenu(HWND hwndMenu, HWND hwndCnr);
82void SetupWinList(HWND hwndMenu, HWND hwndTop, HWND hwndFrame);
[1159]83BOOL SwitchCommand(HWND hwndMenu, USHORT cmd);
[1394]84BOOL ViewHelp(PCSZ filename);
[1159]85VOID disable_menuitem(HWND hwndMenu, USHORT id, BOOL enable);
86
[1210]87// Data declarations
88extern HWND CollectorDirMenu;
89extern HWND CollectorFileMenu;
90extern HWND DirMenu;
91extern HWND FileMenu;
92extern HWND TreeMenu;
93extern BOOL fDefaultDeletePerm;
94extern BOOL fWorkPlace;
95extern ULONG numswitches;
96extern HSWITCH switches[499];
97
[1077]98#endif // MISC_H
Note: See TracBrowser for help on using the repository browser.