The MASM Forum Archive 2004 to 2012

Project Support Forums => MASM32 => WINDOWS.INC Project => Topic started by: Gunner on January 26, 2010, 10:19:57 PM

Title: Assoc* equates
Post by: Gunner on January 26, 2010, 10:19:57 PM
Here are some more equate for your next version of windows.inc and winextra.inc the following equates weren't in my files so here ya go


;;;; ASSOCSTR
ASSOCSTR_COMMAND                         equ 1
ASSOCSTR_EXECUTABLE                      equ 2
ASSOCSTR_FRIENDLYDOCNAME equ 3
ASSOCSTR_FRIENDLYAPPNAME equ 4
ASSOCSTR_NOOPEN equ 5
ASSOCSTR_SHELLNEWVALUE equ 6
ASSOCSTR_DDECOMMAND equ 7
ASSOCSTR_DDEIFEXEC equ 8
ASSOCSTR_DDEAPPLICATION equ 9
ASSOCSTR_DDETOPIC equ 10

;;;; ASSOCF
ASSOCF_INIT_NOREMAPCLSID equ 1
ASSOCF_INIT_BYEXENAME equ 2
ASSOCF_OPEN_BYEXENAME equ 2
ASSOCF_INIT_DEFAULTTOSTAR equ 4
ASSOCF_INIT_DEFAULTTOFOLDER equ 8
ASSOCF_NOUSERSETTINGS equ 10
ASSOCF_NOTRUNCATE equ 20
ASSOCF_VERIFY equ 40
ASSOCF_REMAPRUNDLL equ 80
ASSOCF_NOFIXUPS equ 100
ASSOCF_IGNOREBASECLASS equ 200
Title: Re: Assoc* equates
Post by: hutch-- on January 27, 2010, 03:14:53 AM
Rob,

Thansk for the additions, what I need to know to integrate them is what C include file did they come out of. This is becauase the construction of windows.inc and the attachment to it is done with nearly 50 files and growing and I need to know where to put the additional data.
Title: Re: Assoc* equates
Post by: Wannabe on January 27, 2010, 01:50:59 PM
shlwapi.h
and the ASSOCF equates should be in hexadecimal
from shlwapi.h:

enum {
    ASSOCF_INIT_NOREMAPCLSID           = 0x00000001,  //  do not remap clsids to progids
    ASSOCF_INIT_BYEXENAME              = 0x00000002,  //  executable is being passed in
    ASSOCF_OPEN_BYEXENAME              = 0x00000002,  //  executable is being passed in
    ASSOCF_INIT_DEFAULTTOSTAR          = 0x00000004,  //  treat "*" as the BaseClass
    ASSOCF_INIT_DEFAULTTOFOLDER        = 0x00000008,  //  treat "Folder" as the BaseClass
    ASSOCF_NOUSERSETTINGS              = 0x00000010,  //  dont use HKCU
    ASSOCF_NOTRUNCATE                  = 0x00000020,  //  dont truncate the return string
    ASSOCF_VERIFY                      = 0x00000040,  //  verify data is accurate (DISK HITS)
    ASSOCF_REMAPRUNDLL                 = 0x00000080,  //  actually gets info about rundlls target if applicable
    ASSOCF_NOFIXUPS                    = 0x00000100,  //  attempt to fix errors if found
    ASSOCF_IGNOREBASECLASS             = 0x00000200,  //  dont recurse into the baseclass
};