News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Beta windows.inc 127d

Started by hutch--, January 31, 2005, 06:50:42 AM

Previous topic - Next topic

hutch--

I have just added a large number of equates from shlobj.h.

[attachment deleted by admin]
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

Kestrel

Recommended:

in next version, addition some directives for Anti Repeat/Multi include. as below


windows.inc
;===================
IFNDEF  _WINDOWS_INC_           ; <-- Top of file
        _WINDOWS_INC_   equ 1
       
       
ENDIF   ; _WINDOWS_INC_         ; <-- bottom of file
;===================           

macros.asm
;===================
IFNDEF  _MACROS_ASM_            ; <-- Top of file
        _MACROS_ASM_    equ 1
    ....    ...

    ....    ...   
       
ENDIF   ; _MACROS_ASM_          ; <-- bottom of file
;===================

Gustav


Hi,

I found some errors in structures of current windows.inc:

LOADED_IMAGE: must have an alignment "4" parameter
IMAGE_DEBUG_INFORMATION: RomImage is defined as BYTE, but in C it is BOOL (which is a DWORD)
ADDRESS: must have an alignment "4" parameter


Biterider

Hi Hutch
I found en error in the new Windows.inc 1.27d beta file.
The definition of DROPEFFECT_LINK is wrong and DROPEFFECT_SCROLL & DROPEFFECT_NONE are not there.  :'(
Check this information.

Regards,

Biterider

pbrennick

Hi Hutch,
I think I have found a typo in the windows.inc file:


mouse_eventC                         equ 2h


should probably be:

MOUSE_EVENT                          equ 2h


hth:
Paul

P1

Hutch,

I just ran into a VER_PLATFORM_WIN32_CE issue and I notice we have no support yet.  MASM32 in perfect for WIN32_CE applications.

Do you have plans to includes CE support?

Regards,  P1  :8)

hutch--

Thanks Paul, I will check it out.

Michael,

I know very little about CE and was not aware that it used x86 ardware, I thought it used some other processor. If it runs x86 it would be an excellent target for MASM programs for the obvious reasons.

LATER : Interesting, both AMD and Intel hardware is supported but I wonder if many of theses are in circulation as small machines. ?
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

hutch--

MOUSE_EVENT does not exist in the reference data I have. There is a lower case function mouse_event and a structure MOUSE_EVENT_RECORD but I don't immediately know where the equqate came from.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

MichaelW

In WinCon.h from the February 2003 PSDK:

//
//  EventType flags:
//

#define KEY_EVENT         0x0001 // Event contains key event record
#define MOUSE_EVENT       0x0002 // Event contains mouse event record
#define WINDOW_BUFFER_SIZE_EVENT 0x0004 // Event contains window change event record
#define MENU_EVENT 0x0008 // Event contains menu event record
#define FOCUS_EVENT 0x0010 // event contains focus change

eschew obfuscation

hutch--

Michael,

Thanks, I now have the extra value in the beta I work on.
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

pbrennick

Hutch,
Well, I'm glad you will work this one out as that is an event that I use and had to make a workaround because I simply refuse to modify any existing windows.inc or any other .inc for that matter as that can cause issues if others use my code.  I don't think anyone except you should modify that file.  That way, you always know what is going on.

Paul

denise_amiga

Quote
SES_EMULATESYSEDIT          equ 1
SES_BEEPONMAXTEXT           equ 2
SES_EXTENDBACKCOLOR         equ 4
SES_MAPCPS                  equ 8
SES_EMULATE10               equ 16
SES_USECRLF                 equ 32
SES_USEAIMM                 equ 64
SES_ALLOWBEEPS              equ 256

