├── 211INC ├── 211 │ └── COMMDLG.H ├── AFDFUNC.H ├── AFX.H ├── AFX.INL ├── AFXADV.H ├── AFXBLD_.H ├── AFXCMN.H ├── AFXCMN.INL ├── AFXCMN2.INL ├── AFXCOLL.H ├── AFXCOLL.INL ├── AFXCOM_.H ├── AFXCONV.H ├── AFXCTL.H ├── AFXCTL.INL ├── AFXCTL.RC ├── AFXCVIEW.H ├── AFXCVIEW.INL ├── AFXDAO.H ├── AFXDAO.INL ├── AFXDB.H ├── AFXDB.INL ├── AFXDB.RC ├── AFXDB_.H ├── AFXDD_.H ├── AFXDISP.H ├── AFXDLGS.H ├── AFXDLGS.INL ├── AFXDLLX.H ├── AFXDLL_.H ├── AFXDOCOB.H ├── AFXDTCTL.H ├── AFXDTCTL.INL ├── AFXEXT.H ├── AFXEXT.INL ├── AFXHELP.HM ├── AFXHTML.H ├── AFXHTML.INL ├── AFXINET.H ├── AFXINET.INL ├── AFXISAPI.H ├── AFXISAPI.INL ├── AFXISAPI.RC ├── AFXMSG_.H ├── AFXMT.H ├── AFXMT.INL ├── AFXODLGS.H ├── AFXOLE.H ├── AFXOLE.INL ├── AFXOLECL.RC ├── AFXOLEDB.H ├── AFXOLESV.RC ├── AFXPLEX_.H ├── AFXPRINT.RC ├── AFXPRIV.H ├── AFXPRIV2.H ├── AFXRES.RC ├── AFXRICH.H ├── AFXRICH.INL ├── AFXSOCK.H ├── AFXSOCK.INL ├── AFXSTAT_.H ├── AFXTEMPL.H ├── AFXTLS_.H ├── AFXVER_.H ├── AFXV_CFG.H ├── AFXV_CPU.H ├── AFXV_DLL.H ├── AFXV_W32.H ├── AFXWIN.H ├── AFXWIN1.INL ├── AFXWIN2.INL ├── AF_IRDA.H ├── ASSERT.H ├── ASSERT.H.bak2 ├── ASSERT.H.bk ├── ATAPI.H ├── AUDIDDSI.H ├── AUDIO.DEF ├── AUDIODDI.H ├── AUDIOMDD.H ├── BATTERY.H ├── BLDVER.H ├── BLDVER.TMP ├── CALIBRUI.H ├── CEDDK.DEF ├── CGUID.H ├── CMNMACRO.H ├── COBLIST.H ├── COGUID.H ├── COMMCTRL.H ├── COMMDLG.H ├── CONSOLE.H ├── CPL.H ├── CTYPE.H ├── DBGAPI.H ├── DBT.H ├── DCCOLE.H ├── DEFFILE.INC ├── DEMODISP.H ├── DISKIO.H ├── DISPDRVR.H ├── EMUL.H ├── ETHDBG.H ├── EXCPT.H ├── EXTFILE.H ├── FATUI.H ├── FLOAT.H ├── FLSTATUS.H ├── FSDMGR.H ├── FWENTRY.H ├── FWTBLIDX.H ├── GPE.H ├── GWEADD.H ├── HALETHER.H ├── HCD.H ├── HCDI.H ├── HSHELL.H ├── HTrace.h ├── HW16550.H ├── HWCOMAPI.H ├── IMM.H ├── IMMDEFS.H ├── IMMSTRUC.H ├── INITGUID.H ├── ISSPERR.H ├── KEYBD.H ├── KEYBDDR.DEF ├── KEYBDDR.H ├── KEYBDPDD.H ├── KFUNCS.H ├── KXARM.H ├── KXMIPS.H ├── KXPPC.H ├── KXSHX.H ├── LED_DRVR.H ├── LID.H ├── LIMITS.H ├── LINKLIST.H ├── LMCONS.H ├── MACROS.H ├── MAFDFUNC.H ├── MALLOC.H ├── MATH.H ├── MBCTYPE.H ├── MBSTRING.H ├── MCOMMCTR.H ├── MCOMMDLG.H ├── MCX.H ├── MEMORY.H ├── MENUCTRL.H ├── MEXTFILE.H ├── MFCSAMPS.MAK ├── MIMM.H ├── MKFUNCS.H ├── MMAUDIO.H ├── MMDDK.H ├── MMREG.H ├── MMSYSTEM.H ├── MNOTIFY.H ├── MSACM.H ├── MSACMDLG.H ├── MSHELLAP.H ├── MTAPI.H ├── MWINBASE.H ├── MWINDBAS.H ├── MWINGDI.H ├── MWINREG.H ├── MWINUSER.H ├── MWNETFUN.H ├── NETUI.H ├── NKINTR.H ├── NLED.H ├── NOTIFY.H ├── NTPE.H ├── OAIDL.H ├── OAIDL.IDL ├── OBJBASE.H ├── OBJERROR.H ├── OBJIDL.H ├── OBJIDL.IDL ├── OCIDL.H ├── OCIDL.IDL ├── OEMFW.H ├── OHCD.DEF ├── OHCDDDSI.H ├── OLE2.H ├── OLEAUTO.H ├── OLECTL.H ├── OLEIDL.H ├── OLEIDL.IDL ├── OOMUI.H ├── OWNER.H ├── PAFDFUNC.H ├── PCMCIA.DEF ├── PCMFUNCS.H ├── PCMTRACE.H ├── PCOMMCTR.H ├── PEGDPAR.H ├── PEGDSER.H ├── PEHDR.H ├── PIMM.H ├── PINGLIB.H ├── PKFUNCS.H ├── PNOTIFY.H ├── POPPACK.H ├── PPFS.H ├── PPRSHT.H ├── PPSH.H ├── PRAPI.H ├── PRAS.H ├── PRIVIID.H ├── PRNPORT.H ├── PROTECT.H ├── PRSHT.H ├── PSHPACK1.H ├── PSHPACK2.H ├── PSHPACK4.H ├── PSHPACK8.H ├── PSYSCALL.H ├── PTAPI.H ├── PWINBASE.H ├── PWINDBAS.H ├── PWINDOWX.H ├── PWINGDI.H ├── PWINREG.H ├── PWINUSER.H ├── Progs.h ├── RAS.H ├── RASERROR.H ├── RECOG.H ├── ROMLDR.H ├── RPC.H ├── RPCDCE.H ├── RPCNDR.H ├── SCHEDLOG.H ├── SCHNLSP.H ├── SECEXT.H ├── SECPKG.H ├── SECURITY.H ├── SER16550.H ├── SERDBG.H ├── SERHW.H ├── SERIAL.DEF ├── SETJMP.H ├── SHELLAPI.H ├── SIPAPI.H ├── SIPDEV.H ├── SOCKSERV.H ├── SPLAPI.H ├── SPSEAL.H ├── SSLSOCK.H ├── SSPI.H ├── STARTUI.H ├── STDARG.H ├── STDCOMP.H ├── STDIO.H ├── STDLIB.H ├── STRING.H ├── ServerCtrl.h ├── ServerCtrlDlg.h ├── SpyControl.h ├── SpyEngine.h ├── StdAfx.h ├── SysDecls.h ├── TAPI.H ├── TAPICOMN.H ├── TCHAR.H ├── TCHDDI.H ├── TCHDDSI.H ├── TERMCTRL.H ├── TLHELP32.H ├── TOOLHELP.H ├── TOUCH.DEF ├── TYPES.H ├── UNIMODEM.H ├── UNKNWN.H ├── UNKNWN.IDL ├── VGUI.h ├── VGUI_ActionSignal.h ├── VGUI_App.h ├── VGUI_Bitmap.h ├── VGUI_BitmapTGA.h ├── VGUI_Border.h ├── VGUI_BorderLayout.h ├── VGUI_BorderPair.h ├── VGUI_BuildGroup.h ├── VGUI_Button.h ├── VGUI_ButtonController.h ├── VGUI_ButtonGroup.h ├── VGUI_ChangeSignal.h ├── VGUI_CheckButton.h ├── VGUI_Color.h ├── VGUI_ComboKey.h ├── VGUI_ConfigWizard.h ├── VGUI_Cursor.h ├── VGUI_Dar.h ├── VGUI_DataInputStream.h ├── VGUI_Desktop.h ├── VGUI_DesktopIcon.h ├── VGUI_EditPanel.h ├── VGUI_EtchedBorder.h ├── VGUI_FileInputStream.h ├── VGUI_FlowLayout.h ├── VGUI_FocusChangeSignal.h ├── VGUI_FocusNavGroup.h ├── VGUI_Font.h ├── VGUI_Frame.h ├── VGUI_FrameSignal.h ├── VGUI_GridLayout.h ├── VGUI_HeaderPanel.h ├── VGUI_Image.h ├── VGUI_ImagePanel.h ├── VGUI_InputSignal.h ├── VGUI_InputStream.h ├── VGUI_IntChangeSignal.h ├── VGUI_IntLabel.h ├── VGUI_KeyCode.h ├── VGUI_Label.h ├── VGUI_Layout.h ├── VGUI_LayoutInfo.h ├── VGUI_LineBorder.h ├── VGUI_ListPanel.h ├── VGUI_LoweredBorder.h ├── VGUI_Menu.h ├── VGUI_MenuItem.h ├── VGUI_MenuSeparator.h ├── VGUI_MessageBox.h ├── VGUI_MiniApp.h ├── VGUI_MouseCode.h ├── VGUI_Panel.h ├── VGUI_PopupMenu.h ├── VGUI_ProgressBar.h ├── VGUI_RadioButton.h ├── VGUI_RaisedBorder.h ├── VGUI_RepaintSignal.h ├── VGUI_Scheme.h ├── VGUI_ScrollBar.h ├── VGUI_ScrollPanel.h ├── VGUI_Slider.h ├── VGUI_StackLayout.h ├── VGUI_String.h ├── VGUI_Surface.h ├── VGUI_SurfaceBase.h ├── VGUI_SurfaceGL.h ├── VGUI_TabPanel.h ├── VGUI_TablePanel.h ├── VGUI_TaskBar.h ├── VGUI_TextEntry.h ├── VGUI_TextGrid.h ├── VGUI_TextImage.h ├── VGUI_TextPanel.h ├── VGUI_TickSignal.h ├── VGUI_ToggleButton.h ├── VGUI_TreeFolder.h ├── VGUI_WizardPanel.h ├── WAVEDBG.H ├── WAVEDDSI.H ├── WAVEDEV.DEF ├── WAVEDEV.H ├── WCOMMCTL.H ├── WDM.H ├── WINBASE.H ├── WINCRERR.H ├── WINCRYPT.H ├── WINDBASE.H ├── WINDDI.H ├── WINDEF.H ├── WINDEV.H ├── WINDOWS.H ├── WINDOWSX.H ├── WINERROR.H ├── WINGDI.H ├── WININET.H ├── WINIOCTL.H ├── WINMGDI.H ├── WINNETWK.H ├── WINNLS.H ├── WINNT.H ├── WINREG.H ├── WINRES.H ├── WINSOCK.H ├── WINUSER.H ├── WTYPES.H ├── WTYPES.IDL ├── ZMOUSE.H ├── _defs.h ├── activity.h ├── activitymap.h ├── activscp.h ├── activscp.idl ├── advpub.h ├── afxres.h ├── altinetui.hxx ├── altinetuistruct.hxx ├── ammo.h ├── ammohistory.h ├── amstream.h ├── amvideo.h ├── animation.h ├── assert1.h ├── austream.h ├── avifmt.h ├── basemonster.h ├── beamdef.h ├── bsp5.h ├── bspfile.h ├── camera.h ├── cbase.h ├── cdll_dll.h ├── cdll_int.h ├── ceconfig.h ├── ceddcdrm.h ├── ceddcdvd.h ├── ceddstor.h ├── chanmgr.h ├── chanmgr.idl ├── cl_dll.h ├── cl_entity.h ├── cl_util.h ├── client.h ├── cmdlib.h ├── com_weapons.h ├── combase.h ├── comcat.h ├── comcat.idl ├── con_nprint.h ├── conproc.h ├── const.h ├── control.h ├── crc.h ├── csg.h ├── custom.h ├── customentity.h ├── cvardef.h ├── d3d.h ├── d3dcaps.h ├── d3dtypes.h ├── d3dvec.inl ├── ddraw.h ├── ddstream.h ├── debugmemlib.h ├── decals.h ├── dedicated.h ├── defaultai.h ├── demo.h ├── demo_api.h ├── devcas.h ├── dinput.h ├── dispex.h ├── dispex.idl ├── dlight.h ├── dll_state.h ├── dls1.h ├── dls2.h ├── dmdls.h ├── dmerror.h ├── dmksctrl.h ├── dmusbuff.h ├── dmusicc.h ├── dmusicf.h ├── dmusici.h ├── dmusprop.h ├── docobj.h ├── docobj.idl ├── doors.h ├── dplay.h ├── dplobby.h ├── dsound.h ├── dtags.h ├── dtrace.h ├── edict.h ├── effects.h ├── eiface.h ├── engine_launcher_api.h ├── enginecallback.h ├── entity_state.h ├── entity_types.h ├── ev_hldm.h ├── evcode.h ├── event_api.h ├── event_args.h ├── event_flags.h ├── eventscripts.h ├── exdisp.h ├── exdispid.h ├── exefuncs.h ├── explode.h ├── exports.h ├── extdll.h ├── floatmathlib.h ├── flyingmonster.h ├── func_break.h ├── game.h ├── gamerules.h ├── gnu_assert.h ├── health.h ├── hlguids.h ├── hliface.h ├── hliface.idl ├── hlink.h ├── hlink.idl ├── hornet.h ├── htmlguid.h ├── hud.h ├── hud_iface.h ├── hud_servers.h ├── hud_servers_priv.h ├── idispids.h ├── ieceui.h ├── ieceui_i.c ├── iimgctx.h ├── in_buttons.h ├── in_defs.h ├── inetreg.h ├── inetsdk.h ├── inetsdk.idl ├── intshcut.h ├── isguids.h ├── items.h ├── kat4cc.h ├── kbutton.h ├── keydefs.h ├── ksuuids.h ├── lbmlib.h ├── lcd.h ├── lgun.h ├── light.h ├── mapledev.h ├── maplusag.h ├── maprules.h ├── maptimer.h ├── mathlib.h ├── md5.h ├── mdlviewer.h ├── mimeinfo.h ├── mimeinfo.idl ├── mlang.h ├── mlang.idl ├── mmstream.h ├── monsterevent.h ├── monsters.h ├── movie.h ├── mshtmcid.h ├── mshtmdid.h ├── mshtmhst.h ├── mshtmhst.idl ├── mshtml.h ├── mshtml.idl ├── msxml.h ├── msxml.idl ├── msxmldid.h ├── net_api.h ├── netadr.h ├── netinfo.h ├── new_assert.h ├── nodes.h ├── objsafe.h ├── objsafe.idl ├── ocmm.h ├── ocmm.idl ├── parsemsg.h ├── particledef.h ├── perhist.h ├── perhist.idl ├── perstore.h ├── plane.h ├── platutil.h ├── player.h ├── pm_debug.h ├── pm_defs.h ├── pm_info.h ├── pm_materials.h ├── pm_movevars.h ├── pm_shared.h ├── pmtrace.h ├── polylib.h ├── procinfo.h ├── progdefs.h ├── propbag2.h ├── propbag2.idl ├── qfont.h ├── qlumpy.h ├── qrad.h ├── r_efx.h ├── ratings.h ├── ref_params.h ├── resource.h ├── saverestore.h ├── schedule.h ├── screenfade.h ├── scriplib.h ├── scripted.h ├── scriptevent.h ├── scrptids.h ├── segagdrm.h ├── servprov.h ├── servprov.idl ├── shake.h ├── shintr.h ├── shlguid.h ├── shlobj.h ├── shlwapi.h ├── shosintr.h ├── shsgintr.h ├── simpdata.h ├── simpdata.idl ├── sip.h ├── skill.h ├── smedefs.h ├── smexprc.h ├── soundent.h ├── spectator.h ├── spritegn.h ├── squadmonster.h ├── strig.h ├── strmif.h ├── studio.h ├── studio_event.h ├── studiomdl.h ├── subsmgr.h ├── subsmgr.idl ├── sys_ded.h ├── talkmonster.h ├── tankanji.h ├── teamplay_gamerules.h ├── tf_defs.h ├── threads.h ├── time_ce.h ├── timec.h ├── timer.h ├── tlhelp32.h.bk ├── toolhelp_ce.h ├── trains.h ├── triangleapi.h ├── trilib.h ├── uastrfnc.h ├── uiresource.h ├── urlhist.h ├── urlhist.idl ├── urlmon.h ├── urlmon.idl ├── usercmd.h ├── util.h ├── util_vector.h ├── uuids.h ├── vector.h ├── vfwmsgs.h ├── vgui_ConsolePanel.h ├── vgui_ControlConfigPanel.h ├── vgui_SchemeManager.h ├── vgui_ScorePanel.h ├── vgui_ServerBrowser.h ├── vgui_TeamFortressViewport.h ├── vgui_int.h ├── vib.h ├── view.h ├── vis.h ├── wab.h ├── wabapi.h ├── wabcode.h ├── wabdefs.h ├── wabiab.h ├── wabmem.h ├── wabnot.h ├── wabtags.h ├── wabutil.h ├── wadlib.h ├── weaponinfo.h ├── weapons.h ├── winsock.h.mv85 └── wrect.h ├── ALTTAB.CPP ├── HOUSEKP.CPP ├── MAKEFILE ├── MINDESKT.CPP ├── MINSHELL.APS ├── MINSHELL.CPP ├── MINSHELL.H ├── MINSHELL.RC ├── MINSHRC.H ├── MINTASK.CPP ├── README.md ├── RES ├── BLOW.ICO ├── BVERYLOW.ICO └── MVERYLOW.ICO ├── SHUTILS.CPP ├── SOURCES ├── WCESH4Dbg ├── ALTTAB.obj ├── HOUSEKP.obj ├── MINDESKT.obj ├── MINSHELL.obj ├── MINSHELL.res ├── MINTASK.obj ├── SHUTILS.obj ├── WincastCE.exe ├── ceshell.exe ├── ceshell.pch ├── ceshell.pdb └── vc60.pdb ├── WCESH4Rel ├── ALTTAB.obj ├── HOUSEKP.obj ├── MINDESKT.obj ├── MINSHELL.obj ├── MINSHELL.res ├── MINTASK.obj ├── SHUTILS.obj ├── ceshell.exe ├── ceshell.pch └── vc60.pdb ├── ceshell.dsp ├── ceshell.dsw ├── ceshell.ncb ├── ceshell.old ├── ceshell.opt ├── ceshell.plg ├── lib ├── ACMDWRAP.LIB ├── COREDLL2112.LIB ├── COREDLLMAX.LIB ├── GETPOWER.LIB ├── GWESMAIN.LIB ├── GWESTUBS.LIB ├── MSGBEEP.LIB ├── SHEXEC.LIB ├── SHMISC.LIB ├── SHORTCUT.LIB ├── WAVELIB.LIB └── coredll500.lib └── readme.txt /211INC/AFXBLD_.H: -------------------------------------------------------------------------------- 1 | // MFC Julian date build numbers (YDDD) 2 | 3 | #define _MFC_BUILD 8063 4 | #define _MFC_USER_BUILD "8063" 5 | 6 | #ifndef _MFC_RBLD 7 | #define _MFC_RBLD 0 8 | #define _MFC_USER_RBLD "0" 9 | #endif 10 | -------------------------------------------------------------------------------- /211INC/AFXCVIEW.INL: -------------------------------------------------------------------------------- 1 | // This is a part of the Microsoft Foundation Classes C++ library. 2 | // Copyright (C) 1992-1998 Microsoft Corporation 3 | // All rights reserved. 4 | // 5 | // This source code is only intended as a supplement to the 6 | // Microsoft Foundation Classes Reference and related 7 | // electronic documentation provided with the library. 8 | // See these sources for detailed information regarding the 9 | // Microsoft Foundation Classes product. 10 | 11 | // Inlines for AFXCVIEW.H 12 | 13 | #ifdef _AFXCVIEW_INLINE 14 | 15 | // CListView 16 | _AFXCVIEW_INLINE CListView::CListView() : CCtrlView(WC_LISTVIEW, 17 | AFX_WS_DEFAULT_VIEW) 18 | { } 19 | _AFXCVIEW_INLINE CListCtrl& CListView::GetListCtrl() const 20 | { return *(CListCtrl*)this; } 21 | _AFXCVIEW_INLINE CTreeView::CTreeView() : CCtrlView(WC_TREEVIEW, 22 | AFX_WS_DEFAULT_VIEW) 23 | { } 24 | _AFXCVIEW_INLINE CTreeCtrl& CTreeView::GetTreeCtrl() const 25 | { return *(CTreeCtrl*)this; } 26 | 27 | #endif //_AFXCVIEW_INLINE 28 | 29 | ///////////////////////////////////////////////////////////////////////////// 30 | -------------------------------------------------------------------------------- /211INC/AFXPLEX_.H: -------------------------------------------------------------------------------- 1 | // This is a part of the Microsoft Foundation Classes C++ library. 2 | // Copyright (C) 1992-1998 Microsoft Corporation 3 | // All rights reserved. 4 | // 5 | // This source code is only intended as a supplement to the 6 | // Microsoft Foundation Classes Reference and related 7 | // electronic documentation provided with the library. 8 | // See these sources for detailed information regarding the 9 | // Microsoft Foundation Classes product. 10 | 11 | #ifndef __AFXPLEX_H__ 12 | #define __AFXPLEX_H__ 13 | 14 | #ifndef __AFX_H__ 15 | #include 16 | #endif 17 | 18 | #ifdef _AFX_PACKING 19 | #pragma pack(push, _AFX_PACKING) 20 | #endif 21 | 22 | #ifdef AFX_COLL_SEG 23 | #pragma code_seg(AFX_COLL_SEG) 24 | #endif 25 | 26 | struct CPlex // warning variable length structure 27 | { 28 | CPlex* pNext; 29 | #if (_AFX_PACKING >= 8) 30 | DWORD dwReserved[1]; // align on 8 byte boundary 31 | #endif 32 | // BYTE data[maxNum*elementSize]; 33 | 34 | void* data() { return this+1; } 35 | 36 | static CPlex* PASCAL Create(CPlex*& head, UINT nMax, UINT cbElement); 37 | // like 'calloc' but no zero fill 38 | // may throw memory exceptions 39 | 40 | void FreeDataChain(); // free this one and links 41 | }; 42 | 43 | #ifdef AFX_COLL_SEG 44 | #pragma code_seg() 45 | #endif 46 | 47 | #ifdef _AFX_PACKING 48 | #pragma pack(pop) 49 | #endif 50 | 51 | #endif //__AFXPLEX_H__ 52 | 53 | ///////////////////////////////////////////////////////////////////////////// 54 | -------------------------------------------------------------------------------- /211INC/AFXV_CFG.H: -------------------------------------------------------------------------------- 1 | // afxv_cfg.h - target configuration control for non-Microsoft compilers 2 | // 3 | // This is a part of the Microsoft Foundation Classes C++ library. 4 | // Copyright (C) 1992-1998 Microsoft Corporation 5 | // All rights reserved. 6 | // 7 | // This source code is only intended as a supplement to the 8 | // Microsoft Foundation Classes Reference and related 9 | // electronic documentation provided with the library. 10 | // See these sources for detailed information regarding the 11 | // Microsoft Foundation Classes product. 12 | 13 | // You can define _AFX_PORTABLE in order to keep the library from using 14 | // certain Microsoft extensions that are not commonly implemented by 15 | // other compilers. 16 | 17 | #define _AFX_PORTABLE 18 | -------------------------------------------------------------------------------- /211INC/ASSERT.H: -------------------------------------------------------------------------------- 1 | /*** 2 | *assert.h - define the assert macro 3 | * 4 | * Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * Defines the assert(exp) macro. 8 | * [ANSI/System V] 9 | * 10 | * [Public] 11 | * 12 | ****/ 13 | 14 | #if !defined(_WIN32) && !defined(_MAC) 15 | #error ERROR: Only Mac or Win32 targets supported! 16 | #endif 17 | 18 | 19 | 20 | 21 | /* Define _CRTIMP */ 22 | 23 | #ifndef _CRTIMP 24 | #ifdef _DLL 25 | #define _CRTIMP __declspec(dllimport) 26 | #else /* ndef _DLL */ 27 | #define _CRTIMP 28 | #endif /* _DLL */ 29 | #endif /* _CRTIMP */ 30 | 31 | 32 | /* Define __cdecl for non-Microsoft compilers */ 33 | 34 | #if ( !defined(_MSC_VER) && !defined(__cdecl) ) 35 | #define __cdecl 36 | #endif 37 | 38 | /* Define _CRTAPI1 (for compatibility with the NT SDK) */ 39 | 40 | #ifndef _CRTAPI1 41 | #if _MSC_VER >= 800 && _M_IX86 >= 300 42 | #define _CRTAPI1 __cdecl 43 | #else 44 | #define _CRTAPI1 45 | #endif 46 | #endif 47 | 48 | #undef assert 49 | 50 | #ifdef NDEBUG 51 | 52 | #define assert(exp) ((void)0) 53 | 54 | #else 55 | 56 | #ifdef __cplusplus 57 | extern "C" { 58 | #endif 59 | 60 | _CRTIMP void __cdecl _assert(void *, void *, unsigned); 61 | 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | 66 | #define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__, __LINE__), 0) ) 67 | 68 | #endif /* NDEBUG */ 69 | -------------------------------------------------------------------------------- /211INC/ASSERT.H.bak2: -------------------------------------------------------------------------------- 1 | /*** 2 | *assert.h - define the assert macro 3 | * 4 | * Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * Defines the assert(exp) macro. 8 | * [ANSI/System V] 9 | * 10 | * [Public] 11 | * 12 | ****/ 13 | 14 | #if !defined(_WIN32) && !defined(_MAC) 15 | #error ERROR: Only Mac or Win32 targets supported! 16 | #endif 17 | 18 | 19 | 20 | 21 | /* Define _CRTIMP */ 22 | 23 | #ifndef _CRTIMP 24 | #ifdef _DLL 25 | #define _CRTIMP __declspec(dllimport) 26 | #else /* ndef _DLL */ 27 | #define _CRTIMP 28 | #endif /* _DLL */ 29 | #endif /* _CRTIMP */ 30 | 31 | 32 | /* Define __cdecl for non-Microsoft compilers */ 33 | 34 | #if ( !defined(_MSC_VER) && !defined(__cdecl) ) 35 | #define __cdecl 36 | #endif 37 | 38 | /* Define _CRTAPI1 (for compatibility with the NT SDK) */ 39 | 40 | #ifndef _CRTAPI1 41 | #if _MSC_VER >= 800 && _M_IX86 >= 300 42 | #define _CRTAPI1 __cdecl 43 | #else 44 | #define _CRTAPI1 45 | #endif 46 | #endif 47 | 48 | #undef assert 49 | 50 | #ifdef NDEBUG 51 | 52 | #define assert(exp) ((void)0) 53 | 54 | #else 55 | 56 | #ifdef __cplusplus 57 | extern "C" { 58 | #endif 59 | 60 | _CRTIMP void __cdecl _assert(void *, void *, unsigned); 61 | 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | 66 | #define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__, __LINE__), 0) ) 67 | 68 | #endif /* NDEBUG */ 69 | -------------------------------------------------------------------------------- /211INC/ASSERT.H.bk: -------------------------------------------------------------------------------- 1 | /*** 2 | *assert.h - define the assert macro 3 | * 4 | * Copyright (c) 1985-1997, Microsoft Corporation. All rights reserved. 5 | * 6 | *Purpose: 7 | * Defines the assert(exp) macro. 8 | * [ANSI/System V] 9 | * 10 | * [Public] 11 | * 12 | ****/ 13 | 14 | #if !defined(_WIN32) && !defined(_MAC) 15 | #error ERROR: Only Mac or Win32 targets supported! 16 | #endif 17 | 18 | 19 | 20 | 21 | /* Define _CRTIMP */ 22 | 23 | #ifndef _CRTIMP 24 | #ifdef _DLL 25 | #define _CRTIMP __declspec(dllimport) 26 | #else /* ndef _DLL */ 27 | #define _CRTIMP 28 | #endif /* _DLL */ 29 | #endif /* _CRTIMP */ 30 | 31 | 32 | /* Define __cdecl for non-Microsoft compilers */ 33 | 34 | #if ( !defined(_MSC_VER) && !defined(__cdecl) ) 35 | #define __cdecl 36 | #endif 37 | 38 | /* Define _CRTAPI1 (for compatibility with the NT SDK) */ 39 | 40 | #ifndef _CRTAPI1 41 | #if _MSC_VER >= 800 && _M_IX86 >= 300 42 | #define _CRTAPI1 __cdecl 43 | #else 44 | #define _CRTAPI1 45 | #endif 46 | #endif 47 | 48 | #undef assert 49 | 50 | #ifdef NDEBUG 51 | 52 | #define assert(exp) ((void)0) 53 | 54 | #else 55 | 56 | #ifdef __cplusplus 57 | extern "C" { 58 | #endif 59 | 60 | _CRTIMP void __cdecl _assert(void *, void *, unsigned); 61 | 62 | #ifdef __cplusplus 63 | } 64 | #endif 65 | 66 | #define assert(exp) (void)( (exp) || (_assert(#exp, __FILE__, __LINE__), 0) ) 67 | 68 | #endif /* NDEBUG */ 69 | -------------------------------------------------------------------------------- /211INC/AUDIO.DEF: -------------------------------------------------------------------------------- 1 | LIBRARY AUDIO 2 | DESCRIPTION 'Audio Driver MDD Interface' 3 | EXPORTS 4 | AudioPlaySound 5 | AudioWaveOutGetVolume 6 | AudioWaveOutSetVolume 7 | AudioPowerHandler 8 | -------------------------------------------------------------------------------- /211INC/AUDIOMDD.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | audiomdd.h 11 | 12 | Abstract: 13 | 14 | Functions: 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | #include 21 | 22 | -------------------------------------------------------------------------------- /211INC/BLDVER.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1997-1998 Microsoft Corporation 4 | 5 | Module Name: bldver.h 6 | 7 | 8 | --*/ 9 | #ifndef _BLDVER_H_ 10 | #define _BLDVER_H_ 11 | 12 | #define CE_MAJOR_VER 0x0002 13 | #define CE_MINOR_VER 0x000b 14 | 15 | #define CE_BUILD_VER 8239 16 | #define CE_BUILD_SYSVER 8239 17 | 18 | #endif // _BLDVER_H_ 19 | -------------------------------------------------------------------------------- /211INC/BLDVER.TMP: -------------------------------------------------------------------------------- 1 | #ifndef _BLDVER_H_ 2 | #define _BLDVER_H_ 3 | 4 | #define CE_MAJOR_VER 0x0002 5 | #define CE_MINOR_VER 0x0002 6 | 7 | #define CE_BUILD_VER __bldNumber__ 8 | #define CE_BUILD_SYSVER 0 9 | 10 | #endif // _BLDVER_H_ 11 | -------------------------------------------------------------------------------- /211INC/CEDDK.DEF: -------------------------------------------------------------------------------- 1 | LIBRARY CEDDK 2 | DESCRIPTION 'WINCE Device Driver Support' 3 | EXPORTS 4 | MmMapIoSpace 5 | MmUnmapIoSpace 6 | HalGetBusDataByOffset 7 | HalSetBusDataByOffset 8 | HalTranslateBusAddress 9 | READ_REGISTER_UCHAR 10 | READ_REGISTER_USHORT 11 | READ_REGISTER_ULONG 12 | READ_REGISTER_BUFFER_UCHAR 13 | READ_REGISTER_BUFFER_USHORT 14 | READ_REGISTER_BUFFER_ULONG 15 | WRITE_REGISTER_UCHAR 16 | WRITE_REGISTER_USHORT 17 | WRITE_REGISTER_ULONG 18 | WRITE_REGISTER_BUFFER_UCHAR 19 | WRITE_REGISTER_BUFFER_USHORT 20 | WRITE_REGISTER_BUFFER_ULONG 21 | READ_PORT_UCHAR 22 | READ_PORT_USHORT 23 | READ_PORT_ULONG 24 | READ_PORT_BUFFER_UCHAR 25 | READ_PORT_BUFFER_USHORT 26 | READ_PORT_BUFFER_ULONG 27 | WRITE_PORT_UCHAR 28 | WRITE_PORT_USHORT 29 | WRITE_PORT_ULONG 30 | WRITE_PORT_BUFFER_UCHAR 31 | WRITE_PORT_BUFFER_USHORT 32 | WRITE_PORT_BUFFER_ULONG -------------------------------------------------------------------------------- /211INC/CMNMACRO.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | cmnmacro.h 11 | 12 | Abstract: 13 | 14 | Some common macros 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | #ifndef _CMNMACRO_H_ 21 | #define _CMNMACRO_H_ 22 | 23 | #define LOINT16(l) ((INT16)(l)) 24 | #define HIINT16(l) ((INT16)(UINT16)(((UINT32)(l) >> 16) & 0xFFFF)) 25 | 26 | #define LOUINT16(l) ((UINT16)(l)) 27 | #define HIUINT16(l) ((UINT16)(((UINT32)(l) >> 16) & 0xFFFF)) 28 | 29 | #define CR_BLACK RGB(0x00,0x00,0x00) 30 | #define CR_DKGRAY RGB(0x80,0x80,0x80) 31 | #define CR_LTGRAY RGB(0xc0,0xc0,0xc0) 32 | #define CR_WHITE RGB(0xff,0xff,0xff) 33 | 34 | #endif /*_CMNMACRO_H_*/ 35 | 36 | -------------------------------------------------------------------------------- /211INC/CTYPE.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/DEFFILE.INC: -------------------------------------------------------------------------------- 1 | // 2 | // Forced include file for preprocessing dll def files. 3 | // 4 | 5 | #if defined(MIPS) || defined(SH3) 6 | #define STDAPI(sz,c) sz 7 | #define METHOD(x,y) x##A##y 8 | #else 9 | #if UNDER_CE 10 | #define STDAPI(sz,c) sz 11 | #else 12 | #define STDAPI(sz,c) sz##@##c 13 | #endif 14 | #define METHOD(x,y) x##E##y 15 | #endif 16 | 17 | -------------------------------------------------------------------------------- /211INC/DEMODISP.H: -------------------------------------------------------------------------------- 1 | /****************************************************************************** 2 | Copyright (c) 1996-1998 Microsoft Corporation 3 | 4 | DemoDisp.h 5 | ******************************************************************************/ 6 | 7 | #ifndef _DEMODISP_H_ 8 | #define _DEMODISP_H_ 9 | 10 | #define DEMO_DISP_REG_KEY TEXT("HARDWARE\\DEVICEMAP\\DISPLAY") 11 | #define DEMO_DISP_REG_VALUE TEXT("DriverName") 12 | 13 | 14 | #define DEMO_DISP_INIT_FUNCTION TEXT("DirtyRectInit") 15 | #define DEMO_DISP_UPDATE_FUNCTION TEXT("DirtyRectUpdate") 16 | 17 | typedef BOOL (*PFN_DIRTY_RECT_INIT)( 18 | int cxScreen, 19 | int cyScreen, 20 | int cdwStride, 21 | LPVOID pDibBuffer); 22 | 23 | typedef BOOL (*PFN_DIRTY_RECT_UPDATE)( 24 | LPCRECT prc); 25 | 26 | extern PFN_DIRTY_RECT_UPDATE v_pfnDirtyRectUpdate; 27 | 28 | #endif // _DEMODISP_H_ 29 | -------------------------------------------------------------------------------- /211INC/FLOAT.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/GWEADD.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1997-1998 Microsoft Corporation 7 | 8 | Component Name: 9 | 10 | gweeadd.h 11 | 12 | Abstract: 13 | 14 | This header file declares the function Initialize_AdditionalComponents(). 15 | If an additional components (beyond those that come with Windows CE) is added 16 | to GWE via the cesysgen.bat file, and if that component needs to do some 17 | initialization at boot time, then that components can implement this function. 18 | GWE will call this function at boot time. 19 | ++*/ 20 | 21 | #ifdef __cplusplus 22 | extern "C" 23 | #endif 24 | void Initialize_AdditionalComponents (void); 25 | -------------------------------------------------------------------------------- /211INC/HSHELL.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | hshell.h 11 | 12 | Abstract: 13 | 14 | Interface to the Window Manager's Taskbar hooks. HSHELL_* are defined 15 | in winuser.h 16 | 17 | 18 | Notes: 19 | 20 | 21 | --*/ 22 | #ifndef _HSHELL_H_ 23 | #define _HSHELL_H_ 24 | 25 | #define WM_SHELLNOTIFY WM_USER 26 | 27 | #endif /* HSHELL_H_ */ 28 | 29 | -------------------------------------------------------------------------------- /211INC/HWCOMAPI.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | hwcomapi.h 11 | 12 | Abstract: 13 | 14 | Holds pdd level prototypes of win32 comm apis. 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | 21 | ULONG 22 | HWGetStatus( 23 | PVOID pHead, 24 | LPCOMSTAT lpStat 25 | ); 26 | 27 | VOID 28 | HWReset( 29 | PVOID pHead 30 | ); 31 | 32 | VOID 33 | HWGetModemStatus( 34 | PVOID pHead, 35 | PULONG pModemStatus 36 | ); 37 | 38 | VOID 39 | HWGetCommProperties( 40 | PVOID pHead, 41 | LPCOMMPROP pCommProp 42 | ); 43 | 44 | VOID 45 | HWPurgeComm( 46 | PVOID pHead, 47 | DWORD fdwAction 48 | ); 49 | -------------------------------------------------------------------------------- /211INC/IMMDEFS.H: -------------------------------------------------------------------------------- 1 | 2 | /* This file intentionally left blank */ 3 | 4 | -------------------------------------------------------------------------------- /211INC/IMMSTRUC.H: -------------------------------------------------------------------------------- 1 | 2 | /* This file intentionally left blank */ 3 | 4 | -------------------------------------------------------------------------------- /211INC/INITGUID.H: -------------------------------------------------------------------------------- 1 | /*****************************************************************************\ 2 | * * 3 | * initguid.h - Definitions for controlling GUID initialization * 4 | * * 5 | * OLE Version 2.0 * 6 | * * 7 | * Copyright (c) 1992-1998, Microsoft Corp. All rights reserved. * 8 | * * 9 | \*****************************************************************************/ 10 | 11 | // Include after compobj.h to enable GUID initialization. This 12 | // must be done once per exe/dll. 13 | // 14 | // After this file, include one or more of the GUID definition files. 15 | // 16 | // NOTE: ole2.lib contains references to all GUIDs defined by OLE. 17 | 18 | #ifndef DEFINE_GUID 19 | #error initguid: must include objbase.h first. 20 | #endif 21 | 22 | #undef DEFINE_GUID 23 | 24 | #ifdef _MAC 25 | #define __based(a) 26 | #endif 27 | 28 | #ifdef _WIN32 29 | #define __based(a) 30 | #endif 31 | 32 | #ifdef __TURBOC__ 33 | #define __based(a) 34 | #endif 35 | 36 | #define DEFINE_GUID(name, l, w1, w2, b1, b2, b3, b4, b5, b6, b7, b8) \ 37 | EXTERN_C const GUID __based(__segname("_CODE")) name \ 38 | = { l, w1, w2, { b1, b2, b3, b4, b5, b6, b7, b8 } } 39 | -------------------------------------------------------------------------------- /211INC/KEYBDDR.DEF: -------------------------------------------------------------------------------- 1 | LIBRARY KEYBDDR 2 | DESCRIPTION 'Keybd Driver DLL' 3 | EXPORTS 4 | STDAPI(KeybdDriverInitialize, 4); 5 | STDAPI(KeybdDriverPowerHandler, 4); 6 | STDAPI(KeybdDriverGetInfo, 12); 7 | STDAPI(KeybdDriverSetMode, 12); 8 | STDAPI(KeybdDriverInitStates, 12); 9 | STDAPI(KeybdDriverVKeyToUnicode, 32); 10 | -------------------------------------------------------------------------------- /211INC/LED_DRVR.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | led_drvr.h 11 | 12 | --*/ 13 | 14 | EXTERN_C 15 | VOID 16 | WINAPI 17 | NLedDriverPowerDown( 18 | BOOL power_down 19 | ); 20 | typedef VOID (WINAPI *PFN_NLED_DRIVER_POWER_DOWN)(BOOL); 21 | 22 | 23 | 24 | 25 | EXTERN_C 26 | BOOL 27 | WINAPI 28 | NLedDriverGetDeviceInfo( 29 | INT nId, 30 | PVOID pOutput 31 | ); 32 | typedef BOOL (WINAPI *PFN_NLED_DRIVER_GET_DEVICE_INFO)(INT, PVOID); 33 | 34 | 35 | 36 | EXTERN_C 37 | BOOL 38 | WINAPI 39 | NLedDriverSetDevice( 40 | INT nId, 41 | PVOID pInput 42 | ); 43 | typedef BOOL (WINAPI *PFN_NLED_DRIVER_SET_DEVICE)(INT, PVOID); 44 | 45 | 46 | 47 | EXTERN_C 48 | BOOL 49 | WINAPI 50 | NLedDriverInitialize( 51 | void 52 | ); 53 | typedef BOOL (WINAPI *PFN_NLED_DRIVER_INITIALIZE)(void); 54 | 55 | -------------------------------------------------------------------------------- /211INC/LIMITS.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/MALLOC.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/MATH.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/MCOMMDLG.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | mcommdlg.h 11 | 12 | Abstract: 13 | 14 | Notes: 15 | 16 | 17 | --*/ 18 | #ifndef _INC_MCOMMDLG 19 | #define _INC_MCOMMDLG 20 | 21 | #ifndef WINCEMACRO 22 | #error WINCEMACRO not defined __FILE__ 23 | #endif 24 | 25 | // exported for commdlg (prototyped in commdlg.h) 26 | #define GetOpenFileNameW IMPLICIT_DECL(BOOL, SH_SHELL, 3, \ 27 | (LPOPENFILENAMEW)) 28 | #define GetSaveFileNameW IMPLICIT_DECL(BOOL, SH_SHELL, 4, \ 29 | (LPOPENFILENAMEW)) 30 | 31 | #endif /* _INC_MCOMMDLG */ 32 | -------------------------------------------------------------------------------- /211INC/MEMORY.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | 3 | -------------------------------------------------------------------------------- /211INC/MENUCTRL.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | menuctrl.h 11 | 12 | Abstract: 13 | 14 | Notes: 15 | 16 | 17 | --*/ 18 | #ifndef _MENUCTRL_H_ 19 | #define _MENUCTRL_H_ 20 | 21 | /* When creating a window of class "Menu", pass a PMENUCONTROLINFO as the 22 | lpParam parameter to CreateWindow. 23 | */ 24 | 25 | #define MENUCONTROLCLASS TEXT("Menu") 26 | 27 | typedef struct 28 | { 29 | HINSTANCE hinst; /* instance containing the menu resource */ 30 | LPCTSTR lpszMenuName; /* menu resource name or ID */ 31 | HWND hwndNotify; /* the window that will receive menu notifications*/ 32 | } MENUCONTROLINFO, *PMENUCONTROLINFO, *LPMENUCONTROLINFO; 33 | 34 | #endif /* _MENUCTRL_H_ */ 35 | -------------------------------------------------------------------------------- /211INC/MIMM.H: -------------------------------------------------------------------------------- 1 | #ifndef __MIMM_H__ 2 | #define __MIMM_H__ 3 | 4 | 5 | 6 | #define ImmGetContextFromWindowGwe USER_CALL ( HIMC, ImmGetContextFromWindowGwe, ( \ 7 | HWND hwnd )) 8 | 9 | 10 | #define ImmAssociateContextWithWindowGwe USER_CALL (BOOL, ImmAssociateContextWithWindowGwe, ( \ 11 | HWND hwnd, \ 12 | HIMC himc, \ 13 | DWORD dwFlags, \ 14 | HIMC *phimcPrev, \ 15 | HWND *phwndFocus, \ 16 | HIMC *phimcFocusPrev, \ 17 | HIMC *phimcFocusNew)) 18 | 19 | 20 | #define ImmSetHotKey USER_CALL ( BOOL, ImmSetHotKey, ( \ 21 | DWORD dwHotKeyId, \ 22 | UINT uModifiers, \ 23 | UINT uVkey, \ 24 | HKL hkl)) 25 | 26 | #define ImmGetHotKey USER_CALL ( BOOL, ImmGetHotKey, ( \ 27 | DWORD dwHotKeyId, \ 28 | UINT *puModifiers, \ 29 | UINT *puVkey, \ 30 | HKL *phkl)) 31 | 32 | 33 | 34 | 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /211INC/MMDDK.H: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/211INC/MMDDK.H -------------------------------------------------------------------------------- /211INC/MNOTIFY.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | mnotify.h 11 | 12 | Abstract: 13 | 14 | Private portion of notify.h - Header for User Notifications 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | #ifndef _MACRO_NOTIFY_H_ 21 | #define _MACRO_NOTIFY_H_ 22 | 23 | // SDK functions 24 | #define CeSetUserNotification IMPLICIT_DECL(HANDLE, SH_WMGR, 248, (HANDLE hNotification, TCHAR *pwszAppName, SYSTEMTIME *lpTime, PCE_USER_NOTIFICATION lpUserNotification)) 25 | #define CeClearUserNotification IMPLICIT_DECL(BOOL, SH_WMGR, 249, (HANDLE hNotification)) 26 | #define CeRunAppAtTime IMPLICIT_DECL(BOOL, SH_WMGR, 250, (TCHAR *pwszAppName, SYSTEMTIME *lpTime)) 27 | #define CeRunAppAtEvent IMPLICIT_DECL(BOOL, SH_WMGR, 251, (TCHAR *pwszAppName, LONG lWhichEvent)) 28 | #define CeHandleAppNotifications IMPLICIT_DECL(BOOL, SH_WMGR, 252, (TCHAR *pwszAppName)) 29 | #define CeGetUserNotificationPreferences IMPLICIT_DECL(BOOL, SH_WMGR, 253, (HWND hWndParent, PCE_USER_NOTIFICATION lpNotification)) 30 | 31 | // OAK functions 32 | #define CeEventHasOccurred IMPLICIT_DECL(BOOL, SH_WMGR, 254, (LONG lWhichEvent, TCHAR *pwszEndOfCommandLine)) 33 | 34 | #endif /* _MACRO_NOTIFY_H_ */ 35 | -------------------------------------------------------------------------------- /211INC/MSACMDLG.H: -------------------------------------------------------------------------------- 1 | // ----------------------------------------------------------------------------- 2 | // 3 | // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 4 | // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 5 | // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 6 | // PARTICULAR PURPOSE. 7 | // Copyright (c) 1995-1998 Microsoft Corporation 8 | // 9 | // ----------------------------------------------------------------------------- 10 | // 11 | // Audio Compression Manager Common Dialogs Identifiers 12 | // 13 | // ----------------------------------------------------------------------------- 14 | 15 | #define DLG_ACMFORMATCHOOSE_ID 70 16 | #define IDD_ACMFORMATCHOOSE_CMB_FORMATTAG 101 17 | #define IDD_ACMFORMATCHOOSE_CMB_FORMAT 102 18 | 19 | #define DLG_ACMFILTERCHOOSE_ID 71 20 | #define IDD_ACMFILTERCHOOSE_CMB_FILTERTAG 101 21 | #define IDD_ACMFILTERCHOOSE_CMB_FILTER 102 22 | 23 | 24 | 25 | 26 | -------------------------------------------------------------------------------- /211INC/MSHELLAP.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | mshellap.h 11 | 12 | Abstract: 13 | 14 | Notes: 15 | 16 | 17 | --*/ 18 | #ifndef _INC_MSHELLAPI 19 | #define _INC_MSHELLAPI 20 | 21 | #ifndef WINCEMACRO 22 | #error WINCEMACRO not defined __FILE__ 23 | #endif 24 | 25 | 26 | #define Shell_NotifyIcon IMPLICIT_DECL(BOOL, SH_SHELL, 6, \ 27 | (DWORD,PNOTIFYICONDATA)) 28 | #define SHAddToRecentDocs IMPLICIT_DECL(void, SH_SHELL, 7, \ 29 | (DWORD, LPCVOID)) 30 | #define SHCreateExplorerInstance IMPLICIT_DECL(BOOL, SH_SHELL, 9, \ 31 | (LPCTSTR, UINT)) 32 | 33 | #endif /* _INC_MSHELLAPI */ 34 | -------------------------------------------------------------------------------- /211INC/NTPE.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | ntpe.h 11 | 12 | Abstract: 13 | 14 | Windows CE Emulation on NT - Functions to Access PEPCMCIA.SYS NT Driver 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | 21 | 22 | #ifndef _ntpe_h_ 23 | #define _ntpe_h_ 24 | 25 | // To open and close the pepcmcia device. 26 | extern BOOL ntpe_open(void); 27 | extern BOOL ntpe_close(void); 28 | 29 | // Convenience functions to read/write 82365 registers. 30 | extern UINT8 PD365Read(UINT8 index); 31 | extern UINT8 PD365Write(UINT8 index, UINT8 value); 32 | 33 | // To map and unmap physical memory. 34 | extern PVOID ntpe_mapmem(PVOID physAdr, int len); 35 | extern BOOL ntpe_unmapmem(PVOID virtAdr); 36 | 37 | // To get the ISA windows values. 38 | extern BOOL ntpe_getvals(ULONG *AttrMemWinStart, ULONG *AttrMemWinLength, 39 | ULONG *CommMemWinStart, ULONG *CommMemWinLength); 40 | 41 | // For debugging. 42 | extern void ntpe_writebytes(PUCHAR adr, PUCHAR src, int len); 43 | extern void ntpe_readbytes(PUCHAR adr, int len); 44 | 45 | // Interrupt functions (do nothing now). 46 | extern BOOL SetInterruptEvent(); 47 | extern void InterruptDisable(); 48 | extern BOOL InterruptInitialize(); 49 | extern void InterruptDone(); 50 | 51 | #endif // _ntpe_h_ 52 | 53 | -------------------------------------------------------------------------------- /211INC/OBJERROR.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1997-1998 Microsoft Corporation 4 | 5 | Module Name: objerror.h 6 | 7 | 8 | --*/ 9 | 10 | #include 11 | -------------------------------------------------------------------------------- /211INC/OHCD.DEF: -------------------------------------------------------------------------------- 1 | LIBRARY OHCD 2 | DESCRIPTION 'USB Open Host Driver' 3 | EXPORTS HCD_Init 4 | HCD_PowerUp 5 | HCD_PowerDown 6 | HCD_Deinit 7 | HCD_Open 8 | HCD_Close 9 | HCD_Read 10 | HCD_Write 11 | HCD_Seek 12 | HCD_IOControl 13 | 14 | -------------------------------------------------------------------------------- /211INC/PCMCIA.DEF: -------------------------------------------------------------------------------- 1 | LIBRARY PCMCIA 2 | DESCRIPTION 'PCMCIA Driver MDD Interface (Card Services)' 3 | EXPORTS CardRegisterClient 4 | CardDeregisterClient 5 | CardGetFirstTuple 6 | CardGetNextTuple 7 | CardGetTupleData 8 | CardGetParsedTuple 9 | CardRequestConfiguration 10 | CardReleaseConfiguration 11 | CardGetStatus 12 | CardResetFunction 13 | CardRequestExclusive 14 | CardReleaseExclusive 15 | CardRequestSocketMask 16 | CardReleaseSocketMask 17 | CardGetEventMask 18 | CardSetEventMask 19 | CardRequestWindow 20 | CardReleaseWindow 21 | CardModifyWindow 22 | CardMapWindow 23 | CardRequestIRQ 24 | CardReleaseIRQ 25 | CardSystemPower 26 | CardSystemInit 27 | CardAccessConfigurationRegister 28 | -------------------------------------------------------------------------------- /211INC/PEGDPAR.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | pegdpar.h 11 | 12 | Abstract: 13 | 14 | Notes: 15 | 16 | 17 | --*/ 18 | // @doc EXTERNAL SERIALDEVICE 19 | 20 | #ifndef __PEGDPAR_H__ 21 | #define __PEGDPAR_H__ 22 | 23 | // We'll need some defines 24 | #include "windev.h" 25 | 26 | // 27 | // DeviceIOControl dwIoControlCode values for Serial ports 28 | // 29 | #define IOCTL_PARALLEL_SET_TIMEOUTS CTL_CODE(FILE_DEVICE_PARALLEL_PORT,1,METHOD_BUFFERED,FILE_ANY_ACCESS) 30 | #define IOCTL_PARALLEL_GET_TIMEOUTS CTL_CODE(FILE_DEVICE_PARALLEL_PORT,2,METHOD_BUFFERED,FILE_ANY_ACCESS) 31 | #define IOCTL_PARALLEL_GETDEVICEID CTL_CODE(FILE_DEVICE_PARALLEL_PORT,3,METHOD_BUFFERED,FILE_ANY_ACCESS) 32 | #define IOCTL_PARALLEL_WRITE CTL_CODE(FILE_DEVICE_PARALLEL_PORT,4,METHOD_BUFFERED,FILE_ANY_ACCESS) 33 | #define IOCTL_PARALLEL_GET_ECP_CHANNEL32 CTL_CODE(FILE_DEVICE_PARALLEL_PORT,5,METHOD_BUFFERED,FILE_ANY_ACCESS) 34 | #define IOCTL_PARALLEL_STATUS CTL_CODE(FILE_DEVICE_PARALLEL_PORT,6,METHOD_BUFFERED,FILE_ANY_ACCESS) 35 | 36 | #endif // __PEGDPAR_H_ 37 | -------------------------------------------------------------------------------- /211INC/PIMM.H: -------------------------------------------------------------------------------- 1 | #ifndef _PRIV_IMM_ 2 | #define _PRIV_IMM_ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | #define IGSC_DEFIMCFALLBACK 0x0002 9 | HIMC 10 | WINAPI 11 | ImmGetContextFromWindowGwe( 12 | HWND hWnd 13 | ); 14 | 15 | 16 | BOOL 17 | WINAPI 18 | ImmAssociateContextWithWindowGwe( 19 | HWND hwnd, 20 | HIMC himc, 21 | DWORD dwFlags, 22 | HIMC *phimcPrev, 23 | HWND *phwndFocus, 24 | HIMC *phimcFocusPrev, 25 | HIMC *phimcFocusNew 26 | ); 27 | 28 | 29 | 30 | void 31 | WINAPI 32 | ImmSetImeWndIMC( 33 | HIMC hImc, 34 | HWND hImeWnd 35 | ); 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif /*__cplusplus*/ 40 | 41 | #endif 42 | -------------------------------------------------------------------------------- /211INC/PINGLIB.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | pinglib.h 11 | 12 | Abstract: 13 | 14 | Packet INternet Groper utility for TCP/IP include file. 15 | 16 | 17 | Notes: 18 | 19 | 20 | --*/ 21 | 22 | #ifndef MAX_OPT_SIZE 23 | #define MAX_OPT_SIZE 40 24 | #endif 25 | #define DEFAULT_SEND_SIZE 32 26 | #define DEFAULT_COUNT 4 27 | #define DEFAULT_TTL 32 28 | #define DEFAULT_TOS 0 29 | #define DEFAULT_TIMEOUT 1000L 30 | #define MIN_INTERVAL 1000L 31 | 32 | extern BOOL v_fStopPing; 33 | 34 | typedef struct _PINGOPTIONS { 35 | DWORD SendSize; // How many bytes to send 36 | DWORD Count; // Number of times to Ping (-1 too loop) 37 | DWORD Timeout; // Timeout 38 | BOOL DnsReq; // Perform gethostbyaddr() call 39 | BYTE Flags; 40 | BYTE TTL; // Time to live 41 | BYTE TOS; // Type of service 42 | BYTE OptLength; // Length of options buffer. 43 | BYTE SendOptions[MAX_OPT_SIZE]; // Send options 44 | } PINGOPTIONS, *PPINGOPTIONS; 45 | 46 | 47 | typedef VOID (WINAPI *PFN_PINGDISPSTR)(LPTSTR szOutStr); 48 | 49 | DWORD WINAPI DoPing (LPTSTR szHostName, PPINGOPTIONS pPingOptions, 50 | PFN_PINGDISPSTR pPingDispStr); 51 | 52 | -------------------------------------------------------------------------------- /211INC/PNOTIFY.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | pnotify.h 11 | 12 | Abstract: 13 | 14 | Private portion of notify.h - Header for User Notifications 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | #ifndef _PRIV_NOTIFY_H_ 21 | #define _PRIV_NOTIFY_H_ 22 | 23 | #ifdef __cplusplus 24 | extern "C" { 25 | #endif 26 | 27 | BOOL CeEventHasOccurred (LONG lWhichEvent, TCHAR *pwszEndOfCommandLine); 28 | 29 | #ifdef __cplusplus 30 | } 31 | #endif /*__cplusplus*/ 32 | 33 | #endif /* _PRIV_NOTIFY_H_ */ 34 | -------------------------------------------------------------------------------- /211INC/POPPACK.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1990-1998 Microsoft Corporation 4 | 5 | Module Name: 6 | 7 | poppack.h 8 | 9 | Abstract: 10 | 11 | This file turns packing of structures off. (That is, it enables 12 | automatic alignment of structure fields.) An include file is needed 13 | because various compilers do this in different ways. 14 | 15 | poppack.h is the complement to pshpack?.h. An inclusion of poppack.h 16 | MUST ALWAYS be preceded by an inclusion of one of pshpack?.h, in one-to-one 17 | correspondence. 18 | 19 | For Microsoft compatible compilers, this file uses the pop option 20 | to the pack pragma so that it can restore the previous saved by the 21 | pshpack?.h include file. 22 | 23 | --*/ 24 | 25 | #if ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 26 | #if ( _MSC_VER >= 800 ) 27 | #pragma warning(disable:4103) 28 | #if !(defined( MIDL_PASS )) || defined( __midl ) 29 | #pragma pack(pop) 30 | #else 31 | #pragma pack() 32 | #endif 33 | #else 34 | #pragma pack() 35 | #endif 36 | #endif // ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 37 | -------------------------------------------------------------------------------- /211INC/PPFS.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | ppfs.h 11 | 12 | Abstract: 13 | 14 | These are the constants used for ppfs internally 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | #ifndef _PPFS_H_ 21 | #define _PPFS_H_ 22 | 23 | #define BOOT_TYPE_SH3 -1 24 | #define BOOT_TYPE_R4200 -2 25 | #define BOOT_TYPE_R4100 -3 26 | #define BOOT_TYPE_X86 -4 27 | #define BOOT_TYPE_R3000 -5 28 | #define BOOT_TYPE_UNKNOWN -10000 29 | 30 | // 31 | // Registry keys 32 | // 33 | #define REG_KEY_BASE "SYSTEM\\CurrentControlSet\\Services" 34 | #define REG_KEY_PPFS "ppfs" 35 | #define REG_KEY_PARMS "Parameters" 36 | 37 | #endif // #ifndef _PPFS_H_ 38 |  39 | -------------------------------------------------------------------------------- /211INC/PPSH.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | ppsh.h 11 | 12 | Abstract: 13 | 14 | Notes: 15 | 16 | 17 | --*/ 18 | #ifndef _PPSH_H_ 19 | #define _PPSH_H_ 20 | 21 | #define BOOT_TYPE_SH3 -1 22 | #define BOOT_TYPE_R4200 -2 23 | #define BOOT_TYPE_R4100 -3 24 | #define BOOT_TYPE_X86 -4 25 | #define BOOT_TYPE_R3000 -5 26 | #define BOOT_TYPE_UNKNOWN -10000 27 | 28 | #endif // #ifndef _PPSH_H_ 29 |  30 | -------------------------------------------------------------------------------- /211INC/PRAPI.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | prapi.h 11 | 12 | Abstract: 13 | 14 | Contains private portion of the Remote API 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | 21 | #ifndef PRAPI_H 22 | #define PRAPI_H 23 | 24 | #ifndef UNDER_CE 25 | // We will define these to be meaningless names to give no hints about what 26 | // the functions might do. 27 | #define GetDccManWindow RAPI_EXP_10 28 | #define CeEventHasOccurred RAPI_EXP_11 29 | #define CeSyncTimeToPc RAPI_EXP_12 30 | #define CeStartReplication RAPI_EXP_13 31 | #define CeRegCopyFile RAPI_EXP_14 32 | #define CeRegRestoreFile RAPI_EXP_15 33 | #define CeSetPasswordActive RAPI_EXP_16 34 | #define CeSetPassword RAPI_EXP_17 35 | #endif // UNDER_CE 36 | 37 | STDAPI GetDccManWindow(HWND *phwnd); 38 | 39 | STDAPI_(BOOL ) CeEventHasOccurred (LONG, LPWSTR); 40 | STDAPI_(BOOL ) CeSyncTimeToPc (DWORD); 41 | STDAPI CeStartReplication (void); 42 | STDAPI_(BOOL ) CeRegCopyFile (LPCWSTR); 43 | STDAPI_(BOOL ) CeRegRestoreFile (LPCWSTR); 44 | STDAPI_(BOOL ) CeSetPasswordActive (BOOL, LPWSTR); 45 | STDAPI_(BOOL ) CeSetPassword (LPWSTR, LPWSTR); 46 | 47 | #endif // #ifndef PRAPI_H 48 | -------------------------------------------------------------------------------- /211INC/PRAS.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | pras.h 11 | 12 | Abstract: 13 | 14 | Contains the private portions of ras.h 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | 21 | #ifndef _PRIV_RAS_H_ 22 | #define _PRIV_RAS_H_ 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | 29 | 30 | #ifdef UNDER_CE 31 | #define RNA_GETINFO 3 32 | 33 | // Our main dialog has DWL_USER set to the following value. 34 | #define RNAAPP_MAGIC_NUM 0x006A6D6D 35 | 36 | #endif // UNDER_CE 37 | 38 | 39 | 40 | #ifdef __cplusplus 41 | } 42 | #endif 43 | 44 | 45 | #endif // _PRIV_RAS_H_ 46 | -------------------------------------------------------------------------------- /211INC/PROTECT.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | protect.h 11 | 12 | Abstract: 13 | 14 | Notes: 15 | 16 | 17 | --*/ 18 | #ifndef _PROTECT_H_ 19 | #define _PROTECT_H_ 20 | /*---------------------------------------------------------------------------*\ 21 | * CProtect: class definition 22 | \*---------------------------------------------------------------------------*/ 23 | class CProtect 24 | { 25 | public: 26 | CProtect(LPCRITICAL_SECTION lpcs) : m_lpcs(lpcs) 27 | { EnterCriticalSection(m_lpcs); } 28 | ~CProtect() { LeaveCriticalSection(m_lpcs); } 29 | 30 | private: 31 | LPCRITICAL_SECTION m_lpcs; 32 | 33 | }; /* CProtect */ 34 | 35 | typedef CProtect PROTECT; 36 | #endif _PROTECT_H_ 37 | -------------------------------------------------------------------------------- /211INC/PSHPACK1.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1994-1998 Microsoft Corporation 4 | 5 | Module Name: 6 | 7 | pshpack1.h 8 | 9 | Abstract: 10 | 11 | This file turns 1 byte packing of structures on. (That is, it disables 12 | automatic alignment of structure fields.) An include file is needed 13 | because various compilers do this in different ways. For Microsoft 14 | compatible compilers, this files uses the push option to the pack pragma 15 | so that the poppack.h include file can restore the previous packing 16 | reliably. 17 | 18 | The file poppack.h is the complement to this file. 19 | 20 | --*/ 21 | 22 | #if ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 23 | #if ( _MSC_VER >= 800 ) 24 | #pragma warning(disable:4103) 25 | #if !(defined( MIDL_PASS )) || defined( __midl ) 26 | #pragma pack(push) 27 | #endif 28 | #pragma pack(1) 29 | #else 30 | #pragma pack(1) 31 | #endif 32 | #endif // ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 33 | -------------------------------------------------------------------------------- /211INC/PSHPACK2.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1994-1998 Microsoft Corporation 4 | 5 | Module Name: 6 | 7 | pshpack2.h 8 | 9 | Abstract: 10 | 11 | This file turns 2 byte packing of structures on. (That is, it disables 12 | automatic alignment of structure fields.) An include file is needed 13 | because various compilers do this in different ways. For Microsoft 14 | compatible compilers, this files uses the push option to the pack pragma 15 | so that the poppack.h include file can restore the previous packing 16 | reliably. 17 | 18 | The file poppack.h is the complement to this file. 19 | 20 | --*/ 21 | 22 | #if ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 23 | #if ( _MSC_VER >= 800 ) 24 | #pragma warning(disable:4103) 25 | #if !(defined( MIDL_PASS )) || defined( __midl ) 26 | #pragma pack(push) 27 | #endif 28 | #pragma pack(2) 29 | #else 30 | #pragma pack(2) 31 | #endif 32 | #endif // ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 33 | -------------------------------------------------------------------------------- /211INC/PSHPACK4.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1994-1998 Microsoft Corporation 4 | 5 | Module Name: 6 | 7 | pshpack4.h 8 | 9 | Abstract: 10 | 11 | This file turns 4 byte packing of structures on. (That is, it disables 12 | automatic alignment of structure fields.) An include file is needed 13 | because various compilers do this in different ways. For Microsoft 14 | compatible compilers, this files uses the push option to the pack pragma 15 | so that the poppack.h include file can restore the previous packing 16 | reliably. 17 | 18 | The file poppack.h is the complement to this file. 19 | 20 | --*/ 21 | 22 | #if ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 23 | #if ( _MSC_VER >= 800 ) 24 | #pragma warning(disable:4103) 25 | #if !(defined( MIDL_PASS )) || defined( __midl ) 26 | #pragma pack(push) 27 | #endif 28 | #pragma pack(4) 29 | #else 30 | #pragma pack(4) 31 | #endif 32 | #endif // ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 33 | -------------------------------------------------------------------------------- /211INC/PSHPACK8.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1994-1998 Microsoft Corporation 4 | 5 | Module Name: 6 | 7 | pshpack8.h 8 | 9 | Abstract: 10 | 11 | This file turns 8 byte packing of structures on. (That is, it disables 12 | automatic alignment of structure fields.) An include file is needed 13 | because various compilers do this in different ways. For Microsoft 14 | compatible compilers, this files uses the push option to the pack pragma 15 | so that the poppack.h include file can restore the previous packing 16 | reliably. 17 | 18 | The file poppack.h is the complement to this file. 19 | 20 | --*/ 21 | 22 | #if ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 23 | #if ( _MSC_VER >= 800 ) 24 | #pragma warning(disable:4103) 25 | #if !(defined( MIDL_PASS )) || defined( __midl ) 26 | #pragma pack(push) 27 | #endif 28 | #pragma pack(8) 29 | #else 30 | #pragma pack(8) 31 | #endif 32 | #endif // ! (defined(lint) || defined(_lint) || defined(RC_INVOKED)) 33 | -------------------------------------------------------------------------------- /211INC/PWINREG.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | pwinreg.h 11 | 12 | Abstract: 13 | 14 | Private portion of winreg.h 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | 21 | 22 | 23 | #ifndef _PRIV_WINREG_H_ 24 | #define _PRIV_WINREG_H_ 25 | 26 | #ifdef __cplusplus 27 | extern "C" { 28 | #endif 29 | 30 | BOOL RegCopyFile(LPCWSTR lpszFile); 31 | BOOL RegRestoreFile(LPCWSTR lpszFile); 32 | 33 | #define REG_WRITE_BYTES_START 0x00000001 34 | #define REG_WRITE_BYTES_PROBE 0x80000000 35 | #define REG_READ_BYTES_START 0x00000001 36 | 37 | #ifdef __cplusplus 38 | } 39 | #endif /*__cplusplus*/ 40 | 41 | #endif //_PRIV_WINREG_H_ 42 | 43 | -------------------------------------------------------------------------------- /211INC/RPC.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1991-1998 Microsoft Corporation 4 | 5 | Module Name: 6 | 7 | rpc.h 8 | 9 | Abstract: 10 | 11 | Master include file for RPC applications. 12 | 13 | --*/ 14 | 15 | #ifndef RPC_NO_WINDOWS_H 16 | #include 17 | #endif // RPC_NO_WINDOWS_H 18 | 19 | #ifndef __RPC_H__ 20 | #define __RPC_H__ 21 | 22 | #ifdef __cplusplus 23 | extern "C" { 24 | #endif 25 | 26 | #define __RPC_WIN32__ 27 | #define __RPC_NT__ 28 | 29 | typedef void * I_RPC_HANDLE; 30 | typedef long RPC_STATUS; 31 | 32 | #define RPC_UNICODE_SUPPORTED 33 | #define __RPC_FAR 34 | #define __RPC_API __stdcall 35 | #define __RPC_USER __stdcall 36 | #define __RPC_STUB __stdcall 37 | #define RPC_ENTRY __stdcall 38 | 39 | #ifdef THISPREVENTSCOMMFROMCOMPILING 40 | #ifdef IN 41 | #undef IN 42 | #undef OUT 43 | #undef OPTIONAL 44 | #endif /* IN */ 45 | #endif 46 | 47 | // #include "rpcdce.h" 48 | 49 | #include 50 | 51 | #ifdef __cplusplus 52 | } 53 | #endif 54 | 55 | #endif // __RPC_H__ 56 | 57 | -------------------------------------------------------------------------------- /211INC/RPCDCE.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1991-1998 Microsoft Corporation 4 | 5 | Module Name: 6 | 7 | rpcdce.h 8 | 9 | Abstract: 10 | 11 | This module contains the DCE RPC runtime APIs. 12 | 13 | Author: 14 | 15 | Michael Montague (mikemon) 25-Sep-1991 16 | 17 | Revision History: 18 | 19 | --*/ 20 | 21 | #ifndef __RPCDCE_H__ 22 | #define __RPCDCE_H__ 23 | 24 | #ifdef __cplusplus 25 | extern "C" { 26 | #endif 27 | 28 | #define IN 29 | #define OUT 30 | #define OPTIONAL 31 | 32 | #ifndef GUID_DEFINED 33 | #define GUID_DEFINED 34 | typedef struct _GUID 35 | { 36 | unsigned long Data1; 37 | unsigned short Data2; 38 | unsigned short Data3; 39 | unsigned char Data4[8]; 40 | } GUID, *PGUID; 41 | #endif /* GUID_DEFINED */ 42 | 43 | #ifndef UUID_DEFINED 44 | #define UUID_DEFINED 45 | typedef GUID UUID; 46 | #ifndef uuid_t 47 | #define uuid_t UUID 48 | #endif 49 | #endif 50 | 51 | typedef void __RPC_FAR * RPC_IF_HANDLE; 52 | 53 | #ifdef __cplusplus 54 | } 55 | #endif 56 | 57 | #endif /* __RPCDCE_H__ */ 58 | -------------------------------------------------------------------------------- /211INC/SERDBG.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | serdbg.h 11 | 12 | Abstract: 13 | 14 | Serial debugging support 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | 21 | #ifndef __SERDBG_H__ 22 | #define __SERDBG_H__ 23 | 24 | #ifdef DEBUG 25 | // These could be moved to a public header file for use 26 | // in the PDD code. 27 | #define ZONE_INIT DEBUGZONE(0) 28 | #define ZONE_OPEN DEBUGZONE(1) 29 | #define ZONE_READ DEBUGZONE(2) 30 | #define ZONE_WRITE DEBUGZONE(3) 31 | #define ZONE_CLOSE DEBUGZONE(4) 32 | #define ZONE_IOCTL DEBUGZONE(5) 33 | #define ZONE_THREAD DEBUGZONE(6) 34 | #define ZONE_EVENTS DEBUGZONE(7) 35 | #define ZONE_CRITSEC DEBUGZONE(8) 36 | #define ZONE_FLOW DEBUGZONE(9) 37 | #define ZONE_IR DEBUGZONE(10) 38 | #define ZONE_USR_READ DEBUGZONE(11) 39 | #define ZONE_ALLOC DEBUGZONE(12) 40 | #define ZONE_FUNCTION DEBUGZONE(13) 41 | #define ZONE_WARN DEBUGZONE(14) 42 | #define ZONE_ERROR DEBUGZONE(15) 43 | #endif 44 | 45 | 46 | #endif /* __SERDBG_H__ */ 47 | -------------------------------------------------------------------------------- /211INC/SERIAL.DEF: -------------------------------------------------------------------------------- 1 | LIBRARY SERIAL 2 | DESCRIPTION 'Serial Driver MDD Interface' 3 | EXPORTS COM_Init 4 | COM_Deinit 5 | COM_Open 6 | COM_Close 7 | COM_Read 8 | COM_Write 9 | COM_Seek 10 | COM_PowerDown 11 | COM_PowerUp 12 | SerialGetDroppedByteNumber 13 | COM_IOControl 14 | DetectModem 15 | -------------------------------------------------------------------------------- /211INC/SETJMP.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/SIPDEV.H: -------------------------------------------------------------------------------- 1 | #ifndef __INCLUDE_SIPDEV__ 2 | #define __INCLUDE_SIPDEV__ 3 | 4 | #ifdef __cplusplus 5 | extern "C" { 6 | #endif 7 | 8 | 9 | // Device io control commands for the sip. 10 | // Also used as dwCode for WM_SIPTHREADCALL. 11 | #define SIPDEV_SHOW_IM 1 12 | #define SIPDEV_GET_INFO 2 13 | #define SIPDEV_SET_INFO 3 14 | #define SIPDEV_GET_CURRENT_IM 4 15 | #define SIPDEV_SET_CURRENT_IM 5 16 | #define SIPDEV_REGISTER_UI 6 17 | #define SIPDEV_DEFAULT_RECT 7 18 | #define SIPDEV_ENUMERATE 8 19 | #define SIPDEV_IMM_SET_ACTIVE_CONTEXT 9 20 | 21 | 22 | struct SIP_IMM_SET_ACTIVE_CONTEXT 23 | { 24 | HWND hwnd; 25 | BOOL bOpen; 26 | DWORD dwConversion; 27 | DWORD dwSentence; 28 | HKL hkl; 29 | }; 30 | 31 | 32 | 33 | #ifdef __cplusplus 34 | }; 35 | #endif 36 | 37 | #endif//__INCLUDE_SIPDEV__ 38 | -------------------------------------------------------------------------------- /211INC/SPLAPI.H: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/211INC/SPLAPI.H -------------------------------------------------------------------------------- /211INC/SPSEAL.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1992-1998 Microsoft Corporation 4 | 5 | Module Name: spseal.h 6 | 7 | Purpose: Prototypes for security provider encryption routines. 8 | 9 | --*/ 10 | 11 | #ifndef _SPSEAL_ 12 | #define _SPSEAL_ 13 | 14 | SECURITY_STATUS SEC_ENTRY 15 | SealMessage( PCtxtHandle phContext, 16 | unsigned long fQOP, 17 | PSecBufferDesc pMessage, 18 | unsigned long MessageSeqNo); 19 | 20 | typedef SECURITY_STATUS 21 | (SEC_ENTRY * SEAL_MESSAGE_FN)( 22 | PCtxtHandle, unsigned long, PSecBufferDesc, unsigned long); 23 | 24 | 25 | SECURITY_STATUS SEC_ENTRY 26 | UnsealMessage( PCtxtHandle phContext, 27 | PSecBufferDesc pMessage, 28 | unsigned long MessageSeqNo, 29 | unsigned long * pfQOP); 30 | 31 | 32 | typedef SECURITY_STATUS 33 | (SEC_ENTRY * UNSEAL_MESSAGE_FN)( 34 | PCtxtHandle, PSecBufferDesc, unsigned long, 35 | unsigned long *); 36 | 37 | #endif // _SPSEAL_ 38 | -------------------------------------------------------------------------------- /211INC/STDARG.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/STDIO.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/STRING.H: -------------------------------------------------------------------------------- 1 | #include "stdlib.h" 2 | -------------------------------------------------------------------------------- /211INC/ServerCtrl.h: -------------------------------------------------------------------------------- 1 | // ServerCtrl.h : main header file for the ServerCtrl application 2 | // 3 | 4 | #if !defined(AFX_ServerCtrl_H__E2974CA6_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_) 5 | #define AFX_ServerCtrl_H__E2974CA6_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_ 6 | 7 | #if _MSC_VER > 1000 8 | #pragma once 9 | #endif // _MSC_VER > 1000 10 | 11 | #ifndef __AFXWIN_H__ 12 | #error include 'stdafx.h' before including this file for PCH 13 | #endif 14 | 15 | #include "resource.h" // main symbols 16 | 17 | ///////////////////////////////////////////////////////////////////////////// 18 | // CServerCtrlApp: 19 | // See ServerCtrl.cpp for the implementation of this class 20 | // 21 | 22 | class CServerCtrlApp : public CWinApp 23 | { 24 | public: 25 | CServerCtrlApp(); 26 | 27 | // Overrides 28 | // ClassWizard generated virtual function overrides 29 | //{{AFX_VIRTUAL(CServerCtrlApp) 30 | public: 31 | virtual BOOL InitInstance(); 32 | //}}AFX_VIRTUAL 33 | 34 | // Implementation 35 | 36 | //{{AFX_MSG(CServerCtrlApp) 37 | //}}AFX_MSG 38 | DECLARE_MESSAGE_MAP() 39 | }; 40 | 41 | 42 | ///////////////////////////////////////////////////////////////////////////// 43 | 44 | //{{AFX_INSERT_LOCATION}} 45 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 46 | 47 | #endif // !defined(AFX_ServerCtrl_H__E2974CA6_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_) 48 | -------------------------------------------------------------------------------- /211INC/SpyControl.h: -------------------------------------------------------------------------------- 1 | /******************************************************************** 2 | Module : SpyControl.h - part of CeApiSpyDll implementation 3 | Written 2003 by Dmitri Leman 4 | for an article about CE Api Spy. 5 | Purpose: Contains some common declarations 6 | 7 | This file was compiled using eMbedded Visual C++ 3.0 8 | with Pocket PC 2002 SDK and 4.0 with Standard SDK. 9 | ********************************************************************/ 10 | 11 | #ifndef _SPY_CONTROL_H_ 12 | #define _SPY_CONTROL_H_ 13 | 14 | static const TCHAR s_szApiSpyDll[] = _T("CeApiSpyDll.dll"); 15 | static const TCHAR s_szSettingsRegPath[] = _T("Software\\CeApiSpy"); 16 | static const TCHAR s_szTraceMapFile[] = _T("HckMap.txt"); 17 | 18 | #endif 19 | -------------------------------------------------------------------------------- /211INC/StdAfx.h: -------------------------------------------------------------------------------- 1 | // stdafx.h : include file for standard system include files, 2 | // or project specific include files that are used frequently, but 3 | // are changed infrequently 4 | // 5 | 6 | #if !defined(AFX_STDAFX_H__E2974CAA_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_) 7 | #define AFX_STDAFX_H__E2974CAA_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_ 8 | 9 | #if _MSC_VER > 1000 10 | #pragma once 11 | #endif // _MSC_VER > 1000 12 | 13 | #define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers 14 | 15 | #include // MFC core and standard components 16 | #include // MFC extensions 17 | #include // MFC support for Internet Explorer 4 Common Controls 18 | #ifndef _AFX_NO_AFXCMN_SUPPORT 19 | #include // MFC support for Windows Common Controls 20 | #endif // _AFX_NO_AFXCMN_SUPPORT 21 | 22 | 23 | //{{AFX_INSERT_LOCATION}} 24 | // Microsoft Visual C++ will insert additional declarations immediately before the previous line. 25 | 26 | #endif // !defined(AFX_STDAFX_H__E2974CAA_EF9F_11D3_A4D9_00105A1727F3__INCLUDED_) 27 | -------------------------------------------------------------------------------- /211INC/TERMCTRL.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | termctrl.h 11 | 12 | Abstract: 13 | 14 | Functions: 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | #ifndef _TERMCTRL_H_ 21 | #define _TERMCTRL_H_ 22 | 23 | //====== TERMINAL EMULATOR CONTROL =========================================== 24 | 25 | 26 | #define TERMCTRL_CLASSNAME TEXT("TermCtrl") 27 | 28 | typedef enum { 29 | TW_SUCCESS = 0, // User exitted normally (OK button) 30 | TW_CANCEL, // User clicked the close 'X' (but may have typed okay) 31 | TW_FAILURE // There was a failure creating the window 32 | } TW_RET_TYPE; 33 | 34 | TW_RET_TYPE 35 | TerminalWindow( 36 | HANDLE hCommPort, 37 | LPCTSTR szWindowTitle, 38 | HWND* phWnd 39 | ); 40 | 41 | typedef TW_RET_TYPE (* PFNTERMINALWINDOW) ( 42 | HANDLE hCommPort, 43 | LPCTSTR szWindowTitle, 44 | HWND* phWnd 45 | ); 46 | 47 | #endif // _TERMCTRL_H_ 48 | 49 | 50 | -------------------------------------------------------------------------------- /211INC/TOOLHELP.H: -------------------------------------------------------------------------------- 1 | #ifndef __TOOLHELP_H__ 2 | #define __TOOLHELP_H__ 3 | 4 | #include "tlhelp32.h" 5 | 6 | #define THSNAP_RESERVE (1024*1024) 7 | 8 | #define TH32CS_SNAPNOHEAPS 0x40000000 // optimization for text shell to not snapshot heaps 9 | 10 | typedef struct TH32HEAPENTRY { 11 | HEAPENTRY32 heapentry; 12 | struct TH32HEAPENTRY *pNext; 13 | } TH32HEAPENTRY; 14 | 15 | typedef struct TH32HEAPLIST { 16 | HEAPLIST32 heaplist; 17 | TH32HEAPENTRY *pHeapEntry; 18 | struct TH32HEAPLIST *pNext; 19 | } TH32HEAPLIST, *PTH32HEAPLIST; 20 | 21 | typedef struct TH32PROC { 22 | PROCESSENTRY32 procentry; 23 | TH32HEAPENTRY *pMainHeapEntry; 24 | struct TH32PROC *pNext; 25 | } TH32PROC; 26 | 27 | typedef struct TH32MOD { 28 | MODULEENTRY32 modentry; 29 | struct TH32MOD *pNext; 30 | } TH32MOD; 31 | 32 | typedef struct TH32THREAD { 33 | THREADENTRY32 threadentry; 34 | struct TH32THREAD *pNext; 35 | } TH32THREAD; 36 | 37 | typedef struct THSNAP { 38 | LPBYTE pNextFree; 39 | LPBYTE pHighCommit; 40 | LPBYTE pHighReserve; 41 | TH32PROC *pProc; 42 | TH32MOD *pMod; 43 | TH32THREAD *pThread; 44 | TH32HEAPLIST *pHeap; 45 | } THSNAP; 46 | 47 | #endif 48 | 49 | -------------------------------------------------------------------------------- /211INC/TOUCH.DEF: -------------------------------------------------------------------------------- 1 | LIBRARY TOUCH 2 | DESCRIPTION 'Touch Panel Driver DLL" 3 | EXPORTS 4 | STDAPI(TouchPanelGetDeviceCaps, 8); 5 | STDAPI(TouchPanelEnable,4); 6 | STDAPI(TouchPanelDisable,0); 7 | STDAPI(TouchPanelSetMode, 8); 8 | STDAPI(TouchPanelReadCalibrationPoint, 8); 9 | STDAPI(TouchPanelReadCalibrationAbort, 0); 10 | STDAPI(TouchPanelSetCalibration, 20); 11 | STDAPI(TouchPanelCalibrateAPoint, 16); 12 | STDAPI(TouchPanelPowerHandler, 4); 13 | -------------------------------------------------------------------------------- /211INC/TYPES.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1995-1998 Microsoft Corporation 4 | 5 | Module Name: types.h 6 | 7 | Purpose: Type definitions. 8 | 9 | --*/ 10 | 11 | /* Useful typedefs */ 12 | 13 | #ifndef _TYPES_H_ 14 | #define _TYPES_H_ 15 | 16 | /* The left side of these typedefs are machine and compiler dependent */ 17 | typedef signed char INT8; 18 | typedef unsigned char UINT8; 19 | typedef signed short INT16; 20 | typedef unsigned short UINT16; 21 | typedef signed int INT32; 22 | typedef unsigned int UINT32; 23 | typedef signed __int64 INT64; 24 | typedef unsigned __int64 UINT64; 25 | typedef struct _INT128 { UINT32 u0,u1,u2; INT32 u3; } INT128; 26 | typedef struct _UINT128 { UINT32 u0,u1,u2,u3; } UINT128; 27 | 28 | typedef INT8 *PINT8; 29 | typedef UINT8 *PUINT8; 30 | typedef INT16 *PINT16; 31 | typedef UINT16 *PUINT16; 32 | typedef INT32 *PINT32; 33 | typedef UINT32 *PUINT32; 34 | typedef INT64 *PINT64; 35 | typedef UINT64 *PUINT64; 36 | typedef INT128 *PINT128; 37 | typedef UINT128 *PUINT128; 38 | 39 | 40 | typedef const void * PCVOID; 41 | typedef void ** PPVOID; 42 | 43 | typedef unsigned char uchar; 44 | typedef unsigned short ushort; 45 | typedef unsigned int uint; 46 | typedef unsigned long ulong; 47 | typedef void (*PFNVOID)(); 48 | typedef CHAR * LPCHAR; 49 | 50 | typedef HANDLE HPROCESS; 51 | typedef HANDLE HTHREAD; 52 | 53 | typedef LPCRECT PCRECT; 54 | 55 | typedef DWORD WIN32_ERROR_CODE; 56 | 57 | #endif // _TYPES_H_ 58 | 59 | -------------------------------------------------------------------------------- /211INC/UNIMODEM.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF 3 | ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO 4 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A 5 | PARTICULAR PURPOSE. 6 | Copyright (c) 1995-1998 Microsoft Corporation 7 | 8 | Module Name: 9 | 10 | unimodem.h 11 | 12 | Abstract: 13 | 14 | Device specific header for unimodem TSPI 15 | 16 | Notes: 17 | 18 | 19 | --*/ 20 | 21 | #ifndef _UNIMODEM_H_ 22 | #define _UNIMODEM_H_ 23 | 24 | // DeviceType defines -- Moved here from modem.h 25 | // 26 | #define DT_NULL_MODEM 0 27 | #define DT_EXTERNAL_MODEM 1 28 | #define DT_INTERNAL_MODEM 2 29 | #define DT_PCMCIA_MODEM 3 30 | #define DT_PARALLEL_PORT 4 31 | #define DT_PARALLEL_MODEM 5 32 | #define DT_IRCOMM_MODEM 6 33 | 34 | // The following info is returned from the unimodem GetDevCaps call as the 35 | // device specific data. The wDeviceType indicates the type of device on 36 | // the port, and the wActive field indicates if the port is currently active. 37 | // This field will normally be 1 for all TAPi device except PCMCIA cards which 38 | // have been removed from the system. 39 | typedef struct UNIMODEM_INFO { 40 | WORD wDeviceType; 41 | WORD wActive; 42 | } UNIMODEM_INFO; 43 | 44 | #endif _UNIMODEM_H_ 45 | -------------------------------------------------------------------------------- /211INC/VGUI_ActionSignal.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_ACTIONSIGNAL_H 3 | #define VGUI_ACTIONSIGNAL_H 4 | 5 | #include 6 | 7 | /* 8 | 9 | TODO: maybe try something like this.. 10 | 11 | class VGUIAPI ActionSignal 12 | { 13 | }; 14 | 15 | class VGUIAPI ActionSignalSimple : public ActionSignal 16 | { 17 | public: 18 | virtual void actionPerformed(Panel* panel)=0; 19 | }; 20 | 21 | class VGUIAPI ActionSignalInt : public ActionSignal 22 | { 23 | public: 24 | virtual void actionPerformed(int value,Panel* panel)=0; 25 | }; 26 | 27 | 28 | DefaultButtonModel would implement: 29 | 30 | virtual void addActionSignal(ActionSignal* s) 31 | { 32 | if(s!=null) 33 | { 34 | _actionSignalDar.putElement(s); 35 | } 36 | } 37 | 38 | virtual void fireActionSignal() 39 | { 40 | for(int i=0;i<_actionSignalDar.getCount();i++) 41 | { 42 | ActionSignal* signal=_actionSignalDar[i]; 43 | 44 | ActionSignalSimple* ss=dynamic_cast(signal); 45 | if(ss!=null) 46 | { 47 | ss->actionPerformed(this); 48 | } 49 | 50 | ActionSignalCommand* si=dynamic_cast(signal); 51 | if(si!=null) 52 | { 53 | si->actionPerformed(_intValue,this); 54 | } 55 | } 56 | } 57 | 58 | 59 | */ 60 | 61 | #include 62 | 63 | namespace vgui 64 | { 65 | 66 | class Panel; 67 | 68 | class VGUIAPI ActionSignal 69 | { 70 | public: 71 | virtual void actionPerformed(Panel* panel)=0; 72 | }; 73 | 74 | } 75 | 76 | #endif 77 | 78 | 79 | -------------------------------------------------------------------------------- /211INC/VGUI_Bitmap.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_BITMAP_H 3 | #define VGUI_BITMAP_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Panel; 12 | 13 | class VGUIAPI Bitmap : public Image 14 | { 15 | private: 16 | int _id; 17 | bool _uploaded; 18 | public: 19 | Bitmap(); 20 | protected: 21 | virtual void setSize(int wide,int tall); 22 | virtual void setRGBA(int x,int y,uchar r,uchar g,uchar b,uchar a); 23 | public: 24 | virtual void paint(Panel* panel); 25 | protected: 26 | uchar* _rgba; 27 | }; 28 | 29 | } 30 | 31 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_BitmapTGA.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_BITMAPTGA_H 3 | #define VGUI_BITMAPTGA_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Panel; 11 | class InputStream; 12 | 13 | class VGUIAPI BitmapTGA : public Bitmap 14 | { 15 | public: 16 | BitmapTGA(InputStream* is,bool invertAlpha); 17 | private: 18 | virtual bool loadTGA(InputStream* is,bool invertAlpha); 19 | }; 20 | 21 | } 22 | 23 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_Border.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_BORDER_H 3 | #define VGUI_BORDER_H 4 | 5 | #include 6 | #include 7 | 8 | //TODO: all borders should be titled 9 | 10 | namespace vgui 11 | { 12 | 13 | class Panel; 14 | 15 | class VGUIAPI Border : public Image 16 | { 17 | public: 18 | Border(); 19 | Border(int left,int top,int right,int bottom); 20 | public: 21 | virtual void setInset(int left,int top,int right,int bottom); 22 | virtual void getInset(int& left,int& top,int& right,int& bottom); 23 | protected: 24 | virtual void drawFilledRect(int x0,int y0,int x1,int y1); 25 | virtual void drawOutlinedRect(int x0,int y0,int x1,int y1); 26 | virtual void drawSetTextPos(int x,int y); 27 | virtual void drawPrintText(int x,int y,const char* str,int strlen); 28 | virtual void drawPrintChar(int x,int y,char ch); 29 | protected: 30 | int _inset[4]; 31 | private: 32 | Panel* _panel; 33 | friend class Panel; 34 | friend class BorderPair; 35 | }; 36 | 37 | } 38 | 39 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_BorderLayout.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_BORDERLAYOUT_H 3 | #define VGUI_BORDERLAYOUT_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class LayoutInfo; 12 | 13 | class VGUIAPI BorderLayout : public Layout 14 | { 15 | public: 16 | enum Alignment 17 | { 18 | a_center=0, 19 | a_north, 20 | a_south, 21 | a_east, 22 | a_west, 23 | }; 24 | private: 25 | int _inset; 26 | public: 27 | BorderLayout(int inset); 28 | public: 29 | virtual void performLayout(Panel* panel); 30 | virtual LayoutInfo* createLayoutInfo(Alignment alignment); 31 | }; 32 | 33 | } 34 | 35 | #endif 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /211INC/VGUI_BorderPair.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_BORDERPAIR_H 3 | #define VGUI_BORDERPAIR_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Panel; 12 | 13 | class VGUIAPI BorderPair : public Border 14 | { 15 | public: 16 | BorderPair(Border* border0,Border* border1); 17 | public: 18 | virtual void doPaint(Panel* panel); 19 | protected: 20 | virtual void paint(Panel* panel); 21 | protected: 22 | Border* _border[2]; 23 | }; 24 | 25 | } 26 | 27 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_ButtonController.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_BUTTONCONTROLLER_H 3 | #define VGUI_BUTTONCONTROLLER_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Button; 11 | 12 | class VGUIAPI ButtonController 13 | { 14 | public: 15 | virtual void addSignals(Button* button)=0; 16 | virtual void removeSignals(Button* button)=0; 17 | }; 18 | 19 | } 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /211INC/VGUI_ButtonGroup.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_BUTTONGROUP_H 3 | #define VGUI_BUTTONGROUP_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Button; 12 | 13 | class VGUIAPI ButtonGroup 14 | { 15 | public: 16 | virtual void addButton(Button* button); 17 | virtual void setSelected(Button* button); 18 | protected: 19 | Dar _buttonDar; 20 | }; 21 | 22 | } 23 | 24 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_ChangeSignal.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_CHANGESIGNAL_H 3 | #define VGUI_CHANGESIGNAL_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Panel; 11 | 12 | class VGUIAPI ChangeSignal 13 | { 14 | public: 15 | virtual void valueChanged(Panel* panel)=0; 16 | }; 17 | 18 | } 19 | 20 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_CheckButton.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_CHECKBUTTON_H 3 | #define VGUI_CHECKBUTTON_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI CheckButton : public ToggleButton 12 | { 13 | public: 14 | CheckButton(const char* text,int x,int y,int wide,int tall); 15 | CheckButton(const char* text,int x,int y); 16 | protected: 17 | virtual void paintBackground(); 18 | }; 19 | 20 | } 21 | 22 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_Color.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_COLOR_H 3 | #define VGUI_COLOR_H 4 | 5 | #include 6 | #include 7 | 8 | //TODO: rename getColor(r,g,b,a) to getRGBA(r,g,b,a) 9 | //TODO: rename setColor(r,g,b,a) to setRGBA(r,g,b,a) 10 | //TODO: rename getColor(sc) to getSchemeColor(sc) 11 | //TODO: rename setColor(sc) to setSchemeColor(sc) 12 | 13 | namespace vgui 14 | { 15 | 16 | class VGUIAPI Color 17 | { 18 | private: 19 | uchar _color[4]; 20 | Scheme::SchemeColor _schemeColor; 21 | public: 22 | Color(); 23 | Color(int r,int g,int b,int a); 24 | Color(Scheme::SchemeColor sc); 25 | private: 26 | virtual void init(); 27 | public: 28 | virtual void setColor(int r,int g,int b,int a); 29 | virtual void setColor(Scheme::SchemeColor sc); 30 | virtual void getColor(int& r,int& g,int& b,int& a); 31 | virtual void getColor(Scheme::SchemeColor& sc); 32 | virtual int operator[](int index); 33 | }; 34 | 35 | } 36 | 37 | 38 | #endif 39 | -------------------------------------------------------------------------------- /211INC/VGUI_ComboKey.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_COMBOKEY_H 3 | #define VGUI_COMBOKEY_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | enum KeyCode; 11 | 12 | class ComboKey 13 | { 14 | public: 15 | ComboKey(KeyCode code,KeyCode modifier); 16 | public: 17 | bool isTwoCombo(KeyCode code,KeyCode modifier); 18 | protected: 19 | bool check(KeyCode code); 20 | protected: 21 | KeyCode _keyCode[2]; 22 | friend class Panel; 23 | }; 24 | 25 | } 26 | 27 | 28 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_ConfigWizard.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_CONFIGWIZARD_H 3 | #define VGUI_CONFIGWIZARD_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class TreeFolder; 12 | class Panel; 13 | class Button; 14 | 15 | class VGUIAPI ConfigWizard : public Panel 16 | { 17 | public: 18 | ConfigWizard(int x,int y,int wide,int tall); 19 | public: 20 | virtual void setSize(int wide,int tall); 21 | virtual Panel* getClient(); 22 | virtual TreeFolder* getFolder(); 23 | protected: 24 | TreeFolder* _treeFolder; 25 | Panel* _client; 26 | Button* _okButton; 27 | Button* _cancelButton; 28 | Button* _applyButton; 29 | Button* _helpButton; 30 | }; 31 | 32 | } 33 | 34 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_Cursor.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_CURSOR_H 3 | #define VGUI_CURSOR_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Bitmap; 11 | 12 | class VGUIAPI Cursor 13 | { 14 | public: 15 | enum DefaultCursor 16 | { 17 | dc_user, 18 | dc_none, 19 | dc_arrow, 20 | dc_ibeam, 21 | dc_hourglass, 22 | dc_crosshair, 23 | dc_up, 24 | dc_sizenwse, 25 | dc_sizenesw, 26 | dc_sizewe, 27 | dc_sizens, 28 | dc_sizeall, 29 | dc_no, 30 | dc_hand, 31 | dc_last, 32 | }; 33 | private: 34 | int _hotspot[2]; 35 | Bitmap* _bitmap; 36 | DefaultCursor _dc; 37 | public: 38 | Cursor(DefaultCursor dc); 39 | Cursor(Bitmap* bitmap,int hotspotX,int hotspotY); 40 | public: 41 | virtual void getHotspot(int& x,int& y); 42 | private: 43 | virtual void privateInit(Bitmap* bitmap,int hotspotX,int hotspotY); 44 | public: 45 | virtual Bitmap* getBitmap(); 46 | virtual DefaultCursor getDefaultCursor(); 47 | }; 48 | 49 | } 50 | 51 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_DataInputStream.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_DATAINPUTSTREAM_H 3 | #define VGUI_DATAINPUTSTREAM_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI DataInputStream : virtual public InputStream 12 | { 13 | private: 14 | InputStream* _is; 15 | public: 16 | DataInputStream(InputStream* is); 17 | public: 18 | virtual void seekStart(bool& success); 19 | virtual void seekRelative(int count,bool& success); 20 | virtual void seekEnd(bool& success); 21 | virtual int getAvailable(bool& success); 22 | //virtual uchar readUChar(bool& success); 23 | virtual void readUChar(uchar* buf,int count,bool& success); 24 | virtual void close(bool& success); 25 | virtual void close(); 26 | public: 27 | virtual bool readBool(bool& success); 28 | virtual char readChar(bool& success); 29 | virtual uchar readUChar(bool& success); 30 | virtual short readShort(bool& success); 31 | virtual ushort readUShort(bool& success); 32 | virtual int readInt(bool& success); 33 | virtual uint readUInt(bool& success); 34 | virtual long readLong(bool& success); 35 | virtual ulong readULong(bool& success); 36 | virtual float readFloat(bool& success); 37 | virtual double readDouble(bool& success); 38 | virtual void readLine(char* buf,int bufLen,bool& success); 39 | }; 40 | 41 | } 42 | 43 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_Desktop.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_DESKTOP_H 3 | #define VGUI_DESKTOP_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | namespace vgui 10 | { 11 | 12 | class DesktopIcon; 13 | class TaskBar; 14 | 15 | class VGUIAPI Desktop : public Panel 16 | { 17 | public: 18 | Desktop(int x,int y,int wide,int tall); 19 | public: 20 | virtual void setSize(int wide,int tall); 21 | virtual void iconActivated(DesktopIcon* icon); 22 | virtual void addIcon(DesktopIcon* icon); 23 | virtual void arrangeIcons(); 24 | virtual Panel* getBackground(); 25 | virtual Panel* getForeground(); 26 | protected: 27 | Panel* _background; 28 | Panel* _foreground; 29 | TaskBar* _taskBar; 30 | Dar _desktopIconDar; 31 | int _cascade[2]; 32 | }; 33 | 34 | } 35 | 36 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_DesktopIcon.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_DESKTOPICON_H 3 | #define VGUI_DESKTOPICON_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class MiniApp; 12 | class Image; 13 | class Desktop; 14 | 15 | class VGUIAPI DesktopIcon : public Panel 16 | { 17 | public: 18 | DesktopIcon(MiniApp* miniApp,Image* image); 19 | public: 20 | virtual void doActivate(); 21 | virtual void setImage(Image* image); 22 | public: //bullshit public 23 | virtual void setDesktop(Desktop* desktop); 24 | virtual MiniApp* getMiniApp(); 25 | protected: 26 | virtual void paintBackground(); 27 | protected: 28 | Desktop* _desktop; 29 | MiniApp* _miniApp; 30 | Image* _image; 31 | }; 32 | 33 | } 34 | 35 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_EtchedBorder.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_ETCHEDBORDER_H 3 | #define VGUI_ETCHEDBORDER_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Panel; 12 | 13 | class VGUIAPI EtchedBorder : public Border 14 | { 15 | public: 16 | EtchedBorder(); 17 | protected: 18 | virtual void paint(Panel* panel); 19 | }; 20 | 21 | } 22 | 23 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_FileInputStream.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_FILEINPUTSTREAM_H 3 | #define VGUI_FILEINPUTSTREAM_H 4 | 5 | //TODO : figure out how to get stdio out of here, I think std namespace is broken for FILE for forward declaring does not work in vc6 6 | 7 | #include 8 | #include 9 | 10 | namespace vgui 11 | { 12 | 13 | class VGUIAPI FileInputStream : public InputStream 14 | { 15 | private: 16 | FILE* _fp; 17 | public: 18 | FileInputStream(const char* fileName,bool textMode); 19 | public: 20 | virtual void seekStart(bool& success); 21 | virtual void seekRelative(int count,bool& success); 22 | virtual void seekEnd(bool& success); 23 | virtual int getAvailable(bool& success); 24 | virtual uchar readUChar(bool& success); 25 | virtual void readUChar(uchar* buf,int count,bool& success); 26 | virtual void close(bool& success); 27 | virtual void close(); 28 | }; 29 | 30 | } 31 | 32 | #endif 33 | -------------------------------------------------------------------------------- /211INC/VGUI_FlowLayout.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_FLOWLAYOUT_H 3 | #define VGUI_FLOWLAYOUT_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI FlowLayout : public Layout 12 | { 13 | private: 14 | int _hgap; 15 | public: 16 | FlowLayout(int hgap); 17 | public: 18 | virtual void performLayout(Panel* panel); 19 | }; 20 | 21 | } 22 | 23 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_FocusChangeSignal.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_FOCUSCHANGESIGNAL_H 3 | #define VGUI_FOCUSCHANGESIGNAL_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Panel; 11 | 12 | class VGUIAPI FocusChangeSignal 13 | { 14 | public: 15 | virtual void focusChanged(bool lost,Panel* panel)=0; 16 | }; 17 | 18 | } 19 | 20 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_FocusNavGroup.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_FOCUSNAVGROUP_H 3 | #define VGUI_FOCUSNAVGROUP_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Panel; 12 | 13 | class VGUIAPI FocusNavGroup 14 | { 15 | public: 16 | FocusNavGroup(); 17 | protected: 18 | virtual void addPanel(Panel* panel); 19 | virtual void requestFocusPrev(); 20 | virtual void requestFocusNext(); 21 | virtual void setCurrentPanel(Panel* panel); 22 | protected: 23 | Dar _panelDar; 24 | int _currentIndex; 25 | friend class Panel; 26 | }; 27 | } 28 | 29 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_Font.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_FONT_H 3 | #define VGUI_FONT_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class BaseFontPlat; 11 | 12 | //TODO: cursors and fonts should work like gl binds 13 | class VGUIAPI Font 14 | { 15 | public: 16 | Font(const char* name,int tall,int wide,float rotation,int weight,bool italic,bool underline,bool strikeout,bool symbol); 17 | // If pFileData is non-NULL, then it will try to load the 32-bit (RLE) TGA file. If that fails, 18 | // it will create the font using the specified parameters. 19 | // pUniqueName should be set if pFileData and fileDataLen are set so it can determine if a font is already loaded. 20 | Font(const char* name,void *pFileData,int fileDataLen, int tall,int wide,float rotation,int weight,bool italic,bool underline,bool strikeout,bool symbol); 21 | private: 22 | virtual void init(const char* name,void *pFileData,int fileDataLen, int tall,int wide,float rotation,int weight,bool italic,bool underline,bool strikeout,bool symbol); 23 | public: 24 | BaseFontPlat* getPlat(); 25 | virtual void getCharRGBA(int ch,int rgbaX,int rgbaY,int rgbaWide,int rgbaTall,uchar* rgba); 26 | virtual void getCharABCwide(int ch,int& a,int& b,int& c); 27 | virtual void getTextSize(const char* text,int& wide,int& tall); 28 | virtual int getTall(); 29 | virtual int getId(); 30 | protected: 31 | char* _name; 32 | BaseFontPlat* _plat; 33 | int _id; 34 | friend class Surface; 35 | }; 36 | 37 | 38 | void Font_Reset(); 39 | 40 | } 41 | 42 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_FrameSignal.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_FRAMESIGNAL_H 3 | #define VGUI_FRAMESIGNAL_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Frame; 11 | 12 | class VGUIAPI FrameSignal 13 | { 14 | public: 15 | virtual void closing(Frame* frame)=0; 16 | virtual void minimizing(Frame* frame,bool toTray)=0; 17 | }; 18 | 19 | } 20 | 21 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_GridLayout.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_GRIDLAYOUT_H 3 | #define VGUI_GRIDLAYOUT_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | /* 12 | class VGUIAPI GridLayout : public Layout 13 | { 14 | public: 15 | GridLayout(int rows,int cols,int hgap,int vgap); 16 | protected: 17 | int _rows; 18 | int _cols; 19 | }; 20 | */ 21 | 22 | } 23 | 24 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_HeaderPanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_HEADERPANEL_H 3 | #define VGUI_HEADERPANEL_H 4 | 5 | #include 6 | #include 7 | #include 8 | #include 9 | 10 | namespace vgui 11 | { 12 | 13 | enum MouseCode; 14 | class ChangeSignal; 15 | 16 | class VGUIAPI HeaderPanel : public Panel 17 | { 18 | 19 | private: 20 | 21 | Dar _sliderPanelDar; 22 | Dar _sectionPanelDar; 23 | Dar _changeSignalDar; 24 | Panel* _sectionLayer; 25 | int _sliderWide; 26 | bool _dragging; 27 | int _dragSliderIndex; 28 | int _dragSliderStartPos; 29 | int _dragSliderStartX; 30 | 31 | public: 32 | 33 | HeaderPanel(int x,int y,int wide,int tall); 34 | 35 | protected: 36 | 37 | virtual void performLayout(); 38 | 39 | public: 40 | 41 | virtual void addSectionPanel(Panel* panel); 42 | virtual void setSliderPos(int sliderIndex,int pos); 43 | virtual int getSectionCount(); 44 | virtual void getSectionExtents(int sectionIndex,int& x0,int& x1); 45 | virtual void addChangeSignal(ChangeSignal* s); 46 | 47 | public: //bullshit public 48 | 49 | virtual void fireChangeSignal(); 50 | virtual void privateCursorMoved(int x,int y,Panel* panel); 51 | virtual void privateMousePressed(MouseCode code,Panel* panel); 52 | virtual void privateMouseReleased(MouseCode code,Panel* panel); 53 | 54 | }; 55 | 56 | } 57 | 58 | #endif 59 | 60 | -------------------------------------------------------------------------------- /211INC/VGUI_ImagePanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_IMAGEPANEL_H 3 | #define VGUI_IMAGEPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Image; 12 | 13 | class VGUIAPI ImagePanel : public Panel 14 | { 15 | public: 16 | ImagePanel(Image* image); 17 | public: 18 | virtual void setImage(Image* image); 19 | protected: 20 | virtual void paintBackground(); 21 | protected: 22 | Image* _image; 23 | }; 24 | 25 | } 26 | 27 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_InputSignal.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_INPUTSIGNAL_H 3 | #define VGUI_INPUTSIGNAL_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | enum MouseCode; 11 | enum KeyCode; 12 | class Panel; 13 | 14 | //these are lumped into one for simplicity sake right now 15 | class VGUIAPI InputSignal 16 | { 17 | public: 18 | virtual void cursorMoved(int x,int y,Panel* panel)=0; 19 | virtual void cursorEntered(Panel* panel)=0; 20 | virtual void cursorExited(Panel* panel)=0; 21 | virtual void mousePressed(MouseCode code,Panel* panel)=0; 22 | virtual void mouseDoublePressed(MouseCode code,Panel* panel)=0; 23 | virtual void mouseReleased(MouseCode code,Panel* panel)=0; 24 | virtual void mouseWheeled(int delta,Panel* panel)=0; 25 | virtual void keyPressed(KeyCode code,Panel* panel)=0; 26 | virtual void keyTyped(KeyCode code,Panel* panel)=0; 27 | virtual void keyReleased(KeyCode code,Panel* panel)=0; 28 | virtual void keyFocusTicked(Panel* panel)=0; 29 | //virtual void hotKeyTyped(const HotKey* hotKey,Panel* panel)=0; 30 | }; 31 | 32 | } 33 | 34 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_InputStream.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_FILE_H 3 | #define VGUI_FILE_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class VGUIAPI InputStream 11 | { 12 | public: 13 | virtual void seekStart(bool& success)=0; 14 | virtual void seekRelative(int count,bool& success)=0; 15 | virtual void seekEnd(bool& success)=0; 16 | virtual int getAvailable(bool& success)=0; 17 | virtual uchar readUChar(bool& success)=0; 18 | virtual void readUChar(uchar* buf,int count,bool& success)=0; 19 | virtual void close(bool& success)=0; 20 | }; 21 | 22 | } 23 | 24 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_IntChangeSignal.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_INTCHANGESIGNAL_H 3 | #define VGUI_INTCHANGESIGNAL_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Panel; 11 | 12 | class VGUIAPI IntChangeSignal 13 | { 14 | public: 15 | virtual void intChanged(int value,Panel* panel)=0; 16 | }; 17 | 18 | } 19 | 20 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_IntLabel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_INTLABEL_H 3 | #define VGUI_INTLABEL_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | namespace vgui 10 | { 11 | 12 | class Panel; 13 | 14 | class VGUIAPI IntLabel : public Label , public IntChangeSignal 15 | { 16 | public: 17 | IntLabel(int value,int x,int y,int wide,int tall); 18 | public: 19 | virtual void setValue(int value); 20 | virtual void intChanged(int value,Panel* panel); 21 | protected: 22 | virtual void paintBackground(); 23 | protected: 24 | int _value; 25 | }; 26 | 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /211INC/VGUI_Layout.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_LAYOUT_H 3 | #define VGUI_LAYOUT_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Panel; 11 | 12 | class VGUIAPI Layout 13 | { 14 | //private: 15 | // Panel* _panel; 16 | public: 17 | Layout(); 18 | public: 19 | //virtual void setPanel(Panel* panel); //called by Panel::setLayout 20 | virtual void performLayout(Panel* panel); 21 | }; 22 | 23 | } 24 | 25 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_LayoutInfo.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_LAYOUTINFO_H 3 | #define VGUI_LAYOUTINFO_H 4 | 5 | namespace vgui 6 | { 7 | 8 | class VGUIAPI LayoutInfo 9 | { 10 | virtual LayoutInfo* getThis()=0; 11 | }; 12 | 13 | } 14 | 15 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_LineBorder.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_LINEBORDER_H 3 | #define VGUI_LINEBORDER_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | namespace vgui 10 | { 11 | 12 | class Panel; 13 | 14 | class VGUIAPI LineBorder : public Border 15 | { 16 | private: 17 | Color _color; 18 | public: 19 | LineBorder(); 20 | LineBorder(int thickness); 21 | LineBorder(Color color); 22 | LineBorder(int thickness,Color color); 23 | private: 24 | virtual void init(int thickness,Color color); 25 | protected: 26 | virtual void paint(Panel* panel); 27 | }; 28 | 29 | } 30 | 31 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_ListPanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_LISTPANEL_H 3 | #define VGUI_LISTPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class ScrollBar; 12 | 13 | //TODO: make a ScrollPanel and use a constrained one for _vpanel in ListPanel 14 | class VGUIAPI ListPanel : public Panel 15 | { 16 | public: 17 | ListPanel(int x,int y,int wide,int tall); 18 | public: 19 | virtual void setSize(int wide,int tall); 20 | virtual void addString(const char* str); 21 | virtual void addItem(Panel* panel); 22 | virtual void setPixelScroll(int value); 23 | virtual void translatePixelScroll(int delta); 24 | protected: 25 | virtual void performLayout(); 26 | virtual void paintBackground(); 27 | protected: 28 | Panel* _vpanel; 29 | ScrollBar* _scroll; 30 | }; 31 | 32 | } 33 | 34 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_LoweredBorder.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_LOWEREDBORDER_H 3 | #define VGUI_LOWEREDBORDER_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Panel; 12 | 13 | class VGUIAPI LoweredBorder : public Border 14 | { 15 | public: 16 | LoweredBorder(); 17 | protected: 18 | virtual void paint(Panel* panel); 19 | }; 20 | 21 | } 22 | 23 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_Menu.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_MENU_H 3 | #define VGUI_MENU_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Panel; 12 | 13 | class VGUIAPI Menu : public Panel 14 | { 15 | public: 16 | Menu(int x,int y,int wide,int tall); 17 | Menu(int wide,int tall); 18 | public: 19 | virtual void addMenuItem(Panel* panel); 20 | }; 21 | 22 | } 23 | 24 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_MenuItem.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_MENUITEM_H 3 | #define VGUI_MENUITEM_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Menu; 12 | 13 | class VGUIAPI MenuItem : public Button 14 | { 15 | public: 16 | MenuItem(const char* text); 17 | MenuItem(const char* text,Menu* subMenu); 18 | protected: 19 | Menu* _subMenu; 20 | }; 21 | 22 | } 23 | 24 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_MenuSeparator.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_MENUSEPARATOR_H 3 | #define VGUI_MENUSEPARATOR_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI MenuSeparator : public Label 12 | { 13 | public: 14 | MenuSeparator(const char* text); 15 | protected: 16 | virtual void paintBackground(); 17 | }; 18 | 19 | } 20 | 21 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_MessageBox.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_MESSAGEBOX_H 3 | #define VGUI_MESSAGEBOX_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | 10 | namespace vgui 11 | { 12 | 13 | class Label; 14 | class Button; 15 | class ActionSignal; 16 | 17 | class VGUIAPI MessageBox : public Frame 18 | { 19 | 20 | private: 21 | 22 | Label* _messageLabel; 23 | Button* _okButton; 24 | Dar _actionSignalDar; 25 | 26 | public: 27 | 28 | MessageBox(const char* title,const char* text,int x,int y); 29 | 30 | protected: 31 | 32 | virtual void performLayout(); 33 | 34 | public: 35 | 36 | virtual void addActionSignal(ActionSignal* s); 37 | virtual void fireActionSignal(); 38 | 39 | }; 40 | 41 | } 42 | 43 | 44 | 45 | 46 | 47 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_MiniApp.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_MINIAPP_H 3 | #define VGUI_MINIAPP_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | 10 | class Frame; 11 | 12 | class VGUIAPI MiniApp 13 | { 14 | public: 15 | MiniApp(); 16 | public: 17 | virtual void getName(char* buf,int bufLen); 18 | virtual Frame* createInstance()=0; 19 | protected: 20 | virtual void setName(const char* name); 21 | protected: 22 | char* _name; 23 | }; 24 | 25 | } 26 | 27 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_MouseCode.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_MOUSECODE_H 3 | #define VGUI_MOUSECODE_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | enum VGUIAPI MouseCode 10 | { 11 | MOUSE_LEFT=0, 12 | MOUSE_RIGHT, 13 | MOUSE_MIDDLE, 14 | MOUSE_LAST, 15 | }; 16 | } 17 | 18 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_PopupMenu.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_POPUPMENU_H 3 | #define VGUI_POPUPMENU_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Panel; 12 | 13 | class VGUIAPI PopupMenu : public Menu 14 | { 15 | public: 16 | PopupMenu(int x,int y,int wide,int tall); 17 | PopupMenu(int wide,int tall); 18 | public: 19 | virtual void showModal(Panel* panel); 20 | }; 21 | 22 | } 23 | 24 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_ProgressBar.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_PROGRESSBAR_H 3 | #define VGUI_PROGRESSBAR_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI ProgressBar : public Panel 12 | { 13 | private: 14 | int _segmentCount; 15 | float _progress; 16 | public: 17 | ProgressBar(int segmentCount); 18 | protected: 19 | virtual void paintBackground(); 20 | public: 21 | virtual void setProgress(float progress); 22 | virtual int getSegmentCount(); 23 | }; 24 | 25 | } 26 | 27 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_RadioButton.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_RADIOBUTTON_H 3 | #define VGUI_RADIOBUTTON_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI RadioButton : public ToggleButton 12 | { 13 | public: 14 | RadioButton(const char* text,int x,int y,int wide,int tall); 15 | RadioButton(const char* text,int x,int y); 16 | protected: 17 | virtual void paintBackground(); 18 | }; 19 | 20 | } 21 | 22 | #endif 23 | 24 | -------------------------------------------------------------------------------- /211INC/VGUI_RaisedBorder.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_RAISEDBORDER_H 3 | #define VGUI_RAISEDBORDER_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class Panel; 12 | 13 | class VGUIAPI RaisedBorder : public Border 14 | { 15 | public: 16 | RaisedBorder(); 17 | protected: 18 | virtual void paint(Panel* panel); 19 | }; 20 | 21 | } 22 | 23 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_RepaintSignal.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_REPAINTSIGNAL_H 3 | #define VGUI_REPAINTSIGNAL_H 4 | 5 | 6 | 7 | namespace vgui 8 | { 9 | 10 | class RepaintSignal 11 | { 12 | public: 13 | virtual void panelRepainted(Panel* panel)=0; 14 | }; 15 | 16 | } 17 | 18 | 19 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_Scheme.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_SCHEME_H 3 | #define VGUI_SCHEME_H 4 | 5 | #include 6 | 7 | 8 | namespace vgui 9 | { 10 | 11 | class Font; 12 | class Cursor; 13 | 14 | class VGUIAPI Scheme 15 | { 16 | public: 17 | enum SchemeColor 18 | { 19 | sc_user=0, 20 | sc_black, 21 | sc_white, 22 | sc_primary1, 23 | sc_primary2, 24 | sc_primary3, 25 | sc_secondary1, 26 | sc_secondary2, 27 | sc_secondary3, 28 | sc_last, 29 | }; 30 | enum SchemeFont 31 | { 32 | sf_user=0, 33 | sf_primary1, 34 | sf_primary2, 35 | sf_primary3, 36 | sf_secondary1, 37 | sf_last, 38 | }; 39 | enum SchemeCursor 40 | { 41 | scu_user=0, 42 | scu_none, 43 | scu_arrow, 44 | scu_ibeam, 45 | scu_hourglass, 46 | scu_crosshair, 47 | scu_up, 48 | scu_sizenwse, 49 | scu_sizenesw, 50 | scu_sizewe, 51 | scu_sizens, 52 | scu_sizeall, 53 | scu_no, 54 | scu_hand, 55 | scu_last, 56 | }; 57 | public: 58 | Scheme(); 59 | public: 60 | virtual void setColor(SchemeColor sc,int r,int g,int b,int a); 61 | virtual void getColor(SchemeColor sc,int& r,int& g,int& b,int& a); 62 | virtual void setFont(SchemeFont sf,Font* font); 63 | virtual Font* getFont(SchemeFont sf); 64 | virtual void setCursor(SchemeCursor sc,Cursor* cursor); 65 | virtual Cursor* getCursor(SchemeCursor sc); 66 | protected: 67 | int _color[sc_last][4]; 68 | Font* _font[sf_last]; 69 | Cursor* _cursor[scu_last]; 70 | friend class Panel; 71 | friend class Canvas; 72 | }; 73 | 74 | } 75 | 76 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_ScrollBar.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_SCROLLBAR_H 3 | #define VGUI_SCROLLBAR_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | namespace vgui 10 | { 11 | 12 | class IntChangeSignal; 13 | class Button; 14 | class Slider; 15 | 16 | class VGUIAPI ScrollBar : public Panel 17 | { 18 | public: 19 | ScrollBar(int x,int y,int wide,int tall,bool vertical); 20 | public: 21 | virtual void setValue(int value); 22 | virtual int getValue(); 23 | virtual void addIntChangeSignal(IntChangeSignal* s); 24 | virtual void setRange(int min,int max); 25 | virtual void setRangeWindow(int rangeWindow); 26 | virtual void setRangeWindowEnabled(bool state); 27 | virtual void setSize(int wide,int tall); 28 | virtual bool isVertical(); 29 | virtual bool hasFullRange(); 30 | virtual void setButton(Button* button,int index); 31 | virtual Button* getButton(int index); 32 | virtual void setSlider(Slider* slider); 33 | virtual Slider* getSlider(); 34 | virtual void doButtonPressed(int buttonIndex); 35 | virtual void setButtonPressedScrollValue(int value); 36 | virtual void validate(); 37 | public: //bullshit public 38 | virtual void fireIntChangeSignal(); 39 | protected: 40 | virtual void performLayout(); 41 | protected: 42 | Button* _button[2]; 43 | Slider* _slider; 44 | Dar _intChangeSignalDar; 45 | int _buttonPressedScrollValue; 46 | }; 47 | 48 | } 49 | 50 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_ScrollPanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_SCROLLPANEL_H 3 | #define VGUI_SCROLLPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | //NOTE: You need to call validate anytime you change a scrollbar 9 | 10 | namespace vgui 11 | { 12 | 13 | class ScrollBar; 14 | 15 | class VGUIAPI ScrollPanel : public Panel 16 | { 17 | private: 18 | Panel* _clientClip; 19 | Panel* _client; 20 | ScrollBar* _horizontalScrollBar; 21 | ScrollBar* _verticalScrollBar; 22 | bool _autoVisible[2]; 23 | public: 24 | ScrollPanel(int x,int y,int wide,int tall); 25 | protected: 26 | virtual void setSize(int wide,int tall); 27 | public: 28 | virtual void setScrollBarVisible(bool horizontal,bool vertical); 29 | virtual void setScrollBarAutoVisible(bool horizontal,bool vertical); 30 | virtual Panel* getClient(); 31 | virtual Panel* getClientClip(); 32 | virtual void setScrollValue(int horizontal,int vertical); 33 | virtual void getScrollValue(int& horizontal,int& vertical); 34 | virtual void recomputeClientSize(); 35 | virtual ScrollBar* getHorizontalScrollBar(); 36 | virtual ScrollBar* getVerticalScrollBar(); 37 | virtual void validate(); 38 | public: //bullshit public 39 | virtual void recomputeScroll(); 40 | }; 41 | 42 | } 43 | 44 | 45 | 46 | 47 | 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /211INC/VGUI_StackLayout.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_STACKLAYOUT_H 3 | #define VGUI_STACKLAYOUT_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI StackLayout : public Layout 12 | { 13 | private: 14 | int _vgap; 15 | bool _fitWide; 16 | public: 17 | StackLayout(int vgap,bool fitWide); 18 | public: 19 | virtual void performLayout(Panel* panel); 20 | }; 21 | 22 | } 23 | 24 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_String.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_STRING_H 3 | #define VGUI_STRING_H 4 | 5 | #include 6 | 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI String 12 | { 13 | 14 | friend class String; 15 | 16 | private: 17 | 18 | char* _text; 19 | 20 | public: 21 | 22 | String(); 23 | String(const char* text); 24 | String(const String& src); 25 | 26 | public: 27 | 28 | ~String(); 29 | 30 | private: 31 | 32 | int getCount(const char* text); 33 | 34 | public: 35 | 36 | int getCount(); 37 | String operator+(String text); 38 | String operator+(const char* text); 39 | bool operator==(String text); 40 | bool operator==(const char* text); 41 | char operator[](int index); 42 | const char* getChars(); 43 | 44 | public: 45 | 46 | static void test(); 47 | 48 | }; 49 | 50 | 51 | } 52 | 53 | 54 | #endif 55 | 56 | -------------------------------------------------------------------------------- /211INC/VGUI_TabPanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_TABPANEL_H 3 | #define VGUI_TABPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class ButtonGroup; 12 | 13 | class VGUIAPI TabPanel : public Panel 14 | { 15 | public: 16 | enum TabPlacement 17 | { 18 | tp_top=0, 19 | tp_bottom, 20 | tp_left, 21 | tp_right, 22 | }; 23 | public: 24 | TabPanel(int x,int y,int wide,int tall); 25 | public: 26 | virtual Panel* addTab(const char* text); 27 | virtual void setSelectedTab(Panel* tab); 28 | virtual void setSize(int wide,int tall); 29 | protected: 30 | virtual void recomputeLayoutTop(); 31 | virtual void recomputeLayout(); 32 | protected: 33 | TabPlacement _tabPlacement; 34 | Panel* _tabArea; 35 | Panel* _clientArea; 36 | Panel* _selectedTab; 37 | Panel* _selectedPanel; 38 | ButtonGroup* _buttonGroup; 39 | }; 40 | 41 | } 42 | 43 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_TaskBar.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_TASKBAR_H 3 | #define VGUI_TASKBAR_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | namespace vgui 10 | { 11 | 12 | class Frame; 13 | class Button; 14 | 15 | class VGUIAPI TaskBar : public Panel 16 | { 17 | public: 18 | TaskBar(int x,int y,int wide,int tall); 19 | public: 20 | virtual void addFrame(Frame* frame); 21 | protected: 22 | virtual void performLayout(); 23 | protected: 24 | Dar _frameDar; 25 | Dar _taskButtonDar; 26 | Panel* _tray; 27 | }; 28 | 29 | } 30 | 31 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_TextGrid.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_TEXTGRID_H 3 | #define VGUI_TEXTGRID_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | namespace vgui 10 | { 11 | 12 | class VGUIAPI TextGrid : public Panel 13 | { 14 | public: 15 | TextGrid(int gridWide,int gridTall,int x,int y,int wide,int tall); 16 | public: 17 | virtual void setGridSize(int wide,int tall); 18 | virtual void newLine(); 19 | virtual void setXY(int x,int y); 20 | //virtual void setBgColor(int r,int g,int b); 21 | //virtual void setFgColor(int r,int g,int b); 22 | virtual int vprintf(const char* format,va_list argList); 23 | virtual int printf(const char* format,...); 24 | protected: 25 | virtual void paintBackground(); 26 | protected: 27 | int _xy[2]; 28 | int _bgColor[3]; 29 | int _fgColor[3]; 30 | char* _grid; //[_gridSize[0]*_gridSize[1]*7] ch,br,bg,bb,fr,fg,fb 31 | int _gridSize[2]; 32 | }; 33 | 34 | } 35 | 36 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_TextImage.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_TEXTIMAGE_H 3 | #define VGUI_TEXTIMAGE_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | 10 | //TODO: need to add wrapping flag instead of being arbitrary about when wrapping and auto-resizing actually happens 11 | // This is probably why you are having problems if you had text in a constructor and then changed the font 12 | 13 | namespace vgui 14 | { 15 | 16 | class Panel; 17 | class Font; 18 | class App; 19 | 20 | class VGUIAPI TextImage : public Image 21 | { 22 | private: 23 | char* _text; 24 | int _textBufferLen; 25 | vgui::Scheme::SchemeFont _schemeFont; 26 | vgui::Font* _font; 27 | int _textColor[4]; 28 | vgui::Scheme::SchemeColor _textSchemeColor; 29 | public: 30 | TextImage(int textBufferLen,const char* text); 31 | TextImage(const char* text); 32 | private: 33 | virtual void init(int textBufferLen,const char* text); 34 | public: 35 | virtual void getTextSize(int& wide,int& tall); 36 | virtual void getTextSizeWrapped(int& wide,int& tall); 37 | virtual Font* getFont(); 38 | virtual void setText(int textBufferLen,const char* text); 39 | virtual void setText(const char* text); 40 | virtual void setFont(vgui::Scheme::SchemeFont schemeFont); 41 | virtual void setFont(vgui::Font* font); 42 | virtual void setSize(int wide,int tall); 43 | protected: 44 | virtual void paint(Panel* panel); 45 | }; 46 | 47 | } 48 | 49 | #endif 50 | 51 | 52 | 53 | -------------------------------------------------------------------------------- /211INC/VGUI_TextPanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_TEXTPANEL_H 3 | #define VGUI_TEXTPANEL_H 4 | 5 | #include 6 | #include 7 | #include 8 | 9 | //NOTE : If you are having trouble with this class, your problem is probably in TextImage 10 | 11 | namespace vgui 12 | { 13 | 14 | class TextImage; 15 | class Font; 16 | 17 | class VGUIAPI TextPanel : public Panel 18 | { 19 | private: 20 | TextImage* _textImage; 21 | public: 22 | TextPanel(const char* text,int x,int y,int wide,int tall); 23 | public: 24 | virtual void setText(const char* text); 25 | virtual void setFont(vgui::Scheme::SchemeFont schemeFont); 26 | virtual void setFont(vgui::Font* font); 27 | virtual void setSize(int wide,int tall); 28 | virtual void setFgColor(int r,int g,int b,int a); 29 | virtual void setFgColor(Scheme::SchemeColor sc); 30 | virtual TextImage* getTextImage(); 31 | protected: 32 | virtual void paint(); 33 | }; 34 | 35 | } 36 | 37 | #endif 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /211INC/VGUI_TickSignal.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_TICKSIGNAL_H 3 | #define VGUI_TICKSIGNAL_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | class VGUIAPI TickSignal 10 | { 11 | public: 12 | virtual void ticked()=0; 13 | }; 14 | } 15 | 16 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_ToggleButton.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_TOGGLEBUTTON_H 3 | #define VGUI_TOGGLEBUTTON_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI ToggleButton : public Button 12 | { 13 | public: 14 | ToggleButton(const char* text,int x,int y,int wide,int tall); 15 | ToggleButton(const char* text,int x,int y); 16 | }; 17 | 18 | } 19 | 20 | #endif -------------------------------------------------------------------------------- /211INC/VGUI_TreeFolder.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_TREEFOLDER_H 3 | #define VGUI_TREEFOLDER_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | 11 | class VGUIAPI TreeFolder : public Panel 12 | { 13 | public: 14 | TreeFolder(const char* name); 15 | TreeFolder(const char* name,int x,int y); 16 | protected: 17 | virtual void init(const char* name); 18 | public: 19 | virtual void setOpenedTraverse(bool state); 20 | virtual void setOpened(bool state); 21 | virtual bool isOpened(); 22 | protected: 23 | virtual void paintBackground(); 24 | protected: 25 | bool _opened; 26 | }; 27 | 28 | } 29 | 30 | #endif -------------------------------------------------------------------------------- /211INC/WAVEDEV.DEF: -------------------------------------------------------------------------------- 1 | LIBRARY WAVEDEV 2 | 3 | DESCRIPTION 'Wave In/Out Device Driver' 4 | 5 | EXPORTS 6 | WAV_Init 7 | WAV_Deinit 8 | WAV_Open 9 | WAV_Close 10 | WAV_Read 11 | WAV_Write 12 | WAV_Seek 13 | WAV_IOControl 14 | WAV_PowerUp 15 | WAV_PowerDown 16 | -------------------------------------------------------------------------------- /211INC/WINCRERR.H: -------------------------------------------------------------------------------- 1 | 2 | #define CHANGES_TO_MERGE_WITH_WINERROR_H 3 | 4 | // 5 | // when adding to this file, PLEASE update the following "nexts": 6 | // 7 | #define CRYPT_NEXT_0x8009_ERROR_CODE_AVAILABLE 0x2026 8 | #define CRYPT_NEXT_0x800B_ERROR_CODE_AVAILABLE 0x010C 9 | 10 | #ifdef CHANGES_TO_MERGE_WITH_WINERROR_H 11 | 12 | #endif // CHANGES_TO_MERGE_WITH_WINERROR_H 13 | 14 | // #ifdef 15 | 16 | // # ifdef _SHOW_WINCRERR_MSG 17 | // # pragma message("WINCRERR.H: timer to clean up section (CRYPT_E_FILERESIZED)") 18 | // # endif 19 | 20 | // #else 21 | 22 | // #endif // error define 23 | -------------------------------------------------------------------------------- /211INC/WINDOWS.H: -------------------------------------------------------------------------------- 1 | /*++ 2 | 3 | Copyright (c) 1995-1998 Microsoft Corporation 4 | 5 | Module Name: windows.h 6 | 7 | Purpose: Master include file for Windows applications. 8 | 9 | --*/ 10 | 11 | #ifndef __WINDOWS__ 12 | #define __WINDOWS__ 13 | 14 | #ifdef SHx 15 | #pragma warning(disable:4710) 16 | #endif 17 | 18 | #include 19 | #include 20 | #include 21 | #include 22 | #include 23 | #include 24 | #include 25 | #ifndef WINCEMACRO 26 | #include 27 | #endif 28 | 29 | #include 30 | 31 | #include 32 | #include 33 | 34 | //#ifdef _WIN32_WCE_EMULATION 35 | //#include 36 | //#endif 37 | 38 | #endif /* __WINDOWS__ */ 39 | 40 | -------------------------------------------------------------------------------- /211INC/WINMGDI.H: -------------------------------------------------------------------------------- 1 | 2 | 3 | winmgdi.h should no longer be included by anyone.... 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /211INC/WINRES.H: -------------------------------------------------------------------------------- 1 | // This is a part of the Microsoft Foundation Classes C++ library. 2 | // Copyright (C) 1992-1998 Microsoft Corporation 3 | // All rights reserved. 4 | // 5 | // This source code is only intended as a supplement to the 6 | // Microsoft Foundation Classes Reference and related 7 | // electronic documentation provided with the library. 8 | // See these sources for detailed information regarding the 9 | // Microsoft Foundation Classes product. 10 | 11 | // winres.h - Windows resource definitions 12 | // extracted from WINUSER.H and COMMCTRL.H 13 | 14 | #ifdef _AFX_MINREBUILD 15 | #pragma component(minrebuild, off) 16 | #endif 17 | 18 | #define VS_VERSION_INFO 1 19 | 20 | #ifdef APSTUDIO_INVOKED 21 | #define APSTUDIO_HIDDEN_SYMBOLS // Ignore following symbols 22 | #endif 23 | 24 | #ifndef WINVER 25 | #define WINVER 0x0400 // default to Windows Version 4.0 26 | #endif 27 | 28 | #include 29 | 30 | // operation messages sent to DLGINIT 31 | #define LB_ADDSTRING (WM_USER+1) 32 | #define CB_ADDSTRING (WM_USER+3) 33 | 34 | #ifdef APSTUDIO_INVOKED 35 | #undef APSTUDIO_HIDDEN_SYMBOLS 36 | #endif 37 | 38 | #ifdef IDC_STATIC 39 | #undef IDC_STATIC 40 | #endif 41 | #define IDC_STATIC (-1) 42 | 43 | #ifdef _AFX_MINREBUILD 44 | #pragma component(minrebuild, on) 45 | #endif 46 | -------------------------------------------------------------------------------- /211INC/_defs.h: -------------------------------------------------------------------------------- 1 | /* _defs.h 2 | 3 | Common definitions for pointer size and calling conventions. 4 | 5 | Copyright (c) 1991 by Borland International 6 | All Rights Reserved. 7 | */ 8 | 9 | #if !defined( __DEFS_H ) 10 | #define __DEFS_H 11 | 12 | #if __STDC__ 13 | # define _Cdecl 14 | #else 15 | # define _Cdecl cdecl 16 | #endif 17 | 18 | #ifndef __PAS__ 19 | # define _CType _Cdecl 20 | #else 21 | # define _CType pascal 22 | #endif 23 | 24 | #if !__STDC__ 25 | # if defined(__TINY__) || defined(__SMALL__) || defined(__MEDIUM__) 26 | # define _CLASSTYPE near 27 | # elif defined(__COMPACT__) || defined(__LARGE__) 28 | # define _CLASSTYPE far 29 | # else 30 | # define _CLASSTYPE huge 31 | # endif 32 | #endif 33 | 34 | #define _FAR 35 | #define _FARFUNC 36 | 37 | #if defined( __cplusplus ) 38 | # define _PTRDEF(name) typedef name * P##name; 39 | # define _REFDEF(name) typedef name & R##name; 40 | # define _REFPTRDEF(name) typedef name * & RP##name; 41 | # define _PTRCONSTDEF(name) typedef const name * PC##name; 42 | # define _REFCONSTDEF(name) typedef const name & RC##name; 43 | # define _CLASSDEF(name) class _CLASSTYPE name; \ 44 | _PTRDEF(name) \ 45 | _REFDEF(name) \ 46 | _REFPTRDEF(name) \ 47 | _PTRCONSTDEF(name) \ 48 | _REFCONSTDEF(name) 49 | #endif 50 | 51 | #endif /* __DEFS_H */ -------------------------------------------------------------------------------- /211INC/altinetuistruct.hxx: -------------------------------------------------------------------------------- 1 | #ifndef __ALTINETUISTRUCT_HXX_ 2 | #define __ALTINETUISTRUCT_HXX_ 3 | 4 | 5 | typedef struct { 6 | DWORD dwDlgFlags; 7 | DWORD dwDlgId; 8 | BOOL fUpdateGlobalSecuritySettings; 9 | } ERRORINFODLGTYPE, *PERRORINFODLGTYPE; 10 | 11 | // 12 | // REPLACEABLE_UI Galahad vladimi: Need info on IDC_COOKIE_ALLOW_ALL 13 | // so code calling CookieDlgProc can update registry based on it 14 | // 15 | typedef struct _COOKIE_DLG_INFO { 16 | LPSTR pszServer; 17 | //DWORD cbSize; 18 | LPSTR pszName; 19 | LPSTR pszData; 20 | LPSTR pszDomain; 21 | LPSTR pszPath; 22 | FILETIME *pftExpires; 23 | DWORD dwFlags; 24 | INT cx; 25 | INT cy; 26 | BOOL fAllowAllCookies; 27 | } COOKIE_DLG_INFO, *PCOOKIE_DLG_INFO; 28 | 29 | typedef struct _offline_dlgparams { 30 | LPTSTR lpszURL; 31 | DWORD dwFlags; 32 | } OFFLINE_DLGPARAMS; 33 | 34 | #endif //_ALTINETUI_HXX_ 35 | 36 | -------------------------------------------------------------------------------- /211INC/ammo.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef __AMMO_H__ 17 | #define __AMMO_H__ 18 | 19 | #define MAX_WEAPON_NAME 128 20 | 21 | 22 | #define WEAPON_FLAGS_SELECTONEMPTY 1 23 | 24 | #define WEAPON_IS_ONTARGET 0x40 25 | 26 | struct WEAPON 27 | { 28 | char szName[MAX_WEAPON_NAME]; 29 | int iAmmoType; 30 | int iAmmo2Type; 31 | int iMax1; 32 | int iMax2; 33 | int iSlot; 34 | int iSlotPos; 35 | int iFlags; 36 | int iId; 37 | int iClip; 38 | 39 | int iCount; // # of itesm in plist 40 | 41 | HSPRITE hActive; 42 | wrect_t rcActive; 43 | HSPRITE hInactive; 44 | wrect_t rcInactive; 45 | HSPRITE hAmmo; 46 | wrect_t rcAmmo; 47 | HSPRITE hAmmo2; 48 | wrect_t rcAmmo2; 49 | HSPRITE hCrosshair; 50 | wrect_t rcCrosshair; 51 | HSPRITE hAutoaim; 52 | wrect_t rcAutoaim; 53 | HSPRITE hZoomedCrosshair; 54 | wrect_t rcZoomedCrosshair; 55 | HSPRITE hZoomedAutoaim; 56 | wrect_t rcZoomedAutoaim; 57 | }; 58 | 59 | typedef int AMMO; 60 | 61 | 62 | #endif -------------------------------------------------------------------------------- /211INC/assert1.h: -------------------------------------------------------------------------------- 1 | /********************************************************************** 2 | *< 3 | FILE: assert1.h 4 | 5 | DESCRIPTION: 6 | 7 | CREATED BY: Dan Silva 8 | 9 | HISTORY: 10 | 11 | *> Copyright (c) 1994, All Rights Reserved. 12 | **********************************************************************/ 13 | 14 | #ifdef assert 15 | #undef assert 16 | #endif 17 | 18 | #define assert( expr ) ( expr || assert1( /*#expr,*/ __LINE__, __FILE__ ) ) 19 | 20 | #define MaxAssert( expr ) ( (expr) || assert1( __LINE__, __FILE__ ) ) 21 | 22 | extern int UtilExport assert1( /*char *expr,*/ int line, char *file ); 23 | 24 | #ifdef _DEBUG 25 | #define DbgAssert( expr ) ( (expr) || assert1( __LINE__, __FILE__ ) ) 26 | #define DbgVerify( expr ) ( (expr) || assert1( __LINE__, __FILE__ ) ) 27 | #else 28 | #define DbgAssert( expr ) 29 | #define DbgVerify( expr ) ( expr ) 30 | #endif 31 | -------------------------------------------------------------------------------- /211INC/camera.h: -------------------------------------------------------------------------------- 1 | // Camera.h -- defines and such for a 3rd person camera 2 | // NOTE: must include quakedef.h first 3 | 4 | #ifndef _CAMERA_H_ 5 | #define _CAMEA_H_ 6 | 7 | // pitch, yaw, dist 8 | extern vec3_t cam_ofs; 9 | // Using third person camera 10 | extern int cam_thirdperson; 11 | 12 | void CAM_Init( void ); 13 | void CAM_ClearStates( void ); 14 | void CAM_StartMouseMove(void); 15 | void CAM_EndMouseMove(void); 16 | 17 | #endif // _CAMERA_H_ 18 | -------------------------------------------------------------------------------- /211INC/cdll_dll.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // cdll_dll.h 17 | 18 | // this file is included by both the game-dll and the client-dll, 19 | 20 | #ifndef CDLL_DLL_H 21 | #define CDLL_DLL_H 22 | 23 | #define MAX_WEAPONS 32 // ??? 24 | 25 | #define MAX_WEAPON_SLOTS 5 // hud item selection slots 26 | #define MAX_ITEM_TYPES 6 // hud item selection slots 27 | 28 | #define MAX_ITEMS 5 // hard coded item types 29 | 30 | #define HIDEHUD_WEAPONS ( 1<<0 ) 31 | #define HIDEHUD_FLASHLIGHT ( 1<<1 ) 32 | #define HIDEHUD_ALL ( 1<<2 ) 33 | #define HIDEHUD_HEALTH ( 1<<3 ) 34 | 35 | #define MAX_AMMO_TYPES 32 // ??? 36 | #define MAX_AMMO_SLOTS 32 // not really slots 37 | 38 | #define HUD_PRINTNOTIFY 1 39 | #define HUD_PRINTCONSOLE 2 40 | #define HUD_PRINTTALK 3 41 | #define HUD_PRINTCENTER 4 42 | 43 | 44 | #define WEAPON_SUIT 31 45 | 46 | #endif -------------------------------------------------------------------------------- /211INC/cl_dll.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // cl_dll.h 17 | // 18 | 19 | // 4-23-98 JOHN 20 | 21 | // 22 | // This DLL is linked by the client when they first initialize. 23 | // This DLL is responsible for the following tasks: 24 | // - Loading the HUD graphics upon initialization 25 | // - Drawing the HUD graphics every frame 26 | // - Handling the custum HUD-update packets 27 | // 28 | typedef unsigned char byte; 29 | typedef unsigned short word; 30 | typedef float vec_t; 31 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 32 | 33 | #include "util_vector.h" 34 | #define EXPORT _declspec( dllexport ) 35 | 36 | #include "../engine/cdll_int.h" 37 | #include "../dlls/cdll_dll.h" 38 | 39 | extern cl_enginefunc_t gEngfuncs; 40 | -------------------------------------------------------------------------------- /211INC/com_weapons.h: -------------------------------------------------------------------------------- 1 | // com_weapons.h 2 | // Shared weapons common function prototypes 3 | #if !defined( COM_WEAPONSH ) 4 | #define COM_WEAPONSH 5 | #ifdef _WIN32 6 | #pragma once 7 | #endif 8 | 9 | #include "hud_iface.h" 10 | 11 | extern "C" 12 | { 13 | void _DLLEXPORT HUD_PostRunCmd( struct local_state_s *from, struct local_state_s *to, struct usercmd_s *cmd, int runfuncs, double time, unsigned int random_seed ); 14 | } 15 | 16 | void COM_Log( char *pszFile, char *fmt, ...); 17 | int CL_IsDead( void ); 18 | 19 | float UTIL_SharedRandomFloat( unsigned int seed, float low, float high ); 20 | int UTIL_SharedRandomLong( unsigned int seed, int low, int high ); 21 | 22 | int HUD_GetWeaponAnim( void ); 23 | void HUD_SendWeaponAnim( int iAnim, int body, int force ); 24 | void HUD_PlaySound( char *sound, float volume ); 25 | void HUD_PlaybackEvent( int flags, const struct edict_s *pInvoker, unsigned short eventindex, float delay, float *origin, float *angles, float fparam1, float fparam2, int iparam1, int iparam2, int bparam1, int bparam2 ); 26 | void HUD_SetMaxSpeed( const struct edict_s *ed, float speed ); 27 | int stub_PrecacheModel( char* s ); 28 | int stub_PrecacheSound( char* s ); 29 | unsigned short stub_PrecacheEvent( int type, const char *s ); 30 | const char *stub_NameForFunction ( unsigned long function ); 31 | void stub_SetModel ( struct edict_s *e, const char *m ); 32 | 33 | 34 | extern cvar_t *cl_lw; 35 | 36 | extern int g_runfuncs; 37 | extern vec3_t v_angles; 38 | extern float g_lastFOV; 39 | extern struct local_state_s *g_finalstate; 40 | 41 | #endif -------------------------------------------------------------------------------- /211INC/con_nprint.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( CON_NPRINTH ) 16 | #define CON_NPRINTH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct con_nprint_s 22 | { 23 | int index; // Row # 24 | float time_to_live; // # of seconds before it dissappears 25 | float color[ 3 ]; // RGB colors ( 0.0 -> 1.0 scale ) 26 | } con_nprint_t; 27 | 28 | void Con_NPrintf( int idx, char *fmt, ... ); 29 | void Con_NXPrintf( struct con_nprint_s *info, char *fmt, ... ); 30 | 31 | #endif -------------------------------------------------------------------------------- /211INC/conproc.h: -------------------------------------------------------------------------------- 1 | // conproc.h -- support for external server monitoring programs 2 | #ifndef INC_CONPROCH 3 | #define INC_CONPROCH 4 | 5 | #define CCOM_WRITE_TEXT 0x2 6 | // Param1 : Text 7 | 8 | #define CCOM_GET_TEXT 0x3 9 | // Param1 : Begin line 10 | // Param2 : End line 11 | 12 | #define CCOM_GET_SCR_LINES 0x4 13 | // No params 14 | 15 | #define CCOM_SET_SCR_LINES 0x5 16 | // Param1 : Number of lines 17 | 18 | void InitConProc ( void ); 19 | void DeinitConProc ( void ); 20 | 21 | void WriteStatusText( char *psz ); 22 | 23 | #endif // !INC_CONPROCH -------------------------------------------------------------------------------- /211INC/customentity.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef CUSTOMENTITY_H 16 | #define CUSTOMENTITY_H 17 | 18 | // Custom Entities 19 | 20 | // Start/End Entity is encoded as 12 bits of entity index, and 4 bits of attachment (4:12) 21 | #define BEAMENT_ENTITY(x) ((x)&0xFFF) 22 | #define BEAMENT_ATTACHMENT(x) (((x)>>12)&0xF) 23 | 24 | // Beam types, encoded as a byte 25 | enum 26 | { 27 | BEAM_POINTS = 0, 28 | BEAM_ENTPOINT, 29 | BEAM_ENTS, 30 | BEAM_HOSE, 31 | }; 32 | 33 | #define BEAM_FSINE 0x10 34 | #define BEAM_FSOLID 0x20 35 | #define BEAM_FSHADEIN 0x40 36 | #define BEAM_FSHADEOUT 0x80 37 | 38 | #endif //CUSTOMENTITY_H 39 | -------------------------------------------------------------------------------- /211INC/dedicated.h: -------------------------------------------------------------------------------- 1 | // dedicated.h 2 | #ifndef INC_DEDICATEDH 3 | #define INC_DEDICATEDH 4 | 5 | int Eng_Frame ( int fForce, double time ); 6 | int Eng_Load ( const char *cmdline, struct exefuncs_s *pef, int memory, void *pmembase, const char *psz, int iSubMode ); 7 | void Eng_Unload ( void); 8 | void Eng_SetState ( int ); 9 | void Eng_SetSubState ( int ); 10 | 11 | 12 | char *CheckParm ( const char *psz, char **ppszValue = (char **)0 ); 13 | 14 | 15 | extern int gDLLState; 16 | extern int gDLLStateInfo; 17 | 18 | #endif -------------------------------------------------------------------------------- /211INC/demo.h: -------------------------------------------------------------------------------- 1 | #if !defined( DEMOH ) 2 | #define DEMOH 3 | #pragma once 4 | 5 | // Types of demo messages we can write/parse 6 | enum 7 | { 8 | TYPE_SNIPERDOT = 0, 9 | TYPE_ZOOM 10 | }; 11 | 12 | void Demo_WriteBuffer( int type, int size, unsigned char *buffer ); 13 | 14 | extern int g_demosniper; 15 | extern int g_demosniperdamage; 16 | extern float g_demosniperorg[3]; 17 | extern float g_demosniperangles[3]; 18 | extern float g_demozoom; 19 | 20 | #endif -------------------------------------------------------------------------------- /211INC/demo_api.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( DEMO_APIH ) 16 | #define DEMO_APIH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct demo_api_s 22 | { 23 | int ( *IsRecording ) ( void ); 24 | int ( *IsPlayingback ) ( void ); 25 | int ( *IsTimeDemo ) ( void ); 26 | void ( *WriteBuffer ) ( int size, unsigned char *buffer ); 27 | } demo_api_t; 28 | 29 | extern demo_api_t demoapi; 30 | 31 | #endif -------------------------------------------------------------------------------- /211INC/devcas.h: -------------------------------------------------------------------------------- 1 | /*++ 2 | Copyright (c) 1999 Microsoft Corporation 3 | 4 | Module Name: 5 | devcas.h 6 | 7 | Abstract: 8 | This file defines constants, macros, data structures and prototypes/inline 9 | functions releated to Sega DevCas 10 | 11 | Revision History: 12 | 03-29-99 qiangw created 13 | --*/ 14 | 15 | #ifndef _DEVCAS_H_ 16 | #define _DEVCAS_H_ 17 | 18 | #include 19 | #include 20 | #include 21 | #include 22 | 23 | #define DEVCAS_PRIMARY_DEVICE_NAME TEXT("\\Device\\SCSI0") 24 | #define DEVCAS_SECONDARY_DEVICE_NAME TEXT("\\Device\\SCSI1") 25 | 26 | #define DEVCAS_FUNCTION_CODE_BASE 0x200 27 | 28 | #define IOCTL_DEVCAS_GET_STATUS \ 29 | CTL_CODE(FILE_DEVICE_CONTROLLER, \ 30 | (DEVCAS_FUNCTION_CODE_BASE + 0), \ 31 | METHOD_BUFFERED, \ 32 | FILE_READ_ACCESS) 33 | #define IOCTL_DEVCAS_HOST_ATTENTION \ 34 | CTL_CODE(FILE_DEVICE_CONTROLLER, \ 35 | (DEVCAS_FUNCTION_CODE_BASE + 1), \ 36 | METHOD_BUFFERED, \ 37 | FILE_READ_ACCESS) 38 | #define IOCTL_DEVCAS_PURGE \ 39 | CTL_CODE(FILE_DEVICE_CONTROLLER, \ 40 | (DEVCAS_FUNCTION_CODE_BASE + 2), \ 41 | METHOD_BUFFERED, \ 42 | FILE_READ_ACCESS) 43 | 44 | #define DEVCAS_STATUS_HOST_ATTENTION 0x00000001 45 | 46 | #endif 47 | -------------------------------------------------------------------------------- /211INC/dlight.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( DLIGHTH ) 16 | #define DLIGHTH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct 22 | { 23 | vec3_t origin; 24 | float radius; 25 | color24 color; 26 | float die; // stop lighting after this time 27 | float decay; // drop this each second 28 | float minlight; // don't add when contributing less 29 | int key; 30 | qboolean dark; // subtracts light instead of adding 31 | } dlight_t; 32 | 33 | #endif -------------------------------------------------------------------------------- /211INC/dll_state.h: -------------------------------------------------------------------------------- 1 | //DLL State Flags 2 | 3 | #define DLL_INACTIVE 0 // no dll 4 | #define DLL_ACTIVE 1 // dll is running 5 | #define DLL_PAUSED 2 // dll is paused 6 | #define DLL_CLOSE 3 // closing down dll 7 | #define DLL_TRANS 4 // Level Transition 8 | 9 | // DLL Pause reasons 10 | 11 | #define DLL_NORMAL 0 // User hit Esc or something. 12 | #define DLL_QUIT 4 // Quit now 13 | 14 | // DLL Substate info ( not relevant ) 15 | #define ENG_NORMAL (1<<0) 16 | -------------------------------------------------------------------------------- /211INC/doors.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef DOORS_H 16 | #define DOORS_H 17 | 18 | // doors 19 | #define SF_DOOR_ROTATE_Y 0 20 | #define SF_DOOR_START_OPEN 1 21 | #define SF_DOOR_ROTATE_BACKWARDS 2 22 | #define SF_DOOR_PASSABLE 8 23 | #define SF_DOOR_ONEWAY 16 24 | #define SF_DOOR_NO_AUTO_RETURN 32 25 | #define SF_DOOR_ROTATE_Z 64 26 | #define SF_DOOR_ROTATE_X 128 27 | #define SF_DOOR_USE_ONLY 256 // door must be opened by player's use button. 28 | #define SF_DOOR_NOMONSTERS 512 // Monster can't open 29 | #define SF_DOOR_SILENT 0x80000000 30 | 31 | 32 | 33 | #endif //DOORS_H 34 | -------------------------------------------------------------------------------- /211INC/dtags.h: -------------------------------------------------------------------------------- 1 | // This is a sample DTrace tags file. Please modify for your own needs. 2 | 3 | TAG_FILE_START 4 | 5 | TAG_RANGE_START(TAG_RANGE_APP , "My Dreamcast Game" ) 6 | 7 | TAG_SUBRANGE( APP_Frame, "Per Frame Code" ) 8 | TAG_FN( GameLogic, "Game Logic including physics and simulation","","" ) 9 | TAG_FN( Rendering, "D3DIM rendering the 3D scene","","" ) 10 | TAG_FN( Flipping, "Page flip between front buffer and back buffer","","" ) 11 | 12 | TAG_SUBRANGE( APP_Initialization, "Game Initialization Code" ) 13 | TAG_FN( DirectXInit, "DirectX Initialization","","" ) 14 | TAG_FN( TextureInit, "Loading textures","","" ) 15 | TAG_FN( SoundInit, "Loading sound clips","","" ) 16 | 17 | TAG_RANGE_END 18 | 19 | 20 | TAG_FILE_END 21 | 22 | /* 23 | 24 | **************************** 25 | Sample usage: 26 | **************************** 27 | 28 | ***** application file1.cpp: ***** 29 | 30 | #include 31 | 32 | #include "DTags.h" // this has to be included exactly once per application 33 | 34 | main() 35 | { 36 | LOG_INIT; // This must be called once per app or new thread before logging any events 37 | 38 | InitApp(); 39 | } 40 | 41 | 42 | InitApp() 43 | { 44 | LOG_ENTER( DirectXInit ) // Log entry into a function 45 | ..... 46 | LOG_EXIT( DirectXInit ) // Log exit from a function 47 | } 48 | 49 | */ 50 | -------------------------------------------------------------------------------- /211INC/edict.h: -------------------------------------------------------------------------------- 1 | #if !defined EDICT_H 2 | #define EDICT_H 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | #define MAX_ENT_LEAFS 48 7 | 8 | struct edict_s 9 | { 10 | qboolean free; 11 | int serialnumber; 12 | link_t area; // linked to a division node or leaf 13 | 14 | int headnode; // -1 to use normal leaf check 15 | int num_leafs; 16 | short leafnums[MAX_ENT_LEAFS]; 17 | 18 | float freetime; // sv.time when the object was freed 19 | 20 | void* pvPrivateData; // Alloced and freed by engine, used by DLLs 21 | 22 | entvars_t v; // C exported fields from progs 23 | 24 | // other fields from progs come immediately after 25 | }; 26 | 27 | #endif 28 | -------------------------------------------------------------------------------- /211INC/entity_types.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // entity_types.h 16 | #if !defined( ENTITY_TYPESH ) 17 | #define ENTITY_TYPESH 18 | 19 | #define ET_NORMAL 0 20 | #define ET_PLAYER 1 21 | #define ET_TEMPENTITY 2 22 | #define ET_BEAM 3 23 | // BMODEL or SPRITE that was split across BSP nodes 24 | #define ET_FRAGMENTED 4 25 | 26 | #endif // !ENTITY_TYPESH -------------------------------------------------------------------------------- /211INC/event_args.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( EVENT_ARGSH ) 16 | #define EVENT_ARGSH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | // Event was invoked with stated origin 22 | #define FEVENT_ORIGIN ( 1<<0 ) 23 | 24 | // Event was invoked with stated angles 25 | #define FEVENT_ANGLES ( 1<<1 ) 26 | 27 | typedef struct event_args_s 28 | { 29 | int flags; 30 | 31 | // Transmitted 32 | int entindex; 33 | 34 | float origin[3]; 35 | float angles[3]; 36 | float velocity[3]; 37 | 38 | int ducking; 39 | 40 | float fparam1; 41 | float fparam2; 42 | 43 | int iparam1; 44 | int iparam2; 45 | 46 | int bparam1; 47 | int bparam2; 48 | } event_args_t; 49 | 50 | #endif 51 | -------------------------------------------------------------------------------- /211INC/exefuncs.h: -------------------------------------------------------------------------------- 1 | // exefuncs.h 2 | #ifndef EXEFUNCS_H 3 | #define EXEFUNCS_H 4 | 5 | // Engine hands this to DLLs for functionality callbacks 6 | typedef struct exefuncs_s 7 | { 8 | int fMMX; 9 | int iCPUMhz; 10 | void (*unused1)(void); 11 | void (*unused2)(void); 12 | void (*unused3)(void); 13 | void (*unused4)(void); 14 | void (*VID_ForceLockState)(int lk); 15 | int (*VID_ForceUnlockedAndReturnState)(void); 16 | void (*unused5)(void); 17 | void (*unused6)(void); 18 | void (*unused7)(void); 19 | void (*unused8)(void); 20 | void (*unused9)(void); 21 | void (*unused10)(void); 22 | void (*unused11)(void); 23 | void (*unused12)(void); 24 | void (*unused13)(void); 25 | void (*unused14)(void); 26 | void (*unused15)(void); 27 | void (*ErrorMessage)(int nLevel, const char *pszErrorMessage); 28 | void (*unused16)(void); 29 | void (*Sys_Printf)(char *fmt, ...); 30 | void (*unused17)(void); 31 | void (*unused18)(void); 32 | void (*unused19)(void); 33 | void (*unused20)(void); 34 | void (*unused21)(void); 35 | void (*unused22)(void); 36 | void (*unused23)(void); 37 | void (*unused24)(void); 38 | void (*unused25)(void); 39 | } exefuncs_t; 40 | 41 | #endif -------------------------------------------------------------------------------- /211INC/explode.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef EXPLODE_H 16 | #define EXPLODE_H 17 | 18 | 19 | #define SF_ENVEXPLOSION_NODAMAGE ( 1 << 0 ) // when set, ENV_EXPLOSION will not actually inflict damage 20 | #define SF_ENVEXPLOSION_REPEATABLE ( 1 << 1 ) // can this entity be refired? 21 | #define SF_ENVEXPLOSION_NOFIREBALL ( 1 << 2 ) // don't draw the fireball 22 | #define SF_ENVEXPLOSION_NOSMOKE ( 1 << 3 ) // don't draw the smoke 23 | #define SF_ENVEXPLOSION_NODECAL ( 1 << 4 ) // don't make a scorch mark 24 | #define SF_ENVEXPLOSION_NOSPARKS ( 1 << 5 ) // don't make a scorch mark 25 | 26 | extern DLL_GLOBAL short g_sModelIndexFireball; 27 | extern DLL_GLOBAL short g_sModelIndexSmoke; 28 | 29 | 30 | extern void ExplosionCreate( const Vector ¢er, const Vector &angles, edict_t *pOwner, int magnitude, BOOL doDamage ); 31 | 32 | #endif //EXPLODE_H 33 | -------------------------------------------------------------------------------- /211INC/exports.h: -------------------------------------------------------------------------------- 1 | // functions exported from front end to engine 2 | #ifndef INC_EXPORTSH 3 | #define INC_EXPORTSH 4 | 5 | extern void ErrorMessage(int nLevel, const char *pszErrorMessage); 6 | 7 | #endif // !INC_EXPORTSH -------------------------------------------------------------------------------- /211INC/floatmathlib.h: -------------------------------------------------------------------------------- 1 | #ifdef __cplusplus 2 | extern "C" { 3 | #endif 4 | float sinhs(float rVal); 5 | float coshs(float rVal); 6 | float tanhs(float rVal); 7 | float exps(float rVal); 8 | float logs(float rVal); 9 | float log10s(float rVal); 10 | float acoss(float); 11 | float asins(float); 12 | float atans(float); 13 | float atan2s(float, float); 14 | float fmods(float, float); 15 | float coss(float); 16 | float tans(float); 17 | float frnds(float); 18 | float sins(float); 19 | float sqrts(float); 20 | float pows(float, float); 21 | float floors(float); 22 | float ceils(float); 23 | #ifdef __cplusplus 24 | }; 25 | #endif 26 | 27 | #define fmod(x, y) fmods((x), (y)) 28 | #define sin(x) sins(x) 29 | #define cos(x) coss(x) 30 | #define tan(x) tans(x) 31 | #define frnd(x) frnds(x) 32 | #define sqrt(x) sqrts(x) 33 | #define asin(x) asins(x) 34 | #define acos(x) acoss(x) 35 | #define atan(x) atans(x) 36 | #define atan2(x, y) atan2s((x), (y)) 37 | #define pow(x, y) pows((x), (y)) 38 | #define floor(x) floors(x) 39 | #define fceil(x) ceils(x) 40 | #define fabs(x) ((x) < 0 ? -(x) : (x)) 41 | #define log(x) logs(x) 42 | #define log10(x) log10s(x) 43 | #define sinh(x) sinhs(x) 44 | #define cosh(x) coshs(x) 45 | #define tanh(x) tanhs(x) 46 | -------------------------------------------------------------------------------- /211INC/game.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef GAME_H 17 | #define GAME_H 18 | 19 | extern void GameDLLInit( void ); 20 | 21 | 22 | extern cvar_t displaysoundlist; 23 | extern cvar_t mapcyclefile; 24 | extern cvar_t servercfgfile; 25 | extern cvar_t lservercfgfile; 26 | 27 | // multiplayer server rules 28 | extern cvar_t fraglimit; 29 | extern cvar_t timelimit; 30 | extern cvar_t friendlyfir; 31 | extern cvar_t falldamage; 32 | extern cvar_t weaponstay; 33 | extern cvar_t forcerespaw; 34 | extern cvar_t flashlight; 35 | extern cvar_t aimcrosshair; 36 | extern cvar_t decalfrequency; 37 | extern cvar_t teamlist; 38 | extern cvar_t teamoverride; 39 | extern cvar_t defaultteam; 40 | 41 | // Engine Cvars 42 | extern cvar_t *g_psv_gravity; 43 | extern cvar_t *g_psv_aim; 44 | extern cvar_t *g_footsteps; 45 | 46 | #endif // GAME_H 47 | -------------------------------------------------------------------------------- /211INC/hliface.idl: -------------------------------------------------------------------------------- 1 | //+--------------------------------------------------------------------------- 2 | // 3 | // Copyright 1995-1997 Microsoft Corporation. All Rights Reserved. 4 | // 5 | // Contents: OLE Hyperlinking interfaces 6 | // 7 | //---------------------------------------------------------------------------- 8 | 9 | cpp_quote("//=--------------------------------------------------------------------------=") 10 | cpp_quote("// HLIface.h") 11 | cpp_quote("//=--------------------------------------------------------------------------=") 12 | cpp_quote("// (C) Copyright 1995-1997 Microsoft Corporation. All Rights Reserved.") 13 | cpp_quote("//") 14 | cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") 15 | cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") 16 | cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") 17 | cpp_quote("// PARTICULAR PURPOSE.") 18 | cpp_quote("//=--------------------------------------------------------------------------=") 19 | cpp_quote("") 20 | cpp_quote("#pragma comment(lib,\"uuid.lib\")") 21 | cpp_quote("") 22 | cpp_quote("//--------------------------------------------------------------------------") 23 | cpp_quote("// OLE Hyperlinking Interfaces.") 24 | cpp_quote("") 25 | cpp_quote("#ifndef __hlink_h__ ") 26 | cpp_quote("#include \"hlink.h\" ") 27 | cpp_quote("#endif // __hlink_h__ ") 28 | -------------------------------------------------------------------------------- /211INC/hud_iface.h: -------------------------------------------------------------------------------- 1 | #if !defined( HUD_IFACEH ) 2 | #define HUD_IFACEH 3 | #pragma once 4 | 5 | #define EXPORT _declspec( dllexport ) 6 | #define _DLLEXPORT __declspec( dllexport ) 7 | 8 | typedef int (*pfnUserMsgHook)(const char *pszName, int iSize, void *pbuf); 9 | #include "wrect.h" 10 | #include "../engine/cdll_int.h" 11 | extern cl_enginefunc_t gEngfuncs; 12 | 13 | #endif -------------------------------------------------------------------------------- /211INC/hud_servers.h: -------------------------------------------------------------------------------- 1 | #if !defined( HUD_SERVERSH ) 2 | #define HUD_SERVERSH 3 | #pragma once 4 | 5 | #define NET_CALLBACK /* */ 6 | 7 | // Dispatchers 8 | void NET_CALLBACK ListResponse( struct net_response_s *response ); 9 | void NET_CALLBACK ServerResponse( struct net_response_s *response ); 10 | void NET_CALLBACK PingResponse( struct net_response_s *response ); 11 | void NET_CALLBACK RulesResponse( struct net_response_s *response ); 12 | void NET_CALLBACK PlayersResponse( struct net_response_s *response ); 13 | 14 | void ServersInit( void ); 15 | void ServersShutdown( void ); 16 | void ServersThink( double time ); 17 | void ServersCancel( void ); 18 | 19 | // Get list and get server info from each 20 | void ServersList( void ); 21 | 22 | // Query for IP / IPX LAN servers 23 | void BroadcastServersList( int clearpending ); 24 | 25 | void ServerPing( int server ); 26 | void ServerRules( int server ); 27 | void ServerPlayers( int server ); 28 | 29 | int ServersGetCount( void ); 30 | const char *ServersGetInfo( int server ); 31 | int ServersIsQuerying( void ); 32 | void SortServers( const char *fieldname ); 33 | 34 | #endif // HUD_SERVERSH -------------------------------------------------------------------------------- /211INC/idispids.h: -------------------------------------------------------------------------------- 1 | //+------------------------------------------------------------------------- 2 | // 3 | // Microsoft Windows 4 | // Copyright 1995-1997 Microsoft Corporation. All Rights Reserved. 5 | // 6 | // File: idispids.h 7 | // 8 | //-------------------------------------------------------------------------- 9 | 10 | #define DISPID_READYSTATE (-525) 11 | #define DISPID_READYSTATECHANGE (-609) 12 | #define DISPID_AMBIENT_TRANSFERPRIORITY (-728) 13 | #define DISPID_AMBIENT_OFFLINEIFNOTCONNECTED (-5501) 14 | #define DISPID_AMBIENT_SILENT (-5502) 15 | 16 | // Until these appear in OLECTL.H 17 | #ifndef DISPID_AMBIENT_CODEPAGE 18 | #define DISPID_AMBIENT_CODEPAGE (-725) 19 | #define DISPID_AMBIENT_CHARSET (-727) 20 | #endif 21 | -------------------------------------------------------------------------------- /211INC/ieceui_i.c: -------------------------------------------------------------------------------- 1 | /* this file contains the actual definitions of */ 2 | /* the IIDs and CLSIDs */ 3 | 4 | /* link this file in with the server and any clients */ 5 | 6 | 7 | /* File created by MIDL compiler version 3.02.88 */ 8 | /* at Tue Jun 15 19:55:09 1999 9 | */ 10 | /* Compiler settings for .\ieceui.idl: 11 | Oicf (OptLev=i2), W1, Zp8, env=Win32, ms_ext, c_ext 12 | error checks: none 13 | */ 14 | //@@MIDL_FILE_HEADING( ) 15 | #ifdef __cplusplus 16 | extern "C"{ 17 | #endif 18 | 19 | 20 | #ifndef __IID_DEFINED__ 21 | #define __IID_DEFINED__ 22 | 23 | typedef struct _IID 24 | { 25 | unsigned long x; 26 | unsigned short s1; 27 | unsigned short s2; 28 | unsigned char c[8]; 29 | } IID; 30 | 31 | #endif // __IID_DEFINED__ 32 | 33 | #ifndef CLSID_DEFINED 34 | #define CLSID_DEFINED 35 | typedef IID CLSID; 36 | #endif // CLSID_DEFINED 37 | 38 | const IID IID_Iieui = {0xB048FC80,0x122D,0x11D3,{0x95,0x90,0x00,0xC0,0x4F,0xAE,0xA6,0xD4}}; 39 | 40 | 41 | const IID LIBID_IECEUILib = {0xB048FC72,0x122D,0x11D3,{0x95,0x90,0x00,0xC0,0x4F,0xAE,0xA6,0xD4}}; 42 | 43 | 44 | const CLSID CLSID_ieui = {0xB048FC81,0x122D,0x11D3,{0x95,0x90,0x00,0xC0,0x4F,0xAE,0xA6,0xD4}}; 45 | 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | -------------------------------------------------------------------------------- /211INC/in_buttons.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef IN_BUTTONS_H 16 | #define IN_BUTTONS_H 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | #define IN_ATTACK (1 << 0) 22 | #define IN_JUMP (1 << 1) 23 | #define IN_DUCK (1 << 2) 24 | #define IN_FORWARD (1 << 3) 25 | #define IN_BACK (1 << 4) 26 | #define IN_USE (1 << 5) 27 | #define IN_CANCEL (1 << 6) 28 | #define IN_LEFT (1 << 7) 29 | #define IN_RIGHT (1 << 8) 30 | #define IN_MOVELEFT (1 << 9) 31 | #define IN_MOVERIGHT (1 << 10) 32 | #define IN_ATTACK2 (1 << 11) 33 | #define IN_RUN (1 << 12) 34 | #define IN_RELOAD (1 << 13) 35 | #define IN_ALT1 (1 << 14) 36 | #define IN_SCORE (1 << 15) // Used by client.dll for when scoreboard is held down 37 | 38 | #endif // IN_BUTTONS_H -------------------------------------------------------------------------------- /211INC/in_defs.h: -------------------------------------------------------------------------------- 1 | #if !defined( IN_DEFSH ) 2 | #define IN_DEFSH 3 | #pragma once 4 | 5 | // up / down 6 | #define PITCH 0 7 | // left / right 8 | #define YAW 1 9 | // fall over 10 | #define ROLL 2 11 | 12 | #define DLLEXPORT __declspec( dllexport ) 13 | 14 | #endif -------------------------------------------------------------------------------- /211INC/inetsdk.idl: -------------------------------------------------------------------------------- 1 | //+--------------------------------------------------------------------------- 2 | // 3 | // Copyright 1995-1997 Microsoft Corporation. All Rights Reserved. 4 | // 5 | // Contents: INet SDK merged IDL 6 | // 7 | //---------------------------------------------------------------------------- 8 | 9 | cpp_quote("//=--------------------------------------------------------------------------=") 10 | cpp_quote("// INetSDK.h") 11 | cpp_quote("//=--------------------------------------------------------------------------=") 12 | cpp_quote("// (C) Copyright 1995-1997 Microsoft Corporation. All Rights Reserved.") 13 | cpp_quote("//") 14 | cpp_quote("// THIS CODE AND INFORMATION IS PROVIDED \"AS IS\" WITHOUT WARRANTY OF") 15 | cpp_quote("// ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO") 16 | cpp_quote("// THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A") 17 | cpp_quote("// PARTICULAR PURPOSE.") 18 | cpp_quote("//=--------------------------------------------------------------------------=") 19 | cpp_quote("") 20 | cpp_quote("#pragma comment(lib,\"uuid.lib\")") 21 | cpp_quote("") 22 | cpp_quote("//--------------------------------------------------------------------------") 23 | cpp_quote("// ActiveX SDK Merged IDL.") 24 | cpp_quote("") 25 | 26 | import "comcat.idl"; 27 | import "ocidl.idl"; 28 | import "docobj.idl"; 29 | import "hlink.idl"; 30 | import "urlmon.idl"; 31 | -------------------------------------------------------------------------------- /211INC/isguids.h: -------------------------------------------------------------------------------- 1 | /* 2 | * isguids.h - Internet Shortcut GUID definitions. 3 | * 4 | * Copyright (c) 1995-1997, Microsoft Corporation. All rights reserved. 5 | */ 6 | 7 | 8 | /* GUIDs 9 | ********/ 10 | 11 | #ifndef _ISGUIDS_H_ 12 | #define _ISGUIDS_H_ 13 | 14 | DEFINE_GUID(CLSID_InternetShortcut, 0xFBF23B40L, 0xE3F0, 0x101B, 0x84, 0x88, 0x00, 0xAA, 0x00, 0x3E, 0x56, 0xF8); 15 | 16 | DEFINE_GUID(IID_IUniformResourceLocatorA, 0xFBF23B80L, 0xE3F0, 0x101B, 0x84, 0x88, 0x00, 0xAA, 0x00, 0x3E, 0x56, 0xF8); 17 | DEFINE_GUID(IID_IUniformResourceLocatorW, 0xCABB0DA0L, 0xDA57, 0x11CF, 0x99, 0x74, 0x00, 0x20, 0xAF, 0xD7, 0x97, 0x62); 18 | 19 | #ifdef UNICODE 20 | #define IID_IUniformResourceLocator IID_IUniformResourceLocatorW 21 | #else 22 | #define IID_IUniformResourceLocator IID_IUniformResourceLocatorA 23 | #endif 24 | 25 | #endif 26 | -------------------------------------------------------------------------------- /211INC/items.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef ITEMS_H 16 | #define ITEMS_H 17 | 18 | 19 | class CItem : public CBaseEntity 20 | { 21 | public: 22 | void Spawn( void ); 23 | CBaseEntity* Respawn( void ); 24 | void EXPORT ItemTouch( CBaseEntity *pOther ); 25 | void EXPORT Materialize( void ); 26 | virtual BOOL MyTouch( CBasePlayer *pPlayer ) { return FALSE; }; 27 | }; 28 | 29 | #endif // ITEMS_H 30 | -------------------------------------------------------------------------------- /211INC/kat4cc.h: -------------------------------------------------------------------------------- 1 | /*==========================================================================; 2 | * 3 | * Copyright (c) 1998 Microsoft Corporation. All Rights Reserved. 4 | * 5 | * File: kat4cc.h 6 | * Content: Katana-specific FourCC codes for DirectDraw 7 | * 8 | ***************************************************************************/ 9 | 10 | #ifndef __KAT4CC_INCLUDED__ 11 | #define __KAT4CC_INCLUDED__ 12 | 13 | 14 | // 15 | // UYVY: Video-memory only 422 (16bpp) surface with direct R/W access 16 | // upon locking 17 | // 18 | #define FOURCC_UYVY MAKEFOURCC('U', 'Y', 'V', 'Y') 19 | 20 | // 21 | // DCY0 (katana-specific format): System-memory 420 (12bpp) 22 | // READ-ONLY surface which copies the entire frame loaded over to a 23 | // standard (UYVY-style) video memory surface upon unlocking 24 | // 25 | #define FOURCC_DCY0 MAKEFOURCC('D', 'C', 'Y', '0') 26 | 27 | // 28 | // PNBM (katana-specific format): 29 | // Perturbed normal bump map. 30 | // 31 | #define FOURCC_PNBM MAKEFOURCC('P', 'N', 'B', 'M') 32 | 33 | #endif // !__KAT4CC_INCLUDED__ 34 | 35 | -------------------------------------------------------------------------------- /211INC/kbutton.h: -------------------------------------------------------------------------------- 1 | #if !defined( KBUTTONH ) 2 | #define KBUTTONH 3 | #pragma once 4 | 5 | typedef struct kbutton_s 6 | { 7 | int down[2]; // key nums holding it down 8 | int state; // low bit is down state 9 | } kbutton_t; 10 | 11 | #endif // !KBUTTONH -------------------------------------------------------------------------------- /211INC/lbmlib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1998, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // lbmlib.h 12 | 13 | typedef unsigned char UBYTE; 14 | 15 | #ifndef _WINDOWS_ 16 | typedef short WORD; 17 | #endif 18 | 19 | typedef unsigned short UWORD; 20 | typedef long LONG; 21 | 22 | typedef enum 23 | { 24 | ms_none, 25 | ms_mask, 26 | ms_transcolor, 27 | ms_lasso 28 | } mask_t; 29 | 30 | typedef enum 31 | { 32 | cm_none, 33 | cm_rle1 34 | } compress_t; 35 | 36 | typedef struct 37 | { 38 | UWORD w,h; 39 | WORD x,y; 40 | UBYTE nPlanes; 41 | UBYTE masking; 42 | UBYTE compression; 43 | UBYTE pad1; 44 | UWORD transparentColor; 45 | UBYTE xAspect,yAspect; 46 | WORD pageWidth,pageHeight; 47 | } bmhd_t; 48 | 49 | extern bmhd_t bmhd; // will be in native byte order 50 | 51 | 52 | void LoadLBM (char *filename, byte **picture, byte **palette); 53 | int LoadBMP (const char* szFile, byte** ppbBits, byte** ppbPalette); 54 | void WriteLBMfile (char *filename, byte *data, int width, int height 55 | , byte *palette); 56 | int WriteBMPfile (char *szFile, byte *pbBits, int width, int height, byte *pbPalette); 57 | 58 | -------------------------------------------------------------------------------- /211INC/light.h: -------------------------------------------------------------------------------- 1 | 2 | #include "cmdlib.h" 3 | #include "mathlib.h" 4 | #include "bspfile.h" 5 | #include "threads.h" 6 | 7 | 8 | #define DEFAULTLIGHTLEVEL 300 9 | 10 | typedef struct entity_s 11 | { 12 | char classname[64]; 13 | vec3_t origin; 14 | float angle; 15 | vec3_t light; 16 | int style; 17 | qboolean targetent; 18 | vec3_t targetorigin; 19 | } lightentity_t; 20 | 21 | extern lightentity_t lightentities[MAX_MAP_ENTITIES]; 22 | extern int numlightentities; 23 | 24 | #define ON_EPSILON 0.1 25 | 26 | #define MAXLIGHTS 1024 27 | 28 | void LoadNodes (char *file); 29 | qboolean TestLine (vec3_t start, vec3_t stop); 30 | 31 | void LightFace (int surfnum); 32 | void LightLeaf (dleaf_t *leaf); 33 | 34 | void MakeTnodes (dmodel_t *bm); 35 | 36 | extern float scaledist; 37 | extern float scalecos; 38 | extern float rangescale; 39 | 40 | extern int c_culldistplane, c_proper; 41 | 42 | byte *GetFileSpace (int size); 43 | extern byte *filebase; 44 | 45 | extern vec3_t bsp_origin; 46 | extern vec3_t bsp_xvector; 47 | extern vec3_t bsp_yvector; 48 | 49 | void TransformSample (vec3_t in, vec3_t out); 50 | void RotateSample (vec3_t in, vec3_t out); 51 | 52 | extern qboolean extrasamples; 53 | 54 | extern float minlights[MAX_MAP_FACES]; 55 | -------------------------------------------------------------------------------- /211INC/maprules.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | #ifndef MAPRULES_H 17 | #define MAPRULES_H 18 | 19 | 20 | 21 | #endif // MAPRULES_H 22 | 23 | -------------------------------------------------------------------------------- /211INC/md5.h: -------------------------------------------------------------------------------- 1 | #if !defined( MD5H ) 2 | #define MD5H 3 | #pragma once 4 | 5 | int MD5_Hash_File(unsigned char digest[16], char *pszFileName ); 6 | 7 | #endif -------------------------------------------------------------------------------- /211INC/monsterevent.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef MONSTEREVENT_H 16 | #define MONSTEREVENT_H 17 | 18 | typedef struct 19 | { 20 | int event; 21 | char *options; 22 | } MonsterEvent_t; 23 | 24 | #define EVENT_SPECIFIC 0 25 | #define EVENT_SCRIPTED 1000 26 | #define EVENT_SHARED 2000 27 | #define EVENT_CLIENT 5000 28 | 29 | #define MONSTER_EVENT_BODYDROP_LIGHT 2001 30 | #define MONSTER_EVENT_BODYDROP_HEAVY 2002 31 | 32 | #define MONSTER_EVENT_SWISHSOUND 2010 33 | 34 | #endif // MONSTEREVENT_H 35 | -------------------------------------------------------------------------------- /211INC/movie.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1998, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | #ifndef _MOVIE_H_ 12 | #define _MOVIE_H_ 13 | 14 | /* 15 | movie.h 16 | 17 | definitions and such for dumping screen shots to make a movie 18 | */ 19 | 20 | typedef struct 21 | { 22 | unsigned long tag; 23 | unsigned long size; 24 | } movieblockheader_t; 25 | 26 | 27 | typedef struct 28 | { 29 | short width; 30 | short height; 31 | short depth; 32 | } movieframe_t; 33 | 34 | 35 | 36 | #endif _MOVIE_H_ -------------------------------------------------------------------------------- /211INC/netadr.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // netadr.h 16 | #ifndef NETADR_H 17 | #define NETADR_H 18 | #ifdef _WIN32 19 | #pragma once 20 | #endif 21 | 22 | typedef enum 23 | { 24 | NA_UNUSED, 25 | NA_LOOPBACK, 26 | NA_BROADCAST, 27 | NA_IP, 28 | NA_IPX, 29 | NA_BROADCAST_IPX 30 | } netadrtype_t; 31 | 32 | typedef struct netadr_s 33 | { 34 | netadrtype_t type; 35 | unsigned char ip[4]; 36 | unsigned char ipx[10]; 37 | unsigned short port; 38 | } netadr_t; 39 | 40 | #endif // NETADR_H -------------------------------------------------------------------------------- /211INC/parsemsg.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // 16 | // parsemsg.h 17 | // 18 | 19 | #define ASSERT( x ) 20 | 21 | void BEGIN_READ( void *buf, int size ); 22 | int READ_CHAR( void ); 23 | int READ_BYTE( void ); 24 | int READ_SHORT( void ); 25 | int READ_WORD( void ); 26 | int READ_LONG( void ); 27 | float READ_FLOAT( void ); 28 | char* READ_STRING( void ); 29 | float READ_COORD( void ); 30 | float READ_ANGLE( void ); 31 | float READ_HIRESANGLE( void ); 32 | 33 | 34 | 35 | 36 | 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /211INC/particledef.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( PARTICLEDEFH ) 16 | #define PARTICLEDEFH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef enum { 22 | pt_static, 23 | pt_grav, 24 | pt_slowgrav, 25 | pt_fire, 26 | pt_explode, 27 | pt_explode2, 28 | pt_blob, 29 | pt_blob2, 30 | pt_vox_slowgrav, 31 | pt_vox_grav, 32 | pt_clientcustom // Must have callback function specified 33 | } ptype_t; 34 | 35 | // !!! if this is changed, it must be changed in d_ifacea.h too !!! 36 | typedef struct particle_s 37 | { 38 | // driver-usable fields 39 | vec3_t org; 40 | short color; 41 | short packedColor; 42 | // drivers never touch the following fields 43 | struct particle_s *next; 44 | vec3_t vel; 45 | float ramp; 46 | float die; 47 | ptype_t type; 48 | void (*deathfunc)( struct particle_s *particle ); 49 | 50 | // for pt_clientcusttom, we'll call this function each frame 51 | void (*callback)( struct particle_s *particle, float frametime ); 52 | 53 | // For deathfunc, etc. 54 | unsigned char context; 55 | } particle_t; 56 | 57 | #endif -------------------------------------------------------------------------------- /211INC/plane.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef PLANE_H 16 | #define PLANE_H 17 | 18 | //========================================================= 19 | // Plane 20 | //========================================================= 21 | class CPlane 22 | { 23 | public: 24 | CPlane ( void ); 25 | 26 | //========================================================= 27 | // InitializePlane - Takes a normal for the plane and a 28 | // point on the plane and 29 | //========================================================= 30 | void InitializePlane ( const Vector &vecNormal, const Vector &vecPoint ); 31 | 32 | //========================================================= 33 | // PointInFront - determines whether the given vector is 34 | // in front of the plane. 35 | //========================================================= 36 | BOOL PointInFront ( const Vector &vecPoint ); 37 | 38 | Vector m_vecNormal; 39 | float m_flDist; 40 | BOOL m_fInitialized; 41 | }; 42 | 43 | #endif // PLANE_H 44 | -------------------------------------------------------------------------------- /211INC/pm_debug.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef PM_DEBUG_H 16 | #define PM_DEBUG_H 17 | #pragma once 18 | 19 | void PM_ViewEntity( void ); 20 | void PM_DrawBBox(vec3_t mins, vec3_t maxs, vec3_t origin, int pcolor, float life); 21 | void PM_ParticleLine(vec3_t start, vec3_t end, int pcolor, float life, float vert); 22 | void PM_ShowClipBox( void ); 23 | 24 | #endif // PMOVEDBG_H -------------------------------------------------------------------------------- /211INC/pm_info.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // Physics info string definition 16 | #if !defined( PM_INFOH ) 17 | #define PM_INFOH 18 | #pragma once 19 | 20 | #define MAX_PHYSINFO_STRING 256 21 | 22 | #endif // PM_INFOH -------------------------------------------------------------------------------- /211INC/pm_materials.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( PM_MATERIALSH ) 16 | #define PM_MATERIALSH 17 | #pragma once 18 | 19 | #define CBTEXTURENAMEMAX 13 // only load first n chars of name 20 | 21 | #define CHAR_TEX_CONCRETE 'C' // texture types 22 | #define CHAR_TEX_METAL 'M' 23 | #define CHAR_TEX_DIRT 'D' 24 | #define CHAR_TEX_VENT 'V' 25 | #define CHAR_TEX_GRATE 'G' 26 | #define CHAR_TEX_TILE 'T' 27 | #define CHAR_TEX_SLOSH 'S' 28 | #define CHAR_TEX_WOOD 'W' 29 | #define CHAR_TEX_COMPUTER 'P' 30 | #define CHAR_TEX_GLASS 'Y' 31 | #define CHAR_TEX_FLESH 'F' 32 | 33 | #endif // !PM_MATERIALSH -------------------------------------------------------------------------------- /211INC/pm_movevars.h: -------------------------------------------------------------------------------- 1 | // pm_movevars.h 2 | #if !defined( PM_MOVEVARSH ) 3 | #define PM_MOVEVARSH 4 | 5 | // movevars_t // Physics variables. 6 | typedef struct movevars_s movevars_t; 7 | 8 | struct movevars_s 9 | { 10 | float gravity; // Gravity for map 11 | float stopspeed; // Deceleration when not moving 12 | float maxspeed; // Max allowed speed 13 | float spectatormaxspeed; 14 | float accelerate; // Acceleration factor 15 | float airaccelerate; // Same for when in open air 16 | float wateraccelerate; // Same for when in water 17 | float friction; 18 | float edgefriction; // Extra friction near dropofs 19 | float waterfriction; // Less in water 20 | float entgravity; // 1.0 21 | float bounce; // Wall bounce value. 1.0 22 | float stepsize; // sv_stepsize; 23 | float maxvelocity; // maximum server velocity. 24 | float zmax; // Max z-buffer range (for GL) 25 | float waveHeight; // Water wave height (for GL) 26 | qboolean footsteps; // Play footstep sounds 27 | char skyName[32]; // Name of the sky map 28 | float rollangle; 29 | float rollspeed; 30 | float skycolor_r; // Sky color 31 | float skycolor_g; // 32 | float skycolor_b; // 33 | float skyvec_x; // Sky vector 34 | float skyvec_y; // 35 | float skyvec_z; // 36 | }; 37 | 38 | extern movevars_t movevars; 39 | 40 | #endif -------------------------------------------------------------------------------- /211INC/pm_shared.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | 16 | // 17 | // pm_shared.h 18 | // 19 | #if !defined( PM_SHAREDH ) 20 | #define PM_SHAREDH 21 | #pragma once 22 | 23 | void PM_Init( struct playermove_s *ppmove ); 24 | void PM_Move ( struct playermove_s *ppmove, int server ); 25 | char PM_FindTextureType( char *name ); 26 | 27 | // Spectator flags 28 | #define SPEC_IS_SPECTATOR (1<<0) 29 | #define SPEC_SMOOTH_ANGLES (1<<1) 30 | #define SPEC_SMOOTH_ORIGIN (1<<2) 31 | 32 | #endif -------------------------------------------------------------------------------- /211INC/pmtrace.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( PMTRACEH ) 16 | #define PMTRACEH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | typedef struct 22 | { 23 | vec3_t normal; 24 | float dist; 25 | } pmplane_t; 26 | 27 | typedef struct pmtrace_s pmtrace_t; 28 | 29 | struct pmtrace_s 30 | { 31 | qboolean allsolid; // if true, plane is not valid 32 | qboolean startsolid; // if true, the initial point was in a solid area 33 | qboolean inopen, inwater; // End point is in empty space or in water 34 | float fraction; // time completed, 1.0 = didn't hit anything 35 | vec3_t endpos; // final position 36 | pmplane_t plane; // surface normal at impact 37 | int ent; // entity at impact 38 | vec3_t deltavelocity; // Change in player's velocity caused by impact. 39 | // Only run on server. 40 | int hitgroup; 41 | }; 42 | 43 | #endif -------------------------------------------------------------------------------- /211INC/polylib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1998, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | 12 | typedef struct 13 | { 14 | int numpoints; 15 | vec3_t p[8]; // variable sized 16 | } winding_t; 17 | 18 | #define MAX_POINTS_ON_WINDING 128 19 | 20 | winding_t *AllocWinding (int points); 21 | vec_t WindingArea (winding_t *w); 22 | void WindingCenter (winding_t *w, vec3_t center); 23 | void ClipWinding (winding_t *in, vec3_t normal, vec_t dist, 24 | winding_t **front, winding_t **back); 25 | void ClipWindingNoCopy (winding_t *in, vec3_t normal, vec_t dist, 26 | winding_t **front, winding_t **back); 27 | winding_t *ChopWinding (winding_t *in, vec3_t normal, vec_t dist); 28 | winding_t *ChopWindingNoFree (winding_t *in, vec3_t normal, vec_t dist); 29 | winding_t *CopyWinding (winding_t *w); 30 | winding_t *BaseWindingForPlane (vec3_t normal, float dist); 31 | void CheckWinding (winding_t *w); 32 | void WindingPlane (winding_t *w, vec3_t normal, vec_t *dist); 33 | void RemoveColinearPoints (winding_t *w); 34 | int WindingOnPlaneSide (winding_t *w, vec3_t normal, vec_t dist); 35 | void FreeWinding (winding_t *w); 36 | void WindingBounds (winding_t *w, vec3_t mins, vec3_t maxs); -------------------------------------------------------------------------------- /211INC/procinfo.h: -------------------------------------------------------------------------------- 1 | #if !defined ( PROCINFOH ) 2 | #define PROCINFOH 3 | #pragma once 4 | 5 | int PROC_GetSpeed( void ); 6 | int PROC_IsMMX( void ); 7 | 8 | #endif // PROCINFOH 9 | -------------------------------------------------------------------------------- /211INC/qfont.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( QFONTH ) 16 | #define QFONTH 17 | #pragma once 18 | 19 | // Font stuff 20 | 21 | #define NUM_GLYPHS 256 22 | 23 | typedef struct 24 | { 25 | short startoffset; 26 | short charwidth; 27 | } charinfo; 28 | 29 | typedef struct qfont_s 30 | { 31 | int width, height; 32 | int rowcount; 33 | int rowheight; 34 | charinfo fontinfo[ NUM_GLYPHS ]; 35 | byte data[4]; 36 | } qfont_t; 37 | 38 | #endif // qfont.h -------------------------------------------------------------------------------- /211INC/qlumpy.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1998, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | #include "cmdlib.h" 12 | #include "scriplib.h" 13 | #include "lbmlib.h" 14 | #include "wadlib.h" 15 | 16 | 17 | extern byte *byteimage, *lbmpalette; 18 | extern int byteimagewidth, byteimageheight; 19 | 20 | #define SCRN(x,y) (*(byteimage+(y)*byteimagewidth+x)) 21 | 22 | extern byte *lump_p; 23 | extern byte *lumpbuffer; 24 | 25 | extern char lumpname[]; 26 | 27 | -------------------------------------------------------------------------------- /211INC/resource.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by serverctrl.rc 4 | // 5 | #define IDD_SERVERCTRL_DIALOG 102 6 | #define IDR_MAINFRAME 128 7 | #define IDC_EDIT_COMMANDS 1000 8 | #define IDC_BTN_EXECUTE 1001 9 | #define IDC_BTN_START 1003 10 | #define IDC_BTN_GET 1004 11 | #define IDC_EDIT_CONSOLE 1005 12 | 13 | // Next default values for new objects 14 | // 15 | #ifdef APSTUDIO_INVOKED 16 | #ifndef APSTUDIO_READONLY_SYMBOLS 17 | #define _APS_NEXT_RESOURCE_VALUE 129 18 | #define _APS_NEXT_COMMAND_VALUE 32771 19 | #define _APS_NEXT_CONTROL_VALUE 1006 20 | #define _APS_NEXT_SYMED_VALUE 101 21 | #endif 22 | #endif 23 | -------------------------------------------------------------------------------- /211INC/screenfade.h: -------------------------------------------------------------------------------- 1 | #if !defined( SCREENFADEH ) 2 | #define SCREENFADEH 3 | #pragma once 4 | 5 | typedef struct screenfade_s 6 | { 7 | float fadeSpeed; // How fast to fade (tics / second) (+ fade in, - fade out) 8 | float fadeEnd; // When the fading hits maximum 9 | float fadeReset; // When to reset to not fading (for fadeout and hold) 10 | byte fader, fadeg, fadeb, fadealpha; // Fade color 11 | int fadeFlags; // Fading flags 12 | } screenfade_t; 13 | 14 | #endif // !SCREENFADEH -------------------------------------------------------------------------------- /211INC/scriplib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1998, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // scriplib.h 12 | 13 | #ifndef __CMDLIB__ 14 | #include "cmdlib.h" 15 | #endif 16 | 17 | #define MAXTOKEN 512 18 | 19 | extern char token[MAXTOKEN]; 20 | extern char *scriptbuffer,*script_p,*scriptend_p; 21 | extern int grabbed; 22 | extern int scriptline; 23 | extern qboolean endofscript; 24 | 25 | 26 | void LoadScriptFile (char *filename); 27 | void ParseFromMemory (char *buffer, int size); 28 | 29 | qboolean GetToken (qboolean crossline); 30 | void UnGetToken (void); 31 | qboolean TokenAvailable (void); 32 | 33 | 34 | -------------------------------------------------------------------------------- /211INC/scriptevent.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef SCRIPTEVENT_H 16 | #define SCRIPTEVENT_H 17 | 18 | #define SCRIPT_EVENT_DEAD 1000 // character is now dead 19 | #define SCRIPT_EVENT_NOINTERRUPT 1001 // does not allow interrupt 20 | #define SCRIPT_EVENT_CANINTERRUPT 1002 // will allow interrupt 21 | #define SCRIPT_EVENT_FIREEVENT 1003 // event now fires 22 | #define SCRIPT_EVENT_SOUND 1004 // Play named wave file (on CHAN_BODY) 23 | #define SCRIPT_EVENT_SENTENCE 1005 // Play named sentence 24 | #define SCRIPT_EVENT_INAIR 1006 // Leave the character in air at the end of the sequence (don't find the floor) 25 | #define SCRIPT_EVENT_ENDANIMATION 1007 // Set the animation by name after the sequence completes 26 | #define SCRIPT_EVENT_SOUND_VOICE 1008 // Play named wave file (on CHAN_VOICE) 27 | #define SCRIPT_EVENT_SENTENCE_RND1 1009 // Play sentence group 25% of the time 28 | #define SCRIPT_EVENT_NOT_DEAD 1010 // Bring back to life (for life/death sequences) 29 | #endif //SCRIPTEVENT_H 30 | -------------------------------------------------------------------------------- /211INC/scrptids.h: -------------------------------------------------------------------------------- 1 | //+------------------------------------------------------------------------- 2 | // 3 | // Microsoft Windows 4 | // Copyright 1996-1997 Microsoft Corporation. All Rights Reserved. 5 | // 6 | // File: scrptids.h 7 | // 8 | //-------------------------------------------------------------------------- 9 | 10 | // Invent DISPIDs for the things that don't have built-in dispid's 11 | #define DISPID_LOAD 1 12 | #define DISPID_UNLOAD 2 13 | #define DISPID_SUBMIT 3 14 | #define DISPID_FOCUS 4 15 | #define DISPID_CHANGE 5 16 | #define DISPID_BLUR 6 17 | #define DISPID_SELECT 7 18 | #define DISPID_MOUSEOVER 8 19 | #define DISPID_PARSECOMPLETE 9 20 | #define DISPID_ABORT 10 21 | #define DISPID_ERROR 11 22 | #define DISPID_MOUSEOUT 12 23 | -------------------------------------------------------------------------------- /211INC/shintr.h: -------------------------------------------------------------------------------- 1 | /*** 2 | *shintr.h - definitions and declarations for SH intrinisc library 3 | * 4 | *Purpose: 5 | * This file contains constant definitions and external subroutine 6 | * declarations for the SH intrinisc subroutine library. 7 | * 8 | ****/ 9 | 10 | #ifndef _INC_SHINTR 11 | #define _INC_SHINTR 12 | 13 | #if defined(SH4) 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | float * _Xform4dV(float *retval, float *vector, float *matrix); 20 | float * _Xform3dV(float *retval, float *vector, float *matrix); 21 | 22 | float * _XDXform4dV(float *src, float *dst); 23 | float * _XDXform3dV(float *src, float *dst); 24 | 25 | float _Dot4dV(float *vector1, float *vector2); 26 | float _Dot3dVW0(float *vector1, float *vector2); 27 | float _Dot3dVW1(float *vector1, float *vector2); 28 | 29 | float * _Multiply4dM(float *retval, float *m4x4m1, float *m4x4m2); 30 | void _XDMultMatrix(float *matrix); 31 | 32 | float * _LoadMatrix(float *matrix); 33 | float * _SaveMatrix(float *matrix); 34 | 35 | float fabsf(float input); 36 | 37 | float sqrtf(float input); 38 | 39 | float __fmac(float i, float m, float n); 40 | 41 | void __prefetch(unsigned long *addr); 42 | void __movca(unsigned long value, unsigned long *addr); 43 | 44 | float _Convolve(int nelement, float *pstart, float *pend, 45 | float *pdata, float *pfilter); 46 | 47 | #ifdef __cplusplus 48 | } 49 | #endif 50 | 51 | #endif //defined(SH4) 52 | 53 | #endif //_INC_SHINTR 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /211INC/shosintr.h: -------------------------------------------------------------------------------- 1 | /*** 2 | *shosintr.h - definitions and declarations for SH intrinisc library 3 | * 4 | *Purpose: 5 | * This file contains constant definitions and external subroutine 6 | * declarations for the SH intrinisc subroutine library. 7 | * 8 | ****/ 9 | 10 | #ifndef _INC_SHOSINTR 11 | #define _INC_SHOSINTR 12 | 13 | #if defined(SH4) 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | void __prefetch(unsigned long *addr); 20 | void __movca(unsigned long value, unsigned long *addr); 21 | 22 | void __ocbi(unsigned long *addr); 23 | void __ocbp(unsigned long *addr); 24 | void __ocbwb(unsigned long *addr); 25 | 26 | void _Enable_BL(); 27 | void _Disable_BL(); 28 | 29 | 30 | #ifdef __cplusplus 31 | } 32 | #endif 33 | 34 | #endif //defined(SH4) 35 | 36 | #endif //_INC_SHOSINTR 37 | 38 | 39 | -------------------------------------------------------------------------------- /211INC/shsgintr.h: -------------------------------------------------------------------------------- 1 | /*** 2 | *shsgintr.h - definitions and declarations for SH intrinisc library 3 | * 4 | *Purpose: 5 | * This file contains constant definitions and external subroutine 6 | * declarations for the SH intrinisc subroutine library. 7 | * 8 | ****/ 9 | 10 | #ifndef _INC_SHSGINTR 11 | #define _INC_SHSGINTR 12 | 13 | #if defined(SH4) 14 | 15 | #ifdef __cplusplus 16 | extern "C" { 17 | #endif 18 | 19 | 20 | void _SinCosA(float * sin_apprx, float * cos_apprx, float input); 21 | void __fsca(float *sin_apprx, float *cos_apprx, int input); 22 | 23 | float _InvSqrtA(float input); 24 | 25 | 26 | #ifdef __cplusplus 27 | } 28 | #endif 29 | 30 | #endif //defined(SH4) 31 | 32 | #endif //_INC_SHSGINTR 33 | -------------------------------------------------------------------------------- /211INC/smexprc.h: -------------------------------------------------------------------------------- 1 | //{{NO_DEPENDENCIES}} 2 | // Microsoft Developer Studio generated include file. 3 | // Used by smdlexp.rc 4 | // 5 | #define IDD_SMDLEXP_UI 101 6 | #define IDD_EXPORTOPTIONS 101 7 | #define IDC_CHECK_SKELETAL 1000 8 | #define IDC_CHECK_DEFORM 1001 9 | #define IDC_CHECK_REFFRAME 1002 10 | #define IDC_CHECK_PHYSIQUE 1003 11 | 12 | // Next default values for new objects 13 | // 14 | #ifdef APSTUDIO_INVOKED 15 | #ifndef APSTUDIO_READONLY_SYMBOLS 16 | #define _APS_NEXT_RESOURCE_VALUE 102 17 | #define _APS_NEXT_COMMAND_VALUE 40001 18 | #define _APS_NEXT_CONTROL_VALUE 1006 19 | #define _APS_NEXT_SYMED_VALUE 101 20 | #endif 21 | #endif 22 | -------------------------------------------------------------------------------- /211INC/spectator.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000 Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | // Spectator.h 16 | 17 | class CBaseSpectator : public CBaseEntity 18 | { 19 | public: 20 | void Spawn(); 21 | void SpectatorConnect(void); 22 | void SpectatorDisconnect(void); 23 | void SpectatorThink(void); 24 | 25 | private: 26 | void SpectatorImpulseCommand(void); 27 | }; -------------------------------------------------------------------------------- /211INC/strig.h: -------------------------------------------------------------------------------- 1 | // strig.h 2 | // purpose: to override the standard c library sin() and cos() function 3 | // with a version that takes advantage of the sh4 4 | 5 | #ifndef _INC_STRIG 6 | #define _INC_STRIG 7 | 8 | #ifdef __cplusplus 9 | extern "C" { 10 | #endif 11 | 12 | #ifdef SH4 13 | float __cdecl coss(float); 14 | float __cdecl sins(float); 15 | 16 | /* Map CRT functions to single-precision versions */ 17 | 18 | #undef sin 19 | #undef cos 20 | 21 | #define sin(x) sins(x) 22 | #define cos(x) coss(x) 23 | #endif 24 | 25 | #ifdef __cplusplus 26 | } 27 | #endif 28 | 29 | #endif // _INC_SFLOAT 30 | -------------------------------------------------------------------------------- /211INC/studio_event.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined( STUDIO_EVENTH ) 16 | #define STUDIO_EVENTH 17 | #pragma once 18 | 19 | typedef struct mstudioevent_s 20 | { 21 | int frame; 22 | int event; 23 | int type; 24 | char options[64]; 25 | } mstudioevent_t; 26 | 27 | #endif // STUDIO_EVENTH -------------------------------------------------------------------------------- /211INC/sys_ded.h: -------------------------------------------------------------------------------- 1 | #if !defined( SYS_DEDH ) 2 | #define SYS_DEDH 3 | #ifdef _WIN32 4 | #pragma once 5 | #endif 6 | 7 | long Sys_LoadLibrary( char *lib ); 8 | void Sys_FreeLibrary( long library ); 9 | void *Sys_GetProcAddress( long library, const char *name ); 10 | void Sys_Sleep( int msec ); 11 | void Sys_Printf(char *fmt, ...); 12 | void Sys_ErrorMessage( int level, const char *msg ); 13 | 14 | #endif // SYS_DEDH -------------------------------------------------------------------------------- /211INC/tankanji.h: -------------------------------------------------------------------------------- 1 | /* 2 | TanKanji IME 3 | 4 | Copyright (c) 1998, Microsoft Corporation 5 | 6 | APIs 7 | 8 | HTK TKOpen(WCHAR *pwsz) 9 | 10 | This function opens the TanKanji database. The returned HTK passed to all future calls relating 11 | to this database. Note that a single application can open multi TanKanji databases and that multiple 12 | applications can open the same TanKanji database simultaneously. 13 | 14 | BOOL TKClose(HTK htk) 15 | 16 | End the use of this TanKanji database by this session. You can call TKOpen to reopen the database, 17 | but future calls with handle will not work. 18 | 19 | 20 | BOOL TKMatch(HTK htk, WCHAR *pwszKana, DWORD cwcKanji, WCHAR *pwszKanji) 21 | 22 | Given a kana pronunciation, return the list of Kanji that match. pwszKana contains the input 23 | pronunciation and pwszKanji will contain the null terminated string of Kanji. cwcKanji gives the 24 | limit of pwszKanji. 25 | 26 | */ 27 | 28 | typedef HANDLE HTK; 29 | 30 | #ifdef __cplusplus 31 | extern "C" { 32 | #endif 33 | 34 | HTK TKOpen(WCHAR *); 35 | BOOL TKClose(HTK); 36 | BOOL TKMatch(HTK, WCHAR *, DWORD, WCHAR *); 37 | #ifdef __cplusplus 38 | }; 39 | #endif 40 | -------------------------------------------------------------------------------- /211INC/threads.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1998, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | extern int numthreads; 12 | 13 | void ThreadSetDefault (void); 14 | int GetThreadWork (void); 15 | void RunThreadsOnIndividual (int workcnt, qboolean showpacifier, void(*func)(int)); 16 | void RunThreadsOn (int workcnt, qboolean showpacifier, void(*func)(int)); 17 | void ThreadLock (void); 18 | void ThreadUnlock (void); 19 | 20 | #ifndef NO_THREAD_NAMES 21 | #define RunThreadsOn(n,p,f) { if (p) printf("%-20s ", #f ":"); RunThreadsOn(n,p,f); } 22 | #define RunThreadsOnIndividual(n,p,f) { if (p) printf("%-20s ", #f ":"); RunThreadsOnIndividual(n,p,f); } 23 | #endif 24 | 25 | -------------------------------------------------------------------------------- /211INC/trilib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1998, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // 12 | // trilib.h: header file for loading triangles from an Alias triangle file 13 | // 14 | #define MAXTRIANGLES 2048 15 | 16 | typedef struct { 17 | vec3_t verts[3]; 18 | } triangle_t; 19 | 20 | void LoadTriangleList (char *filename, triangle_t **pptri, int *numtriangles); 21 | 22 | -------------------------------------------------------------------------------- /211INC/usercmd.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #ifndef USERCMD_H 16 | #define USERCMD_H 17 | #pragma once 18 | 19 | typedef struct usercmd_s 20 | { 21 | short lerp_msec; // Interpolation time on client 22 | byte msec; // Duration in ms of command 23 | vec3_t viewangles; // Command view angles. 24 | 25 | // intended velocities 26 | float forwardmove; // Forward velocity. 27 | float sidemove; // Sideways velocity. 28 | float upmove; // Upward velocity. 29 | byte lightlevel; // Light level at spot where we are standing. 30 | unsigned short buttons; // Attack buttons 31 | byte impulse; // Impulse command issued. 32 | byte weaponselect; // Current weapon id 33 | 34 | // Experimental player impact stuff. 35 | int impact_index; 36 | vec3_t impact_position; 37 | } usercmd_t; 38 | 39 | #endif // USERCMD_H -------------------------------------------------------------------------------- /211INC/vgui_ConsolePanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef CONSOLEPANEL_H 3 | #define CONSOLEPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | class TextGrid; 11 | class TextEntry; 12 | } 13 | 14 | 15 | class ConsolePanel : public vgui::Panel 16 | { 17 | private: 18 | vgui::TextGrid* _textGrid; 19 | vgui::TextEntry* _textEntry; 20 | public: 21 | ConsolePanel(int x,int y,int wide,int tall); 22 | public: 23 | virtual void setSize(int wide,int tall); 24 | virtual int print(const char* text); 25 | virtual int vprintf(const char* format,va_list argList); 26 | virtual int printf(const char* format,...); 27 | virtual void doExecCommand(); 28 | }; 29 | 30 | 31 | 32 | #endif -------------------------------------------------------------------------------- /211INC/vgui_ControlConfigPanel.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef CONTROLCONFIGPANEL_H 3 | #define CONTROLCONFIGPANEL_H 4 | 5 | #include 6 | #include 7 | 8 | namespace vgui 9 | { 10 | class HeaderPanel; 11 | class TablePanel; 12 | class ScrollPanel; 13 | class InputStream; 14 | class Label; 15 | } 16 | 17 | class ControlConfigPanel : public vgui::Panel 18 | { 19 | private: 20 | vgui::HeaderPanel* _headerPanel; 21 | vgui::TablePanel* _tablePanel; 22 | vgui::ScrollPanel* _scrollPanel; 23 | vgui::Dar _cvarDar; 24 | vgui::Dar _descDar; 25 | vgui::Label* _actionLabel; 26 | vgui::Label* _keyButtonLabel; 27 | vgui::Label* _alternateLabel; 28 | public: 29 | ControlConfigPanel(int x,int y,int wide,int tall); 30 | public: 31 | void AddCVar(const char* cvar,const char* desc); 32 | void AddCVarFromInputStream(vgui::InputStream* is); 33 | int GetCVarCount(); 34 | void GetCVar(int index,char* cvar,int cvarLen,char* desc,int descLen); 35 | void GetCVarBind(const char* cvar,char* bind,int bindLen,char* bindAlt,int bindAltLen); 36 | void SetCVarBind(const char* cvar,const char* bind,const char* bindAlt); 37 | }; 38 | 39 | 40 | 41 | #endif -------------------------------------------------------------------------------- /211INC/vgui_ServerBrowser.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef ServerBrowser_H 3 | #define ServerBrowser_H 4 | 5 | #include 6 | 7 | namespace vgui 8 | { 9 | class Button; 10 | class TablePanel; 11 | class HeaderPanel; 12 | } 13 | 14 | class CTransparentPanel; 15 | class CommandButton; 16 | 17 | // Scoreboard positions 18 | #define SB_X_INDENT (20 * ((float)ScreenHeight / 640)) 19 | #define SB_Y_INDENT (20 * ((float)ScreenHeight / 480)) 20 | 21 | class ServerBrowser : public CTransparentPanel 22 | { 23 | private: 24 | HeaderPanel * _headerPanel; 25 | TablePanel* _tablePanel; 26 | 27 | CommandButton* _connectButton; 28 | CommandButton* _refreshButton; 29 | CommandButton* _broadcastRefreshButton; 30 | CommandButton* _stopButton; 31 | CommandButton* _sortButton; 32 | CommandButton* _cancelButton; 33 | 34 | CommandButton* _pingButton; 35 | 36 | public: 37 | ServerBrowser(int x,int y,int wide,int tall); 38 | public: 39 | virtual void setSize(int wide,int tall); 40 | }; 41 | 42 | 43 | 44 | #endif -------------------------------------------------------------------------------- /211INC/vgui_int.h: -------------------------------------------------------------------------------- 1 | 2 | #ifndef VGUI_INT_H 3 | #define VGUI_INT_H 4 | 5 | extern "C" 6 | { 7 | void VGui_Startup(); 8 | void VGui_Shutdown(); 9 | 10 | //Only safe to call from inside subclass of Panel::paintBackground 11 | void VGui_ViewportPaintBackground(int extents[4]); 12 | } 13 | 14 | 15 | #endif -------------------------------------------------------------------------------- /211INC/view.h: -------------------------------------------------------------------------------- 1 | #if !defined ( VIEWH ) 2 | #define VIEWH 3 | #pragma once 4 | 5 | void V_StartPitchDrift( void ); 6 | void V_StopPitchDrift( void ); 7 | 8 | #endif // !VIEWH -------------------------------------------------------------------------------- /211INC/wab.h: -------------------------------------------------------------------------------- 1 | /* 2 | * WAB.H 3 | * 4 | * Top level public header for WAB API functions. 5 | * 6 | */ 7 | 8 | #include 9 | #include 10 | #include 11 | #include 12 | #include 13 | #include 14 | #include 15 | #include 16 | -------------------------------------------------------------------------------- /211INC/wabmem.h: -------------------------------------------------------------------------------- 1 | #if !defined(WABMEM_H) 2 | #define WABMEM_H 3 | 4 | #if !defined(MAPIX_H) 5 | typedef SCODE (STDMETHODCALLTYPE MAPIALLOCATEBUFFER)( 6 | ULONG cbSize, 7 | LPVOID FAR * lppBuffer 8 | ); 9 | 10 | typedef SCODE (STDMETHODCALLTYPE MAPIALLOCATEMORE)( 11 | ULONG cbSize, 12 | LPVOID lpObject, 13 | LPVOID FAR * lppBuffer 14 | ); 15 | 16 | typedef ULONG (STDAPICALLTYPE MAPIFREEBUFFER)( 17 | LPVOID lpBuffer 18 | ); 19 | 20 | typedef MAPIALLOCATEBUFFER FAR *LPMAPIALLOCATEBUFFER; 21 | typedef MAPIALLOCATEMORE FAR *LPMAPIALLOCATEMORE; 22 | typedef MAPIFREEBUFFER FAR *LPMAPIFREEBUFFER; 23 | 24 | #endif // MAPIX_H 25 | 26 | typedef SCODE (STDMETHODCALLTYPE WABALLOCATEBUFFER)( 27 | LPWABOBJECT lpWABObject, 28 | ULONG cbSize, 29 | LPVOID FAR * lppBuffer 30 | ); 31 | 32 | typedef SCODE (STDMETHODCALLTYPE WABALLOCATEMORE)( 33 | LPWABOBJECT lpWABObject, 34 | ULONG cbSize, 35 | LPVOID lpObject, 36 | LPVOID FAR * lppBuffer 37 | ); 38 | 39 | typedef ULONG (STDAPICALLTYPE WABFREEBUFFER)( 40 | LPWABOBJECT lpWABObject, 41 | LPVOID lpBuffer 42 | ); 43 | 44 | typedef WABALLOCATEBUFFER FAR *LPWABALLOCATEBUFFER; 45 | typedef WABALLOCATEMORE FAR *LPWABALLOCATEMORE; 46 | typedef WABFREEBUFFER FAR *LPWABFREEBUFFER; 47 | #endif // WABMEM_H 48 | -------------------------------------------------------------------------------- /211INC/wabtags.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/211INC/wabtags.h -------------------------------------------------------------------------------- /211INC/wadlib.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1998, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | ****/ 10 | 11 | // wadlib.h 12 | 13 | // 14 | // wad reading 15 | // 16 | 17 | #define CMP_NONE 0 18 | #define CMP_LZSS 1 19 | 20 | #define TYP_NONE 0 21 | #define TYP_LABEL 1 22 | #define TYP_LUMPY 64 // 64 + grab command number 23 | 24 | typedef struct 25 | { 26 | char identification[4]; // should be WAD2 or 2DAW 27 | int numlumps; 28 | int infotableofs; 29 | } wadinfo_t; 30 | 31 | 32 | typedef struct 33 | { 34 | int filepos; 35 | int disksize; 36 | int size; // uncompressed 37 | char type; 38 | char compression; 39 | char pad1, pad2; 40 | char name[16]; // must be null terminated 41 | } lumpinfo_t; 42 | 43 | extern lumpinfo_t *lumpinfo; // location of each lump on disk 44 | extern int numlumps; 45 | extern wadinfo_t header; 46 | 47 | void W_OpenWad (char *filename); 48 | int W_CheckNumForName (char *name); 49 | int W_GetNumForName (char *name); 50 | int W_LumpLength (int lump); 51 | void W_ReadLumpNum (int lump, void *dest); 52 | void *W_LoadLumpNum (int lump); 53 | void *W_LoadLumpName (char *name); 54 | 55 | void CleanupName (char *in, char *out); 56 | 57 | // 58 | // wad creation 59 | // 60 | void NewWad (char *pathname, qboolean bigendien); 61 | void AddLump (char *name, void *buffer, int length, int type, int compress); 62 | void WriteWad (int wad3); 63 | 64 | -------------------------------------------------------------------------------- /211INC/weaponinfo.h: -------------------------------------------------------------------------------- 1 | /*** 2 | * 3 | * Copyright (c) 1999, 2000, Valve LLC. All rights reserved. 4 | * 5 | * This product contains software technology licensed from Id 6 | * Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 7 | * All Rights Reserved. 8 | * 9 | * Use, distribution, and modification of this source code and/or resulting 10 | * object code is restricted to non-commercial enhancements to products from 11 | * Valve LLC. All other use, distribution, or modification is prohibited 12 | * without written permission from Valve LLC. 13 | * 14 | ****/ 15 | #if !defined ( WEAPONINFOH ) 16 | #define WEAPONINFOH 17 | #ifdef _WIN32 18 | #pragma once 19 | #endif 20 | 21 | // Info about weapons player might have in his/her possession 22 | typedef struct weapon_data_s 23 | { 24 | int m_iId; 25 | int m_iClip; 26 | 27 | float m_flNextPrimaryAttack; 28 | float m_flNextSecondaryAttack; 29 | float m_flTimeWeaponIdle; 30 | 31 | int m_fInReload; 32 | int m_fInSpecialReload; 33 | float m_flNextReload; 34 | float m_flPumpTime; 35 | float m_fReloadTime; 36 | 37 | float m_fAimedDamage; 38 | float m_fNextAimBonus; 39 | int m_fInZoom; 40 | int m_iWeaponState; 41 | 42 | int iuser1; 43 | int iuser2; 44 | int iuser3; 45 | int iuser4; 46 | float fuser1; 47 | float fuser2; 48 | float fuser3; 49 | float fuser4; 50 | } weapon_data_t; 51 | 52 | #endif -------------------------------------------------------------------------------- /211INC/wrect.h: -------------------------------------------------------------------------------- 1 | #if !defined( WRECTH ) 2 | #define WRECTH 3 | 4 | typedef struct rect_s 5 | { 6 | int left, right, top, bottom; 7 | } wrect_t; 8 | 9 | #endif -------------------------------------------------------------------------------- /MAKEFILE: -------------------------------------------------------------------------------- 1 | # 2 | # DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source 3 | # file to this component. This file merely indirects to the real make file 4 | # that is shared by all the components of Pulsar 5 | # 6 | !INCLUDE $(_MAKEENVROOT)\makefile.def 7 | -------------------------------------------------------------------------------- /MINSHELL.APS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/MINSHELL.APS -------------------------------------------------------------------------------- /MINSHRC.H: -------------------------------------------------------------------------------- 1 | /*---------------------------------------------------------------------------*\ 2 | * 3 | * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 4 | * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 5 | * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 6 | * 7 | * Copyright (c) 1995-1998 Microsoft Corporation 8 | * 9 | * file: MinShRC.h 10 | * author: ArulM 11 | * purpose: Sample shell resource ids 12 | * 13 | \*---------------------------------------------------------------------------*/ 14 | 15 | #ifndef __RESOURCE_H__ 16 | #define __RESOURCE_H__ 17 | 18 | // Strings 19 | #define IDS_RUN_ERROR 2002 20 | #define IDS_BROWSE_TITLE 2003 21 | #define IDS_BROWSE_FILTER 2004 22 | 23 | // Taskman Dialogs 24 | #define IDD_TASK_MANAGER 106 25 | #define IDD_REALLYKILL 107 26 | #define IDD_RUN 108 27 | #define IDD_TASK_MANAGER_G 109 28 | #define IDD_REALLYKILL_G 110 29 | #define IDD_RUN_G 111 30 | 31 | // Constants for Task Manager dialog controls 32 | #define IDC_LISTBOX 1000 33 | #define IDC_ENDTASK 1002 34 | #define IDC_RUN 1003 35 | #define IDC_RUNCMD 1004 36 | #define IDC_BROWSE 1005 37 | 38 | // Battery warning dialogs 39 | #define IDD_BACKUP_LOW 210 40 | #define IDD_BACKUP_VLOW 211 41 | #define IDD_MAIN_VLOW 212 42 | 43 | // Icons used by battery warning dialogs 44 | #define IDI_VERYLOW 313 45 | #define IDI_LOWBKUP 314 46 | #define IDI_VLOWBKUP 316 47 | 48 | #endif /* __RESOURCE_H__ */ 49 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # WincastCE 2 | Experimental Desktop Environment Shell for Windows CE on Sega Dreamcast 3 | ------ 4 | ## How to setup 5 | 1.) Place the "211INC" folder in the directory above your Windows CE Dreamcast SDK include directory, which is typically C:\WCEDreamcast\inc. Assuming default install directory, place "211INC" in C:\WCEDreamcast\211INC 6 | 7 | 2.) Add contents of "lib" folder to a new folder in WCE SDK library directory, typically C:\WCEDreamcast\lib. For example, place the contents of "lib" in C:\WCEDreamcast\lib\WincastCE 8 | 9 | 3.) Open the "ceshell.dsw" project file 10 | 11 | 4.) Go to "Tools" --> "Options", then the "Directories" tab 12 | 13 | 5.) Set "C:\WCEDreamcast\211INC" as the highest priority include directory 14 | 15 | 6.) Set "C:\WCEDreamcast\lib\WincastCE" as a library directory, priority shouldn't matter 16 | 17 | After that, WincastCE.exe should be ready to compile without errors 18 | ------- 19 | 20 | Right now as of writing this, the Desktop Enviroment Shell doesn't just "work". Research for loading properly is in progress 21 | 22 | Participate in development here 23 | http://assemblergames.com/l/threads/windows-ce-os-gui-shell-is-possible.64930/ 24 | -------------------------------------------------------------------------------- /RES/BLOW.ICO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/RES/BLOW.ICO -------------------------------------------------------------------------------- /RES/BVERYLOW.ICO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/RES/BVERYLOW.ICO -------------------------------------------------------------------------------- /RES/MVERYLOW.ICO: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/RES/MVERYLOW.ICO -------------------------------------------------------------------------------- /SOURCES: -------------------------------------------------------------------------------- 1 | #---------------------------------------------------------------------------*\ 2 | # 3 | # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, 4 | # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED 5 | # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE. 6 | # 7 | # Copyright (c) 1995-1998 Microsoft Corporation 8 | # 9 | # file: SOURCES 10 | # author: ArulM 11 | # purpose: Build the sample shell using BUILD.EXE 12 | # 13 | #---------------------------------------------------------------------------*/ 14 | 15 | TARGETNAME=taskman 16 | TARGETTYPE=LIBRARY 17 | RELEASETYPE=OAK 18 | WINCEOEM=1 19 | COPYRES=1 20 | 21 | RESFILE=minshell.res 22 | WINCETARGETFILES=$(_RELEASELIBDIR)\$(TARGETNAME).res 23 | 24 | CDEFINES=$(CDEFINES) -DFAREAST -DINTERNATIONAL 25 | 26 | INCLUDES=..\stubs 27 | 28 | TARGETLIBS=$(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib 29 | 30 | SOURCES= \ 31 | minshell.rc \ 32 | alttab.cpp \ 33 | minshell.cpp \ 34 | mindeskt.cpp \ 35 | mintask.cpp \ 36 | housekp.cpp \ 37 | shutils.cpp \ 38 | 39 | # Rule to copy RES file to common\oak\lib 40 | WINCETARGETFILES=$(_COMMONOAKROOT)\lib\$(_CPUINDPATH)\$(TARGETNAME).res 41 | 42 | -------------------------------------------------------------------------------- /WCESH4Dbg/ALTTAB.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/ALTTAB.obj -------------------------------------------------------------------------------- /WCESH4Dbg/HOUSEKP.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/HOUSEKP.obj -------------------------------------------------------------------------------- /WCESH4Dbg/MINDESKT.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/MINDESKT.obj -------------------------------------------------------------------------------- /WCESH4Dbg/MINSHELL.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/MINSHELL.obj -------------------------------------------------------------------------------- /WCESH4Dbg/MINSHELL.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/MINSHELL.res -------------------------------------------------------------------------------- /WCESH4Dbg/MINTASK.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/MINTASK.obj -------------------------------------------------------------------------------- /WCESH4Dbg/SHUTILS.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/SHUTILS.obj -------------------------------------------------------------------------------- /WCESH4Dbg/WincastCE.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/WincastCE.exe -------------------------------------------------------------------------------- /WCESH4Dbg/ceshell.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/ceshell.exe -------------------------------------------------------------------------------- /WCESH4Dbg/ceshell.pch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/ceshell.pch -------------------------------------------------------------------------------- /WCESH4Dbg/ceshell.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/ceshell.pdb -------------------------------------------------------------------------------- /WCESH4Dbg/vc60.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Dbg/vc60.pdb -------------------------------------------------------------------------------- /WCESH4Rel/ALTTAB.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/ALTTAB.obj -------------------------------------------------------------------------------- /WCESH4Rel/HOUSEKP.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/HOUSEKP.obj -------------------------------------------------------------------------------- /WCESH4Rel/MINDESKT.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/MINDESKT.obj -------------------------------------------------------------------------------- /WCESH4Rel/MINSHELL.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/MINSHELL.obj -------------------------------------------------------------------------------- /WCESH4Rel/MINSHELL.res: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/MINSHELL.res -------------------------------------------------------------------------------- /WCESH4Rel/MINTASK.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/MINTASK.obj -------------------------------------------------------------------------------- /WCESH4Rel/SHUTILS.obj: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/SHUTILS.obj -------------------------------------------------------------------------------- /WCESH4Rel/ceshell.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/ceshell.exe -------------------------------------------------------------------------------- /WCESH4Rel/ceshell.pch: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/ceshell.pch -------------------------------------------------------------------------------- /WCESH4Rel/vc60.pdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/WCESH4Rel/vc60.pdb -------------------------------------------------------------------------------- /ceshell.dsw: -------------------------------------------------------------------------------- 1 | Microsoft Developer Studio Workspace File, Format Version 6.00 2 | # WARNING: DO NOT EDIT OR DELETE THIS WORKSPACE FILE! 3 | 4 | ############################################################################### 5 | 6 | Project: "ceshell"=.\ceshell.dsp - Package Owner=<4> 7 | 8 | Package=<5> 9 | {{{ 10 | }}} 11 | 12 | Package=<4> 13 | {{{ 14 | }}} 15 | 16 | ############################################################################### 17 | 18 | Global: 19 | 20 | Package=<5> 21 | {{{ 22 | }}} 23 | 24 | Package=<3> 25 | {{{ 26 | }}} 27 | 28 | ############################################################################### 29 | 30 | -------------------------------------------------------------------------------- /ceshell.ncb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/ceshell.ncb -------------------------------------------------------------------------------- /ceshell.opt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/ceshell.opt -------------------------------------------------------------------------------- /lib/ACMDWRAP.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/ACMDWRAP.LIB -------------------------------------------------------------------------------- /lib/COREDLL2112.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/COREDLL2112.LIB -------------------------------------------------------------------------------- /lib/COREDLLMAX.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/COREDLLMAX.LIB -------------------------------------------------------------------------------- /lib/GETPOWER.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/GETPOWER.LIB -------------------------------------------------------------------------------- /lib/GWESMAIN.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/GWESMAIN.LIB -------------------------------------------------------------------------------- /lib/GWESTUBS.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/GWESTUBS.LIB -------------------------------------------------------------------------------- /lib/MSGBEEP.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/MSGBEEP.LIB -------------------------------------------------------------------------------- /lib/SHEXEC.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/SHEXEC.LIB -------------------------------------------------------------------------------- /lib/SHMISC.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/SHMISC.LIB -------------------------------------------------------------------------------- /lib/SHORTCUT.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/SHORTCUT.LIB -------------------------------------------------------------------------------- /lib/WAVELIB.LIB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/WAVELIB.LIB -------------------------------------------------------------------------------- /lib/coredll500.lib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/FaucetDC/WincastCE/627696aa486a1f09b9e466761a507f9ad53b6eba/lib/coredll500.lib -------------------------------------------------------------------------------- /readme.txt: -------------------------------------------------------------------------------- 1 | Welcome to the Windows CE Toolkit for Dreamcast! 2 | 3 | To facilitate remote debugging, go to the "WCE Configuration" toolbar and 4 | select the "Dreamcast" configuration, if it is not already selected. 5 | 6 | By default, the Visual Studio IDE will attempt to connect to your Dreamcast 7 | development machine whenever you build your project. If you would prefer, 8 | you can disable this default behavior by selecting "Tools" then "Options..." 9 | from the Menu Bar. In the "Windows CE" tab of the "Options" dialog, disable 10 | "Always download binary to the target". 11 | 12 | If you do this, you will need to add a post-build step to copy your project 13 | to the Windows CE Toolkit for Dreamcast release directory. To accomplish this, 14 | open the "Project Settings" dialog by selecting "Project" then "Settings..." 15 | from the Menu Bar. In the "Settings For:" dropdown listbox at the left of the 16 | "Project Settings" dialog, select "All Configurations". Find and select the 17 | "Post-build step" tab at the right of the "Project Settings" dialog (you may 18 | need to scroll through the tabs until it is visible). In the "Post-build 19 | description:" field, enter: 20 | 21 | Copying executable to the release directory. 22 | 23 | In the "Post-build command(s):" area, click on the highlighted entry and 24 | enter: 25 | 26 | dccopy $(TargetPath) 27 | --------------------------------------------------------------------------------