[go: up one dir, main page]

Menu

[9d4c46]: / VirtuaWin.h  Maximize  Restore  History

Download this file

108 lines (92 with data), 4.1 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
//
// VirtuaWin - Virtual Desktop Manager (virtuawin.sourceforge.net)
// VirtuaWin.h - Main variable and function definitions.
//
// Copyright (c) 1999-2005 Johan Piculell
// Copyright (c) 2006-2021 VirtuaWin (VirtuaWin@home.se)
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
// USA.
//
#ifndef _VIRTUAWIN_H_
#define _VIRTUAWIN_H_
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include "Defines.h"
/* externally accessible variables */
extern HWND hWnd; // The handle to VirtuaWin
extern int screenLeft; // the screen dimensions, from VirtuaWin.h
extern int screenRight;
extern int screenTop;
extern int screenBottom;
extern int deskImageCount;
extern vwWindow *windowList; // list of managed windows
extern vwWindowBase *windowBaseList; // list of all windows
extern vwWindowRule *windowRuleList; // list for holding window rules
extern vwMenuItem *ctlMenuItemList; // List of module inserted control menu items
extern vwHotkey hotkeyList[vwHOTKEY_MAX]; // list for holding hotkeys
extern int curDisabledMod; // how many disabled modules we have
extern vwModule moduleList[MAXMODULES]; // list that holds modules
extern vwDisModule disabledModules[MAXMODULES*2]; // list with disabled modules
extern HWND ichangeHWnd; // handle to module hangling desktop changes
/* Windows functions to use to get a programs file name */
extern vwGETMODULEFILENAMEEX vwGetModuleFileNameEx ;
extern vwGETPROCESSIMAGENAME vwGetProcessImageName ;
/* logging defines & macros */
extern vwUByte vwLogFlag ;
extern FILE *vwLogFile ;
#define vwLogEnabled() (vwLogFile != NULL)
#define vwLogBasic(a) (vwLogEnabled() ? vwLogPrint a :0)
#ifdef vwLOG_VERBOSE
#define vwLogVerbose(a) (vwLogEnabled() ? vwLogPrint a :0)
#else
#define vwLogVerbose(a)
#endif
/* Prototypes from VirtuaWin.c */
void vwLogPrint(const TCHAR *format, ...) ;
void vwMutexLock(void) ;
void vwMutexRelease(void) ;
HWND vwFindWindow(TCHAR *className, TCHAR *windowText, int printOut) ;
void enableMouse(int turnOn) ;
void setMouseKey(void) ;
void vwHookSetup(void) ;
void vwIconLoad(void) ;
void vwIconSet(int deskNumber, int hungCount) ;
void vwTaskbarHandleGet(void) ;
void vwHotkeyRegister(int warnAll) ;
void vwHotkeyUnregister(int unregAll) ;
void getWorkArea(void) ;
int windowListUpdate(void) ;
void vwWindowRuleReapply(void) ;
int disableDeskImage(int count) ;
int createDeskImage(int deskNo, int createDefault) ;
void setForegroundWin(HWND theWin, int makeTop) ;
int assignWindow(HWND theWin, int theDesk, vwUByte follow, vwUByte force, vwUByte setActive);
int gotoDesk(int theDesk, vwUByte force);
void showHelp(HWND aHWnd, TCHAR *topic);
/* Prototypes from SetupDialog.c */
void createSetupDialog(HINSTANCE theHinst, HWND theHwndOwner) ;
void initDesktopProperties(void) ;
void storeDesktopProperties(void) ;
/* Prototypes from WinRuleDialog.c */
void createWindowRuleDialog(HINSTANCE theHinst, HWND theHwndOwner, vwWindowRule *wtype, HWND theWin) ;
/* Prototypes from ModuleRoutines.c */
void vwModulesLoad(void);
void vwModulesSendMessage(UINT Msg, WPARAM wParam, LPARAM lParam);
void vwModulesPostMessage(UINT Msg, WPARAM wParam, LPARAM lParam);
void vwModuleLoad(int moduleIdx, TCHAR *path);
void vwModuleUnLoad();
#endif