ENM_NONE                    equ 00000000h
ENM_CHANGE                  equ 00000001h
ENM_UPDATE                  equ 00000002h
ENM_SCROLL                  equ 00000004h
ENM_KEYEVENTS               equ 00010000h
ENM_MOUSEEVENTS             equ 00020000h
ENM_REQUESTRESIZE           equ 00040000h
ENM_SELCHANGE               equ 00080000h
ENM_DROPFILES               equ 00100000h
ENM_PROTECTED               equ 00200000h
ENM_CORRECTTEXT             equ 00400000h
ENM_IMECHANGE               equ 00800000h
ES_SAVESEL                  equ 00008000h
ES_SUNKEN                   equ 00004000h
ES_DISABLENOSCROLL          equ 00002000h
ES_SELECTIONBAR             equ 01000000h
ES_EX_NOCALLOLEINIT         equ 01000000h
ES_VERTICAL                 equ 00400000h
ES_NOIME                    equ 00080000h
ES_SELFIME                  equ 00040000h
ECO_AUTOWORDSELECTION       equ 00000001h
ECO_AUTOVSCROLL             equ 00000040h
ECO_AUTOHSCROLL             equ 00000080h
ECO_NOHIDESEL               equ 00000100h
ECO_READONLY                equ 00000800h
ECO_WANTRETURN              equ 00001000h
ECO_SAVESEL                 equ 00008000h
ECO_SELECTIONBAR            equ 01000000h
ECO_VERTICAL                equ 00400000h
ECOOP_SET                   equ 0001h
ECOOP_OR                    equ 0002h
ECOOP_AND                   equ 0003h
ECOOP_XOR                   equ 0004h
WB_CLASSIFY                 equ 3
WB_MOVEWORDLEFT             equ 4
WB_MOVEWORDRIGHT            equ 5
WB_LEFTBREAK                equ 6
WB_RIGHTBREAK               equ 7
WB_MOVEWORDPREV             equ 4
WB_MOVEWORDNEXT             equ 5
WB_PREVBREAK                equ 6
WB_NEXTBREAK                equ 7
PC_FOLLOWING                equ 1
PC_LEADING                  equ 2
PC_OVERFLOW                 equ 3
PC_DELIMITER                equ 4
WBF_WORDWRAP                equ 010h
WBF_WORDBREAK               equ 020h
WBF_OVERFLOW                equ 040h
WBF_LEVEL1                  equ 080h
WBF_LEVEL2                  equ 100h
WBF_CUSTOM                  equ 200h

IMF_FORCENONE                  equ 0001h
IMF_FORCEENABLE                equ 0002h
IMF_FORCEDISABLE               equ 0004h
IMF_CLOSESTATUSWINDOW          equ 0008h
IMF_VERTICAL   equ 0020h
IMF_FORCEACTIVE                equ 0040h
IMF_FORCEINACTIVE              equ 0080h
IMF_FORCEREMEMBER              equ 0100h
WBF_CLASS               equ 0Fh
WBF_ISWHITE             equ 10h
WBF_BREAKLINE           equ 20h
WBF_BREAKAFTER          equ 40h
CFM_BOLD               equ 00000001h
CFM_ITALIC             equ 00000002h
CFM_UNDERLINE          equ 00000004h
CFM_STRIKEOUT          equ 00000008h
CFM_PROTECTED          equ 00000010h
CFM_SIZE               equ 80000000h
CFM_COLOR              equ 40000000h
CFM_FACE               equ 20000000h
CFM_OFFSET             equ 10000000h
CFM_CHARSET            equ 08000000h
CFE_BOLD               equ 0001h
CFE_ITALIC             equ 0002h
CFE_UNDERLINE          equ 0004h
CFE_STRIKEOUT          equ 0008h
CFE_PROTECTED          equ 0010h
CFE_AUTOCOLOR          equ 40000000h
yHeightCharPtsMost     equ 1638
SCF_SELECTION          equ 0001h
SCF_WORD               equ 0002h
SF_TEXT                equ 0001h
SF_RTF                 equ 0002h
SF_RTFNOOBJS           equ 0003h
SF_TEXTIZED            equ 0004h
SFF_SELECTION          equ 8000h
SFF_PLAINRTF           equ 4000h
MAX_TAB_STOPS          equ 32
lDefaultTab            equ 720
PFM_STARTINDENT             equ 00000001h
PFM_RIGHTINDENT             equ 00000002h
PFM_OFFSET  equ 00000004h
PFM_ALIGNMENT               equ 00000008h
PFM_TABSTOPS                equ 00000010h
PFM_NUMBERING               equ 00000020h
PFM_OFFSETINDENT            equ 80000000h
PFN_BULLET  equ 0001h
PFA_LEFT    equ 0001h
PFA_RIGHT   equ 0002h
PFA_CENTER  equ 0003h
SEL_EMPTY                equ 0000h
SEL_TEXT equ 0001h
SEL_OBJECT               equ 0002h
SEL_MULTICHAR            equ 0004h
SEL_MULTIOBJECT          equ 0008h
OLEOP_DOVERB           equ 1

duplicate lines