Changeset 3242 for trunk/include


Ignore:
Timestamp:
Mar 26, 2000, 6:32:33 PM (25 years ago)
Author:
cbratschi
Message:

* empty log message *

Location:
trunk/include/win
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/win/commctrl.h

    r3181 r3242  
    1 /* $Id: commctrl.h,v 1.25 2000-03-21 17:28:19 cbratschi Exp $ */
     1/* $Id: commctrl.h,v 1.26 2000-03-26 16:29:38 cbratschi Exp $ */
    22/*
    33 * Common controls definitions
     
    28792879    (BOOL)SendMessageA((hwndLV), LVM_ARRANGE, (WPARAM)(UINT)(code), 0L)
    28802880
    2881 #define ListView_EditLabel(hwndLV, i) \
    2882     (HWND)SendMessageA((hwndLV), LVM_EDITLABEL, (WPARAM)(int)(i), 0L)
     2881#define ListView_EditLabelA(hwndLV, i) \
     2882    (HWND)SendMessageA((hwndLV), LVM_EDITLABELA, (WPARAM)(int)(i), 0L)
     2883
     2884#define ListView_EditLabelW(hwndLV, i) \
     2885    (HWND)SendMessageA((hwndLV), LVM_EDITLABELW, (WPARAM)(int)(i), 0L)
    28832886
    28842887#define ListView_GetEditControl(hwndLV) \
  • trunk/include/win/listview.h

    r3216 r3242  
    7979    POINT          scrollPage;   //in scroll units
    8080    POINT          scrollStep;   //in pixels
    81     DWORD          refreshFlags;
     81    DWORD          internalFlags;
    8282
    8383    WPARAM charCode;
     
    9494} LVINTERNALITEMW, *LPLVINTERNALITEMW;
    9595
    96 #define LV_REFRESH_TIMER 1
    97 #define LV_REFRESH_DELAY 100
    98 
    99 #define RF_REFRESH      1
    100 #define RF_UPDATESCROLL 2
    101 #define RF_NOREDRAW     4
     96#define IF_NOREDRAW     1
    10297
    10398extern VOID LISTVIEW_Register (VOID);
  • trunk/include/win/shell.h

    r4 r3242  
    1 /* $Id: shell.h,v 1.1 1999-05-24 20:19:19 ktk Exp $ */
     1/* $Id: shell.h,v 1.2 2000-03-26 16:29:40 cbratschi Exp $ */
    22
    33/*
    4  *                              Shell Library definitions
     4 *                              Shell Library definitions
    55 */
    66#ifndef __WINE_SHELL_H
     
    1919/* global functions used from shell32 */
    2020extern HINSTANCE SHELL_FindExecutable(LPCSTR,LPCSTR ,LPSTR);
    21 extern HGLOBAL16 WINAPI InternalExtractIcon16(HINSTANCE16,LPCSTR,UINT16,WORD);
     21extern HGLOBAL WINAPI InternalExtractIcon(HINSTANCE,LPCSTR,UINT,WORD);
    2222
    2323/****************************************************************************
     
    2525*/
    2626/****************************************************************************
    27 * common return codes 
     27* common return codes
    2828*/
    2929#define SHELL_ERROR_SUCCESS           0L
     
    3838
    3939/****************************************************************************
    40 * common shell file structures 
     40* common shell file structures
    4141*/
    4242/******************************
    4343* DRAG&DROP API
    4444*/
    45 typedef struct {           /* structure for dropped files */
    46         WORD            wSize;
    47         POINT16         ptMousePos;   
    48         BOOL16          fInNonClientArea;
    49         /* memory block with filenames follows */     
    50 } DROPFILESTRUCT16, *LPDROPFILESTRUCT16; 
    51 
    52 typedef struct {           /* structure for dropped files */
    53         DWORD           lSize;
    54         POINT           ptMousePos;   
    55         BOOL            fInNonClientArea;
     45typedef struct {           /* structure for dropped files */
     46        WORD            wSize;
     47        POINT16         ptMousePos;
     48        BOOL16          fInNonClientArea;
     49        /* memory block with filenames follows */
     50} DROPFILESTRUCT16, *LPDROPFILESTRUCT16;
     51
     52typedef struct {           /* structure for dropped files */
     53        DWORD           lSize;
     54        POINT           ptMousePos;
     55        BOOL            fInNonClientArea;
    5656        BOOL          fWideChar;
    57         /* memory block with filenames follows */     
    58 } DROPFILESTRUCT, *LPDROPFILESTRUCT; 
    59 
    60 
    61 /****************************************************************************
    62 * SHITEMID, ITEMIDLIST, PIDL API 
     57        /* memory block with filenames follows */
     58} DROPFILESTRUCT, *LPDROPFILESTRUCT;
     59
     60
     61/****************************************************************************
     62* SHITEMID, ITEMIDLIST, PIDL API
    6363*/
    6464#include "pshpack1.h"
    65 typedef struct 
    66 { WORD  cb;     /* nr of bytes in this item */
    67   BYTE  abID[1];/* first byte in this item */
     65typedef struct
     66{ WORD  cb;     /* nr of bytes in this item */
     67  BYTE  abID[1];/* first byte in this item */
    6868} SHITEMID,*LPSHITEMID;
    6969
    70 typedef struct 
     70typedef struct
    7171{ SHITEMID mkid; /* first itemid in list */
    7272} ITEMIDLIST,*LPITEMIDLIST,*LPCITEMIDLIST;
     
    110110BOOL WINAPI PathIsRootAW(LPCVOID x);
    111111
    112 LPSTR  WINAPI PathAddBackslashA(LPSTR path);   
    113 LPWSTR WINAPI PathAddBackslashW(LPWSTR path);   
     112LPSTR  WINAPI PathAddBackslashA(LPSTR path);
     113LPWSTR WINAPI PathAddBackslashW(LPWSTR path);
    114114#define  PathAddBackslash WINELIB_NAME_AW(PathAddBackslash)
    115 LPVOID  WINAPI PathAddBackslashAW(LPVOID path); 
    116 
    117 BOOL  WINAPI PathQualifyA(LPCSTR path); 
    118 BOOL WINAPI PathQualifyW(LPCWSTR path); 
     115LPVOID  WINAPI PathAddBackslashAW(LPVOID path);
     116
     117BOOL  WINAPI PathQualifyA(LPCSTR path);
     118BOOL WINAPI PathQualifyW(LPCWSTR path);
    119119#define  PathQualify WINELIB_NAME_AW(PathQualify)
    120 BOOL  WINAPI PathQualifyAW(LPCVOID path);       
    121 
    122 LPSTR  WINAPI PathQuoteSpacesA(LPCSTR path);   
    123 LPWSTR WINAPI PathQuoteSpacesW(LPCWSTR path);   
     120BOOL  WINAPI PathQualifyAW(LPCVOID path);
     121
     122LPSTR  WINAPI PathQuoteSpacesA(LPCSTR path);
     123LPWSTR WINAPI PathQuoteSpacesW(LPCWSTR path);
    124124#define  PathQuoteSpaces WINELIB_NAME_AW(PathQuoteSpaces)
    125 LPVOID  WINAPI PathQuoteSpacesAW(LPCVOID path); 
     125LPVOID  WINAPI PathQuoteSpacesAW(LPCVOID path);
    126126
    127127LPSTR  WINAPI PathCombineA(LPSTR szDest, LPCSTR lpszDir, LPCSTR lpszFile);
     
    133133LPCWSTR WINAPI PathFindExtensionW(LPCWSTR path);
    134134#define  PathFindExtension WINELIB_NAME_AW(PathFindExtension)
    135 LPCVOID WINAPI PathFindExtensionAW(LPCVOID path); 
     135LPCVOID WINAPI PathFindExtensionAW(LPCVOID path);
    136136
    137137LPCSTR WINAPI PathGetExtensionA(LPCSTR path, DWORD y, DWORD x);
    138138LPCWSTR WINAPI PathGetExtensionW(LPCWSTR path, DWORD y, DWORD x);
    139139#define  PathGetExtension WINELIB_NAME_AW(PathGetExtension)
    140 LPCVOID WINAPI PathGetExtensionAW(LPCVOID path, DWORD y, DWORD x); 
     140LPCVOID WINAPI PathGetExtensionAW(LPCVOID path, DWORD y, DWORD x);
    141141
    142142LPCSTR WINAPI PathFindFilenameA(LPCSTR path);
    143143LPCWSTR WINAPI PathFindFilenameW(LPCWSTR path);
    144144#define  PathFindFilename WINELIB_NAME_AW(PathFindFilename)
    145 LPCVOID WINAPI PathFindFilenameAW(LPCVOID path); 
     145LPCVOID WINAPI PathFindFilenameAW(LPCVOID path);
    146146
    147147BOOL WINAPI PathMatchSpecA(LPCSTR x, LPCSTR y);
     
    174174#define  StrFormatByteSize WINELIB_NAME_AW(StrFormatByteSize)
    175175
     176BOOL WINAPI PathIsURLA(LPCSTR str);
     177
    176178/****************************************************************************
    177179*  other functions
     
    181183DWORD WINAPI SHFree(LPVOID x);
    182184
    183 #define CSIDL_DESKTOP           0x0000
    184 #define CSIDL_PROGRAMS          0x0002
    185 #define CSIDL_CONTROLS          0x0003
    186 #define CSIDL_PRINTERS          0x0004
    187 #define CSIDL_PERSONAL          0x0005
    188 #define CSIDL_FAVORITES         0x0006
    189 #define CSIDL_STARTUP           0x0007
    190 #define CSIDL_RECENT            0x0008
    191 #define CSIDL_SENDTO            0x0009
    192 #define CSIDL_BITBUCKET         0x000a
    193 #define CSIDL_STARTMENU         0x000b
    194 #define CSIDL_DESKTOPDIRECTORY  0x0010
    195 #define CSIDL_DRIVES            0x0011
    196 #define CSIDL_NETWORK           0x0012
    197 #define CSIDL_NETHOOD           0x0013
    198 #define CSIDL_FONTS             0x0014
    199 #define CSIDL_TEMPLATES         0x0015
    200 #define CSIDL_COMMON_STARTMENU  0x0016
    201 #define CSIDL_COMMON_PROGRAMS   0X0017
    202 #define CSIDL_COMMON_STARTUP    0x0018
    203 #define CSIDL_COMMON_DESKTOPDIRECTORY   0x0019
    204 #define CSIDL_APPDATA           0x001a
    205 #define CSIDL_PRINTHOOD         0x001b
    206 #define CSIDL_ALTSTARTUP        0x001d
    207 #define CSIDL_COMMON_ALTSTARTUP 0x001e
     185#define CSIDL_DESKTOP           0x0000
     186#define CSIDL_PROGRAMS          0x0002
     187#define CSIDL_CONTROLS          0x0003
     188#define CSIDL_PRINTERS          0x0004
     189#define CSIDL_PERSONAL          0x0005
     190#define CSIDL_FAVORITES         0x0006
     191#define CSIDL_STARTUP           0x0007
     192#define CSIDL_RECENT            0x0008
     193#define CSIDL_SENDTO            0x0009
     194#define CSIDL_BITBUCKET         0x000a
     195#define CSIDL_STARTMENU         0x000b
     196#define CSIDL_DESKTOPDIRECTORY  0x0010
     197#define CSIDL_DRIVES            0x0011
     198#define CSIDL_NETWORK           0x0012
     199#define CSIDL_NETHOOD           0x0013
     200#define CSIDL_FONTS             0x0014
     201#define CSIDL_TEMPLATES         0x0015
     202#define CSIDL_COMMON_STARTMENU  0x0016
     203#define CSIDL_COMMON_PROGRAMS   0X0017
     204#define CSIDL_COMMON_STARTUP    0x0018
     205#define CSIDL_COMMON_DESKTOPDIRECTORY   0x0019
     206#define CSIDL_APPDATA           0x001a
     207#define CSIDL_PRINTHOOD         0x001b
     208#define CSIDL_ALTSTARTUP        0x001d
     209#define CSIDL_COMMON_ALTSTARTUP 0x001e
    208210#define CSIDL_COMMON_FAVORITES  0x001f
    209 #define CSIDL_INTERNET_CACHE    0x0020
    210 #define CSIDL_COOKIES           0x0021
    211 #define CSIDL_HISTORY           0x0022
     211#define CSIDL_INTERNET_CACHE    0x0020
     212#define CSIDL_COOKIES           0x0021
     213#define CSIDL_HISTORY           0x0022
    212214
    213215#endif  /* __WINE_SHELL_H */
  • trunk/include/win/shlguid.h

    r1560 r3242  
    1 /* $Id: shlguid.h,v 1.3 1999-11-02 21:06:49 phaller Exp $ */
     1/* $Id: shlguid.h,v 1.4 2000-03-26 16:29:41 cbratschi Exp $ */
    22
    33#ifndef __WINE_SHLGUID_H
     
    3737*/
    3838/* the next IID's are the namespace elements of the pidls */
    39 DEFINE_GUID (IID_MyComputer,             0x20D04FE0L, 0x3AEA, 0x1069, 0xA2, 0xD8, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
    40 DEFINE_GUID (IID_IExplore,               0x871C5380L, 0x42A0, 0x1069, 0xA2, 0xEA, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
    41 DEFINE_GUID (IID_Control,                0x23EC2020L, 0x3AEA, 0x1069, 0xA2, 0xDD, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
    42 DEFINE_GUID (IID_Printer,                0x2227A280L, 0x3AEA, 0x1069, 0xA2, 0xDE, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
    43 DEFINE_GUID (IID_Network,                0x208D2C60L, 0x3AEA, 0x1069, 0xA2, 0xD7, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
    44 DEFINE_GUID (IID_BitBucket,              0x645FF040L, 0x5081, 0x101B, 0x9F, 0x08, 0x00, 0xAA, 0x00, 0x2F, 0x95, 0x4E);
    45 
    46 DEFINE_GUID (CLSID_PaperBin,             0x645FF040L, 0x5081, 0x101B, 0x9F, 0x08, 0x00, 0xAA, 0x00, 0x2F, 0x95, 0x4E);
     39DEFINE_GUID(CLSID_NetworkPlaces, 0x208D2C60, 0x3AEA, 0x1069, 0xA2, 0xD7, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
     40DEFINE_GUID(CLSID_NetworkDomain, 0x46e06680, 0x4bf0, 0x11d1, 0x83, 0xee, 0x00, 0xa0, 0xc9, 0x0d, 0xc8, 0x49);
     41DEFINE_GUID(CLSID_NetworkServer, 0xc0542a90, 0x4bf0, 0x11d1, 0x83, 0xee, 0x00, 0xa0, 0xc9, 0x0d, 0xc8, 0x49);
     42DEFINE_GUID(CLSID_NetworkShare, 0x54a754c0, 0x4bf0, 0x11d1, 0x83, 0xee, 0x00, 0xa0, 0xc9, 0x0d, 0xc8, 0x49);
     43DEFINE_GUID(CLSID_MyComputer, 0x20D04FE0, 0x3AEA, 0x1069, 0xA2, 0xD8, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
     44DEFINE_GUID(CLSID_Internet, 0x871C5380, 0x42A0, 0x1069, 0xA2, 0xEA, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
     45DEFINE_GUID(CLSID_ShellFSFolder, 0xF3364BA0, 0x65B9, 0x11CE, 0xA9, 0xBA, 0x00, 0xAA, 0x00, 0x4A, 0xE8, 0x37);
     46DEFINE_GUID(CLSID_RecycleBin, 0x645FF040, 0x5081, 0x101B, 0x9F, 0x08, 0x00, 0xAA, 0x00, 0x2F, 0x95, 0x4E);
     47DEFINE_GUID(CLSID_ControlPanel, 0x21EC2020, 0x3AEA, 0x1069, 0xA2, 0xDD, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
     48DEFINE_GUID(CLSID_Printers, 0x2227A280, 0x3AEA, 0x1069, 0xA2, 0xDE, 0x08, 0x00, 0x2B, 0x30, 0x30, 0x9D);
     49DEFINE_GUID(CLSID_MyDocuments, 0x450d8fba, 0xad25, 0x11d0, 0x98, 0xa8, 0x08, 0x00, 0x36, 0x1b, 0x11, 0x03);
    4750#endif /* __WINE_SHLGUID_H */
  • trunk/include/win/wine/obj_shellfolder.h

    r1700 r3242  
    1 /* $Id: obj_shellfolder.h,v 1.6 1999-11-10 23:35:15 phaller Exp $ */
     1/* $Id: obj_shellfolder.h,v 1.7 2000-03-26 16:29:41 cbratschi Exp $ */
    22/*
    33 * Defines the COM interfaces and APIs related to IShellFolder
     
    1010
    1111#include "wine/obj_base.h"
    12 #include "wine/obj_moniker.h"           /* for LPBC */
     12#include "wine/obj_moniker.h"           /* for LPBC */
    1313#include "wine/obj_enumidlist.h"
    1414#include "wine/obj_oleaut.h"
     
    2323*  STRRET (temporary, move it away)
    2424*/
    25 #define STRRET_WSTR     0x0000
    26 #define STRRET_OFFSETA  0x0001
    27 #define STRRET_CSTRA    0x0002
    28 #define STRRET_ASTR     0X0003
    29 #define STRRET_OFFSETW  0X0004
    30 #define STRRET_CSTRW    0X0005
     25#define STRRET_WSTR     0x0000
     26#define STRRET_OFFSETA  0x0001
     27#define STRRET_CSTRA    0x0002
     28#define STRRET_ASTR     0X0003
     29#define STRRET_OFFSETW  0X0004
     30#define STRRET_CSTRW    0X0005
    3131
    3232
    3333typedef struct _STRRET
    34 { UINT uType;           /* STRRET_xxx */
     34{ UINT uType;           /* STRRET_xxx */
    3535  union
    36   { LPWSTR      pOleStr;        /* OLESTR that will be freed */
    37     LPSTR       pStr;
    38     UINT        uOffset;        /* OffsetINT32o SHITEMID (ANSI) */
    39     char        cStr[MAX_PATH]; /* Buffer to fill in */
    40     WCHAR       cStrW[MAX_PATH];
     36  { LPWSTR      pOleStr;        /* OLESTR that will be freed */
     37    LPSTR       pStr;
     38    UINT        uOffset;        /* OffsetINT32o SHITEMID (ANSI) */
     39    char        cStr[MAX_PATH]; /* Buffer to fill in */
     40    WCHAR       cStrW[MAX_PATH];
    4141  }u;
    4242} STRRET,*LPSTRRET;
     
    6363typedef struct
    6464{
    65   GUID  guidSearch;
     65  GUID  guidSearch;
    6666  WCHAR wszFriendlyName[80];
    67   WCHAR wszMenuText[80];
     67  WCHAR wszMenuText[80];
    6868  WCHAR wszHelpText[MAX_PATH];
    6969  WCHAR wszUrl[2084];
     
    8686
    8787/*** IUnknown methods ***/
    88 #define IEnumIDList_QueryInterface(p,a,b)       ICOM_CALL2(QueryInterface,p,a,b)
    89 #define IEnumIDList_AddRef(p)                   ICOM_CALL (AddRef,p)
    90 #define IEnumIDList_Release(p)                  ICOM_CALL (Release,p)
     88#define IEnumIDList_QueryInterface(p,a,b)       ICOM_CALL2(QueryInterface,p,a,b)
     89#define IEnumIDList_AddRef(p)                   ICOM_CALL (AddRef,p)
     90#define IEnumIDList_Release(p)                  ICOM_CALL (Release,p)
    9191/*** IEnumIDList methods ***/
    92 #define IEnumIDList_Next(p,a,b,c)               ICOM_CALL3(Next,p,a,b,c)
    93 #define IEnumIDList_Skip(p,a)                   ICOM_CALL1(Skip,p,a)
    94 #define IEnumIDList_Reset(p)                    ICOM_CALL(Reset,p)
    95 #define IEnumIDList_Clone(p,a)                  ICOM_CALL1(Clone,p,a)
     92#define IEnumIDList_Next(p,a,b,c)               ICOM_CALL3(Next,p,a,b,c)
     93#define IEnumIDList_Skip(p,a)                   ICOM_CALL1(Skip,p,a)
     94#define IEnumIDList_Reset(p)                    ICOM_CALL(Reset,p)
     95#define IEnumIDList_Clone(p,a)                  ICOM_CALL1(Clone,p,a)
    9696
    9797/*****************************************************************************
     
    9999 */
    100100typedef enum
    101 {       SHGDN_NORMAL            = 0,            /* default (display purpose) */
    102         SHGDN_INFOLDER          = 1,            /* displayed under a folder (relative)*/
    103         SHGDN_FORPARSING        = 0x8000        /* for ParseDisplayName or path */
     101{       SHGDN_NORMAL            = 0,            /* default (display purpose) */
     102        SHGDN_INFOLDER          = 1,            /* displayed under a folder (relative)*/
     103        SHGDN_FORPARSING        = 0x8000        /* for ParseDisplayName or path */
    104104} SHGNO;
    105105
     
    108108 */
    109109typedef enum tagSHCONTF
    110 {       SHCONTF_FOLDERS         = 32,   /* for shell browser */
    111         SHCONTF_NONFOLDERS      = 64,   /* for default view */
    112         SHCONTF_INCLUDEHIDDEN   = 128   /* for hidden/system objects */
     110{       SHCONTF_FOLDERS         = 32,   /* for shell browser */
     111        SHCONTF_NONFOLDERS      = 64,   /* for default view */
     112        SHCONTF_INCLUDEHIDDEN   = 128   /* for hidden/system objects */
    113113} SHCONTF;
    114114
     
    116116 * IShellFolder::GetAttributesOf flags
    117117 */
    118 #define SFGAO_CANCOPY           DROPEFFECT_COPY /* Objects can be copied */
    119 #define SFGAO_CANMOVE           DROPEFFECT_MOVE /* Objects can be moved */
    120 #define SFGAO_CANLINK           DROPEFFECT_LINK /* Objects can be linked */
    121 #define SFGAO_CANRENAME         0x00000010L     /* Objects can be renamed */
    122 #define SFGAO_CANDELETE         0x00000020L     /* Objects can be deleted */
    123 #define SFGAO_HASPROPSHEET      0x00000040L     /* Objects have property sheets */
    124 #define SFGAO_DROPTARGET        0x00000100L     /* Objects are drop target */
    125 #define SFGAO_CAPABILITYMASK    0x00000177L
    126 #define SFGAO_LINK              0x00010000L     /* Shortcut (link) */
    127 #define SFGAO_SHARE             0x00020000L     /* shared */
    128 #define SFGAO_READONLY          0x00040000L     /* read-only */
    129 #define SFGAO_GHOSTED           0x00080000L     /* ghosted icon */
    130 #define SFGAO_HIDDEN            0x00080000L     /* hidden object */
    131 #define SFGAO_DISPLAYATTRMASK   0x000F0000L
    132 #define SFGAO_FILESYSANCESTOR   0x10000000L     /* It contains file system folder */
    133 #define SFGAO_FOLDER            0x20000000L     /* It's a folder. */
    134 #define SFGAO_FILESYSTEM        0x40000000L     /* is a file system thing (file/folder/root) */
    135 #define SFGAO_HASSUBFOLDER      0x80000000L     /* Expandable in the map pane */
    136 #define SFGAO_CONTENTSMASK      0x80000000L
    137 #define SFGAO_VALIDATE          0x01000000L     /* invalidate cached information */
    138 #define SFGAO_REMOVABLE         0x02000000L     /* is this removeable media? */
    139 #define SFGAO_BROWSABLE         0x08000000L     /* is in-place browsable */
    140 #define SFGAO_NONENUMERATED     0x00100000L     /* is a non-enumerated object */
    141 #define SFGAO_NEWCONTENT        0x00200000L     /* should show bold in explorer tree */
     118#define SFGAO_CANCOPY           DROPEFFECT_COPY /* Objects can be copied */
     119#define SFGAO_CANMOVE           DROPEFFECT_MOVE /* Objects can be moved */
     120#define SFGAO_CANLINK           DROPEFFECT_LINK /* Objects can be linked */
     121#define SFGAO_CANRENAME         0x00000010L     /* Objects can be renamed */
     122#define SFGAO_CANDELETE         0x00000020L     /* Objects can be deleted */
     123#define SFGAO_HASPROPSHEET      0x00000040L     /* Objects have property sheets */
     124#define SFGAO_DROPTARGET        0x00000100L     /* Objects are drop target */
     125#define SFGAO_CAPABILITYMASK    0x00000177L
     126#define SFGAO_LINK              0x00010000L     /* Shortcut (link) */
     127#define SFGAO_SHARE             0x00020000L     /* shared */
     128#define SFGAO_READONLY          0x00040000L     /* read-only */
     129#define SFGAO_GHOSTED           0x00080000L     /* ghosted icon */
     130#define SFGAO_HIDDEN            0x00080000L     /* hidden object */
     131#define SFGAO_DISPLAYATTRMASK   0x000F0000L
     132#define SFGAO_FILESYSANCESTOR   0x10000000L     /* It contains file system folder */
     133#define SFGAO_FOLDER            0x20000000L     /* It's a folder. */
     134#define SFGAO_FILESYSTEM        0x40000000L     /* is a file system thing (file/folder/root) */
     135#define SFGAO_HASSUBFOLDER      0x80000000L     /* Expandable in the map pane */
     136#define SFGAO_CONTENTSMASK      0x80000000L
     137#define SFGAO_VALIDATE          0x01000000L     /* invalidate cached information */
     138#define SFGAO_REMOVABLE         0x02000000L     /* is this removeable media? */
     139#define SFGAO_BROWSABLE         0x08000000L     /* is in-place browsable */
     140#define SFGAO_NONENUMERATED     0x00100000L     /* is a non-enumerated object */
     141#define SFGAO_NEWCONTENT        0x00200000L     /* should show bold in explorer tree */
    142142
    143143/************************************************************************
     
    210210
    211211/*** IUnknown methods ***/
    212 #define IShellFolder_QueryInterface(p,a,b)              ICOM_CALL2(QueryInterface,p,a,b)
    213 #define IShellFolder_AddRef(p)                          ICOM_CALL (AddRef,p)
    214 #define IShellFolder_Release(p)                         ICOM_CALL (Release,p)
     212#define IShellFolder_QueryInterface(p,a,b)              ICOM_CALL2(QueryInterface,p,a,b)
     213#define IShellFolder_AddRef(p)                          ICOM_CALL (AddRef,p)
     214#define IShellFolder_Release(p)                         ICOM_CALL (Release,p)
    215215/*** IShellFolder methods ***/
    216 #define IShellFolder_ParseDisplayName(p,a,b,c,d,e,f)    ICOM_CALL6(ParseDisplayName,p,a,b,c,d,e,f)
    217 #define IShellFolder_EnumObjects(p,a,b,c)               ICOM_CALL3(EnumObjects,p,a,b,c)
    218 #define IShellFolder_BindToObject(p,a,b,c,d)            ICOM_CALL4(BindToObject,p,a,b,c,d)
    219 #define IShellFolder_BindToStorage(p,a,b,c,d)           ICOM_CALL4(BindToStorage,p,a,b,c,d)
    220 #define IShellFolder_CompareIDs(p,a,b,c)                ICOM_CALL3(CompareIDs,p,a,b,c)
    221 #define IShellFolder_CreateViewObject(p,a,b,c)          ICOM_CALL3(CreateViewObject,p,a,b,c)
    222 #define IShellFolder_GetAttributesOf(p,a,b,c)           ICOM_CALL3(GetAttributesOf,p,a,b,c)
    223 #define IShellFolder_GetUIObjectOf(p,a,b,c,d,e,f)       ICOM_CALL6(GetUIObjectOf,p,a,b,c,d,e,f)
    224 #define IShellFolder_GetDisplayNameOf(p,a,b,c)          ICOM_CALL3(GetDisplayNameOf,p,a,b,c)
    225 #define IShellFolder_SetNameOf(p,a,b,c,d,e)             ICOM_CALL5(SetNameOf,p,a,b,c,d,e)
     216#define IShellFolder_ParseDisplayName(p,a,b,c,d,e,f)    ICOM_CALL6(ParseDisplayName,p,a,b,c,d,e,f)
     217#define IShellFolder_EnumObjects(p,a,b,c)               ICOM_CALL3(EnumObjects,p,a,b,c)
     218#define IShellFolder_BindToObject(p,a,b,c,d)            ICOM_CALL4(BindToObject,p,a,b,c,d)
     219#define IShellFolder_BindToStorage(p,a,b,c,d)           ICOM_CALL4(BindToStorage,p,a,b,c,d)
     220#define IShellFolder_CompareIDs(p,a,b,c)                ICOM_CALL3(CompareIDs,p,a,b,c)
     221#define IShellFolder_CreateViewObject(p,a,b,c)          ICOM_CALL3(CreateViewObject,p,a,b,c)
     222#define IShellFolder_GetAttributesOf(p,a,b,c)           ICOM_CALL3(GetAttributesOf,p,a,b,c)
     223#define IShellFolder_GetUIObjectOf(p,a,b,c,d,e,f)       ICOM_CALL6(GetUIObjectOf,p,a,b,c,d,e,f)
     224#define IShellFolder_GetDisplayNameOf(p,a,b,c)          ICOM_CALL3(GetDisplayNameOf,p,a,b,c)
     225#define IShellFolder_SetNameOf(p,a,b,c,d,e)             ICOM_CALL5(SetNameOf,p,a,b,c,d,e)
    226226
    227227/*****************************************************************************
     
    233233typedef enum
    234234{
    235         SHCOLSTATE_TYPE_STR     = 0x00000001,
    236         SHCOLSTATE_TYPE_INT     = 0x00000002,
    237         SHCOLSTATE_TYPE_DATE    = 0x00000003,
    238         SHCOLSTATE_TYPEMASK     = 0x0000000F,
    239         SHCOLSTATE_ONBYDEFAULT  = 0x00000010,
    240         SHCOLSTATE_SLOW         = 0x00000020,
    241         SHCOLSTATE_EXTENDED     = 0x00000040,
    242         SHCOLSTATE_SECONDARYUI  = 0x00000080,
    243         SHCOLSTATE_HIDDEN       = 0x00000100
     235        SHCOLSTATE_TYPE_STR     = 0x00000001,
     236        SHCOLSTATE_TYPE_INT     = 0x00000002,
     237        SHCOLSTATE_TYPE_DATE    = 0x00000003,
     238        SHCOLSTATE_TYPEMASK     = 0x0000000F,
     239        SHCOLSTATE_ONBYDEFAULT  = 0x00000010,
     240        SHCOLSTATE_SLOW         = 0x00000020,
     241        SHCOLSTATE_EXTENDED     = 0x00000040,
     242        SHCOLSTATE_SECONDARYUI  = 0x00000080,
     243        SHCOLSTATE_HIDDEN       = 0x00000100
    244244} SHCOLSTATE;
    245245
    246246typedef struct
    247247{
    248         GUID    fmtid;
    249         DWORD   pid;
     248        GUID    fmtid;
     249        DWORD   pid;
    250250} SHCOLUMNID, *LPSHCOLUMNID;
    251251typedef const SHCOLUMNID* LPCSHCOLUMNID;
    252252
    253253/* GetDetailsEx */
    254 #define PID_FINDDATA            0
    255 #define PID_NETRESOURCE         1
    256 #define PID_DESCRIPTIONID       2
     254#define PID_FINDDATA            0
     255#define PID_NETRESOURCE         1
     256#define PID_DESCRIPTIONID       2
    257257
    258258typedef struct
    259259{
    260         int     fmt;
    261         int     cxChar;
    262         STRRET  str;
     260        int     fmt;
     261        int     cxChar;
     262        STRRET  str;
    263263} SHELLDETAILS, *LPSHELLDETAILS;
    264264
     
    279279
    280280/*** IUnknown methods ***/
    281 #define IShellFolder2_QueryInterface(p,a,b)             ICOM_CALL2(QueryInterface,p,a,b)
    282 #define IShellFolder2_AddRef(p)                         ICOM_CALL (AddRef,p)
    283 #define IShellFolder2_Release(p)                        ICOM_CALL (Release,p)
     281#define IShellFolder2_QueryInterface(p,a,b)             ICOM_CALL2(QueryInterface,p,a,b)
     282#define IShellFolder2_AddRef(p)                         ICOM_CALL (AddRef,p)
     283#define IShellFolder2_Release(p)                        ICOM_CALL (Release,p)
    284284/*** IShellFolder methods ***/
    285 #define IShellFolder2_ParseDisplayName(p,a,b,c,d,e,f)   ICOM_CALL6(ParseDisplayName,p,a,b,c,d,e,f)
    286 #define IShellFolder2_EnumObjects(p,a,b,c)              ICOM_CALL3(EnumObjects,p,a,b,c)
    287 #define IShellFolder2_BindToObject(p,a,b,c,d)           ICOM_CALL4(BindToObject,p,a,b,c,d)
    288 #define IShellFolder2_BindToStorage(p,a,b,c,d)          ICOM_CALL4(BindToStorage,p,a,b,c,d)
    289 #define IShellFolder2_CompareIDs(p,a,b,c)               ICOM_CALL3(CompareIDs,p,a,b,c)
    290 #define IShellFolder2_CreateViewObject(p,a,b,c)         ICOM_CALL3(CreateViewObject,p,a,b,c)
    291 #define IShellFolder2_GetAttributesOf(p,a,b,c)          ICOM_CALL3(GetAttributesOf,p,a,b,c)
    292 #define IShellFolder2_GetUIObjectOf(p,a,b,c,d,e,f)      ICOM_CALL6(GetUIObjectOf,p,a,b,c,d,e,f)
    293 #define IShellFolder2_GetDisplayNameOf(p,a,b,c)         ICOM_CALL3(GetDisplayNameOf,p,a,b,c)
    294 #define IShellFolder2_SetNameOf(p,a,b,c,d,e)            ICOM_CALL5(SetNameOf,p,a,b,c,d,e)
     285#define IShellFolder2_ParseDisplayName(p,a,b,c,d,e,f)   ICOM_CALL6(ParseDisplayName,p,a,b,c,d,e,f)
     286#define IShellFolder2_EnumObjects(p,a,b,c)              ICOM_CALL3(EnumObjects,p,a,b,c)
     287#define IShellFolder2_BindToObject(p,a,b,c,d)           ICOM_CALL4(BindToObject,p,a,b,c,d)
     288#define IShellFolder2_BindToStorage(p,a,b,c,d)          ICOM_CALL4(BindToStorage,p,a,b,c,d)
     289#define IShellFolder2_CompareIDs(p,a,b,c)               ICOM_CALL3(CompareIDs,p,a,b,c)
     290#define IShellFolder2_CreateViewObject(p,a,b,c)         ICOM_CALL3(CreateViewObject,p,a,b,c)
     291#define IShellFolder2_GetAttributesOf(p,a,b,c)          ICOM_CALL3(GetAttributesOf,p,a,b,c)
     292#define IShellFolder2_GetUIObjectOf(p,a,b,c,d,e,f)      ICOM_CALL6(GetUIObjectOf,p,a,b,c,d,e,f)
     293#define IShellFolder2_GetDisplayNameOf(p,a,b,c)         ICOM_CALL3(GetDisplayNameOf,p,a,b,c)
     294#define IShellFolder2_SetNameOf(p,a,b,c,d,e)            ICOM_CALL5(SetNameOf,p,a,b,c,d,e)
    295295/*** IShellFolder2 methods ***/
    296 #define IShellFolder2_GetDefaultSearchGUID(p,a)         ICOM_CALL1(GetDefaultSearchGUID,p,a)
    297 #define IShellFolder2_EnumSearches(p,a)                 ICOM_CALL1(EnumSearches,p,a)
    298 #define IShellFolder2_GetDefaultColumn(p,a,b,c)         ICOM_CALL3(GetDefaultColumn,p,a,b,c)
    299 #define IShellFolder2_GetDefaultColumnState(p,a,b)      ICOM_CALL2(GetDefaultColumnState,p,a,b)
    300 #define IShellFolder2_GetDetailsEx(p,a,b,c)             ICOM_CALL3(GetDetailsEx,p,a,b,c)
    301 #define IShellFolder2_GetDetailsOf(p,a,b,c)             ICOM_CALL3(GetDetailsOf,p,a,b,c)
    302 #define IShellFolder2_MapNameToSCID(p,a,b)              ICOM_CALL2(MapNameToSCID,p,a,b)
     296#define IShellFolder2_GetDefaultSearchGUID(p,a)         ICOM_CALL1(GetDefaultSearchGUID,p,a)
     297#define IShellFolder2_EnumSearches(p,a)                 ICOM_CALL1(EnumSearches,p,a)
     298#define IShellFolder2_GetDefaultColumn(p,a,b,c)         ICOM_CALL3(GetDefaultColumn,p,a,b,c)
     299#define IShellFolder2_GetDefaultColumnState(p,a,b)      ICOM_CALL2(GetDefaultColumnState,p,a,b)
     300#define IShellFolder2_GetDetailsEx(p,a,b,c)             ICOM_CALL3(GetDetailsEx,p,a,b,c)
     301#define IShellFolder2_GetDetailsOf(p,a,b,c)             ICOM_CALL3(GetDetailsOf,p,a,b,c)
     302#define IShellFolder2_MapNameToSCID(p,a,b)              ICOM_CALL2(MapNameToSCID,p,a,b)
    303303
    304304/*****************************************************************************
     
    321321
    322322/*** IUnknown methods ***/
    323 #define IPersistFolder_QueryInterface(p,a,b)    ICOM_CALL2(QueryInterface,p,a,b)
    324 #define IPersistFolder_AddRef(p)                ICOM_CALL (AddRef,p)
    325 #define IPersistFolder_Release(p)               ICOM_CALL (Release,p)
     323#define IPersistFolder_QueryInterface(p,a,b)    ICOM_CALL2(QueryInterface,p,a,b)
     324#define IPersistFolder_AddRef(p)                ICOM_CALL (AddRef,p)
     325#define IPersistFolder_Release(p)               ICOM_CALL (Release,p)
    326326/*** IPersist methods ***/
    327 #define IPersistFolder_GetClassID(p,a)          ICOM_CALL1(GetClassID,p,a)
     327#define IPersistFolder_GetClassID(p,a)          ICOM_CALL1(GetClassID,p,a)
    328328/*** IPersistFolder methods ***/
    329 #define IPersistFolder_Initialize(p,a)          ICOM_CALL1(Initialize,p,a)
     329#define IPersistFolder_Initialize(p,a)          ICOM_CALL1(Initialize,p,a)
    330330
    331331#ifdef __cplusplus
Note: See TracChangeset for help on using the changeset viewer.