Changeset 2237 for trunk/src


Ignore:
Timestamp:
Dec 29, 1999, 12:16:33 AM (26 years ago)
Author:
sandervl
Message:

added apis + exports for shlwapi

Location:
trunk/src/shell32
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/shell32.def

    r1695 r2237  
    1 ; $Id: shell32.def,v 1.20 1999-11-10 22:13:09 phaller Exp $
     1; $Id: shell32.def,v 1.21 1999-12-28 23:16:33 sandervl Exp $
    22
    33;Created by BLAST for IBM's compiler
     
    6868    PathQuoteSpaces                   = _PathQuoteSpacesAW@4                  @55
    6969    PathUnquoteSpaces                 = _PathUnquoteSpacesAW@4                @56
    70     PathGetDriveNumber                = _PathGetDriveNumber@4                 @57
     70    PathGetDriveNumber                = _PathGetDriveNumberAW@4               @57
    7171    ParseField                        = _ParseFieldA@16                       @58
    7272    RestartDialog                     = _RestartDialog@12                     @59
     
    314314;   Shl1632_ThunkData32               = _Shl1632_ThunkData32@?                @299
    315315;   Shl3216_ThunkData32               = _Shl3216_ThunkData32@?                @300
    316 ;   StrChrA                           = _StrChrA@?                            @301
     316    StrChrA                           = _StrChrA@8                            @301
    317317;   StrChrIA                          = _StrChrIA@?                           @302
    318318;   StrChrIW                          = _StrChrIW@?                           @303
    319319    StrChrW                           = _StrChrW@8                            @304
    320320;   StrCmpNA                          = _StrCmpNA@?                           @305
    321 ;   StrCmpNIA                         = _StrCmpNIA@?                          @306
     321    StrCmpNIA                         = _StrCmpNIA@12                         @306
    322322    StrCmpNIW                         = _StrCmpNIW@12                         @307
    323323;   StrCmpNW                          = _StrCmpNW@?                           @308
     
    330330;   StrCpyA                           = _StrCpyA@?                            @315
    331331    StrNCpyW                          = _StrNCpyW@8                           @316
    332 ;   StrRChrA                          = _StrRChrA@?                           @317
     332    StrRChrA                          = _StrRChrA@12                          @317
    333333;   StrRChrIA                         = _StrRChrIA@?                          @318
    334334;   StrRChrIW                         = _StrRChrIW@?                          @319
     
    378378;   FOOBAR1217                        = _FOOBAR1217@?                         @1217
    379379
    380     StrRetToBufA                      = _StrRetToBufA@16                      @1000
    381     StrRetToBufW                      = _StrRetToBufW@16                      @1001
    382     PathMatchSpecA                    = _PathMatchSpecA@8                     @1002
    383     PathMatchSpecW                    = _PathMatchSpecW@8                     @1003
    384     StrRetToStrNA                     = _StrRetToStrNA@16                     @1004
    385     StrRetToStrNW                     = _StrRetToStrNW@16                     @1005
    386     PathAddBackslashA                 = _PathAddBackslashA@4                  @1006
    387     PathAddBackslashW                 = _PathAddBackslashW@4                  @1007
    388     PathFindFilenameA                 = _PathFindFilenameA@4                  @1008
    389     PathFindFilenameW                 = _PathFindFilenameW@4                  @1009
    390     PathIsRootA                       = _PathIsRootA@4                        @1010
    391     PathIsRootW                       = _PathIsRootW@4                        @1011
    392     PathRemoveBackslashA              = _PathRemoveBackslashA@4               @1012
    393     PathRemoveBackslashW              = _PathRemoveBackslashW@4               @1013
    394     PathRemoveFileSpecA               = _PathRemoveFileSpecA@4                @1014
     380    _PathMatchSpecA@8                     @1002
     381    _PathMatchSpecW@8                     @1003
     382    _StrRetToStrNA@16                     @1004
     383    _StrRetToStrNW@16                     @1005
     384    _PathAddBackslashA@4                  @1006
     385    _PathAddBackslashW@4                  @1007
     386    _PathFindFilenameA@4                  @1008
     387    _PathFindFilenameW@4                  @1009
     388    _PathIsRootA@4                        @1010
     389    _PathIsRootW@4                        @1011
     390    _PathRemoveBackslashA@4               @1012
     391    _PathRemoveBackslashW@4               @1013
     392    _PathRemoveFileSpecA@4                @1014
     393
     394    _PathCombineA@12                      @1015
     395    _PathCombineW@12                      @1016
     396    _PathGetArgsA@4                       @1019
     397    _PathGetArgsW@4                       @1020
     398
     399    _PathBuildRootA@8                     @1021
     400    _PathBuildRootW@8                     @1022
     401    _PathUnquoteSpacesA@4                 @1023
     402    _PathUnquoteSpacesW@4                 @1024
     403    _PathFindOnPathA@8                    @1025
     404    _PathFindOnPathW@8                    @1026
     405    _PathFileExistsA@4                    @1027
     406    _PathFileExistsW@4                    @1028
     407    _PathIsRelativeA@4                    @1029
     408    _PathIsRelativeW@4                    @1030
     409    _PathRemoveBlanksA@4                  @1031
     410    _PathRemoveBlanksW@4                  @1032
     411    _PathQuoteSpacesA@4                   @1033
     412    _PathQuoteSpacesW@4                   @1034
     413    _PathSetDlgItemPathA@12               @1035
     414    _PathSetDlgItemPathW@12               @1036
     415    _PathGetDriveNumberA@4                @1037
     416    _PathGetDriveNumberW@4                @1038
     417    _PathIsUNCA@4                         @1039
     418    _PathIsUNCW@4                         @1040
     419    _StrFormatByteSizeA@12                @1041
     420    _StrFormatByteSizeW@12                @1042
     421    _PathAppendA@8                        @1043
     422    _PathAppendW@8                        @1044
  • trunk/src/shell32/shellord.cpp

    r1551 r2237  
    1 /* $Id: shellord.cpp,v 1.3 1999-11-02 19:17:15 phaller Exp $ */
     1/* $Id: shellord.cpp,v 1.4 1999-12-28 23:16:33 sandervl Exp $ */
    22/*
    33 * The parameters of many functions changes between different OS versions
     
    4646    int count,
    4747    IDSTRUCT *idlist)
    48 {       FIXME("(0x%04x,0x%08lx,0x%08lx,0x%08lx,0x%08x,%p):stub.\n",
     48{       
     49        FIXME("SHChangeNotifyRegister: (0x%04x,0x%08lx,0x%08lx,0x%08lx,0x%08x,%p):stub.\n",
    4950                hwnd,events1,events2,msg,count,idlist);
    5051        return 0;
     
    115116 */
    116117DWORD WINAPI PickIconDlg(DWORD x,DWORD y,DWORD z,DWORD a)
    117 {       FIXME("(%08lx,%08lx,%08lx,%08lx):stub.\n",x,y,z,a);
     118{       FIXME("PickIconDlg(%08lx,%08lx,%08lx,%08lx):stub.\n",x,y,z,a);
    118119        return 0xffffffff;
    119120}
     
    11051106
    11061107/*************************************************************************
     1108 * StrChrA                                      [NT 4.0:SHELL32.651]
     1109 *
     1110 */
     1111LPSTR WINAPI StrChrA (LPSTR str, CHAR x )
     1112{       LPSTR ptr=str;
     1113       
     1114        do
     1115        {  if (*ptr==x)
     1116           { return ptr;
     1117           }
     1118           ptr++;
     1119        } while (*ptr);
     1120        return NULL;
     1121}
     1122
     1123/*************************************************************************
    11071124 * StrChrW                                      [NT 4.0:SHELL32.651]
    11081125 *
     
    11311148
    11321149/*************************************************************************
     1150 * StrCmpNIA                                    [NT 4.0:SHELL32.*]
     1151 *
     1152 */
     1153INT WINAPI StrCmpNIA ( LPSTR wstr1, LPSTR wstr2, INT len)
     1154{       FIXME("%s %s %i stub\n", wstr1,wstr2,len);
     1155        return 0;
     1156}
     1157
     1158/*************************************************************************
    11331159 * SHAllocShared                                [SHELL32.520]
    11341160 *
  • trunk/src/shell32/shellpath.cpp

    r1553 r2237  
    1 /* $Id: shellpath.cpp,v 1.4 1999-11-02 20:05:35 phaller Exp $ */
     1/* $Id: shellpath.cpp,v 1.5 1999-12-28 23:16:33 sandervl Exp $ */
    22
    33/*
     
    9999 * PathBuildRoot [SHELL32.30]
    100100 */
    101 ODINFUNCTION2(LPSTR, PathBuildRootA,
    102               LPSTR, root,
    103               BYTE, drive)
     101LPSTR WINAPI PathBuildRootA(LPSTR root, BYTE drive)
    104102{
    105103  TRACE("%p %i\n",root, drive);
    106104   strcpy(root,"A:\\");
     105   root[0]+=drive;
     106   return root;
     107}
     108
     109/*************************************************************************
     110 */
     111LPWSTR WINAPI PathBuildRootW(LPWSTR root, BYTE drive)
     112{
     113   lstrcpyW(root, (LPWSTR)L"A:\\");
    107114   root[0]+=drive;
    108115   return root;
     
    329336 *     concats "target\\add" and writes them to target
    330337 */
    331 ODINFUNCTION2(LPSTR, PathAppendA,
    332               LPSTR, x1,
    333               LPSTR, x2)
     338LPSTR WINAPI PathAppendA(LPSTR x1, LPSTR x2)
    334339{
    335340  TRACE("%s %s\n",x1,x2);
    336341  while (x2[0]=='\\') x2++;
    337342  return PathCombineA(x1,x1,x2);
     343}
     344
     345/*************************************************************************
     346 * PathAppend [SHELL32.36]
     347 *
     348 * NOTES
     349 *     concat_paths(char*target,const char*add);
     350 *     concats "target\\add" and writes them to target
     351 */
     352LPWSTR WINAPI PathAppendW(LPWSTR x1, LPWSTR x2)
     353{
     354  while (x2[0] == (WCHAR)'\\') x2++;
     355  return PathCombineW(x1,x1,x2);
    338356}
    339357
     
    491509  TRACE("%s\n",fn);
    492510   if (GetFileAttributesA(fn)==-1)
     511      return FALSE;
     512    else
     513      return TRUE;
     514}
     515/*************************************************************************
     516 * PathFileExists [SHELL32.45]
     517 *
     518 * NOTES
     519 *     file_exists(char *fn);
     520 */
     521ODINFUNCTION1(BOOL, PathFileExistsW,
     522              LPWSTR, fn)
     523{
     524   if (GetFileAttributesW(fn)==-1)
    493525      return FALSE;
    494526    else
     
    763795 *
    764796 */
    765 ODINFUNCTION1(HRESULT, PathGetDriveNumber,
     797ODINFUNCTION1(HRESULT, PathGetDriveNumberAW,
    766798              LPSTR, u)
    767799{  FIXME("%s stub\n",debugstr_a(u));
     800   return 0;
     801}
     802
     803/*************************************************************************
     804 * PathGetDriveNumber32 [SHELL32.57]
     805 *
     806 */
     807ODINFUNCTION1(HRESULT, PathGetDriveNumberA,
     808              LPSTR, u)
     809{  FIXME("%s stub\n",debugstr_a(u));
     810   return 0;
     811}
     812
     813/*************************************************************************
     814 * PathGetDriveNumber32 [SHELL32.57]
     815 *
     816 */
     817ODINFUNCTION1(HRESULT, PathGetDriveNumberW,
     818              LPWSTR, u)
     819
    768820   return 0;
    769821}
     
    11531205 *
    11541206 */
    1155 ODINFUNCTION1(LPSTR,PathRemoveBackslashA,LPSTR,lpPath)
     1207LPSTR WINAPI PathRemoveBackslashA(LPSTR lpPath)
    11561208{
    11571209        LPSTR temp = lpPath;
     
    11701222}
    11711223
    1172 ODINFUNCTION1(LPWSTR,PathRemoveBackslashW,LPWSTR,lpPath)
    1173 {
    1174     dprintf(("(%p),stub!\n", lpPath));
    1175         return lpPath;
    1176 }
    1177 
    1178 /*
    1179    shlwapi functions that have found their way in because most of
    1180    shlwapi is unimplemented and doesn't have a home.
    1181 
    1182    FIXME: move to a more appropriate file( when one exists )
    1183 */
    1184 
    1185  /* SHGetValue: Gets a value from the registry */
    1186 
    1187 ODINFUNCTION6(DWORD,SHGetValueA,HKEY,     hkey,
    1188                                 LPCSTR,   pSubKey,
    1189                                 LPCSTR,   pValue,
    1190                                 LPDWORD,  pwType,
    1191                                 LPVOID,   pvData,
    1192                                 LPDWORD,  pbData)
    1193 {
    1194     dprintf(("(%p),stub!\n", pSubKey));
    1195 
    1196         return ERROR_SUCCESS;  /* return success */
    1197 }
    1198 
    1199 ODINFUNCTION6(DWORD,SHGetValueW,HKEY,     hkey,
    1200                                 LPCWSTR,  pSubKey,
    1201                                 LPCWSTR,  pValue,
    1202                                 LPDWORD,  pwType,
    1203                                 LPVOID,   pvData,
    1204                                 LPDWORD,  pbData)
    1205 {
    1206     dprintf(("(%p),stub!\n", pSubKey));
    1207 
    1208         return ERROR_SUCCESS;  /* return success */
    1209 }
    1210 
    1211 /* gets a user-specific registry value. */
    1212 
    1213 ODINFUNCTION8(LONG,SHRegGetUSValueA,LPCSTR,   pSubKey,
    1214                                     LPCSTR,   pValue,
    1215                                     LPDWORD,  pwType,
    1216                                     LPVOID,   pvData,
    1217                                     LPDWORD,  pbData,
    1218                                     BOOL,     fIgnoreHKCU,
    1219                                     LPVOID,   pDefaultData,
    1220                                     DWORD,    wDefaultDataSize)
    1221 {
    1222     FIXME("(%p),stub!\n", pSubKey);
    1223 
    1224         return ERROR_SUCCESS;  /* return success */
    1225 }
    1226 
    1227 ODINFUNCTION8(LONG,SHRegGetUSValueW,LPCWSTR, pSubKey,
    1228                                     LPCWSTR, pValue,
    1229                                     LPDWORD, pwType,
    1230                                     LPVOID,  pvData,
    1231                                     LPDWORD, pbData,
    1232                                     BOOL,    flagIgnoreHKCU,
    1233                                     LPVOID,  pDefaultData,
    1234                                     DWORD,   wDefaultDataSize)
    1235 {
    1236     dprintf(("(%p),stub!\n", pSubKey));
    1237 
    1238         return ERROR_SUCCESS;  /* return success */
    1239 }
     1224LPWSTR WINAPI PathRemoveBackslashW(LPWSTR lpPath)
     1225{
     1226        LPWSTR temp = lpPath;
     1227        LPWSTR prev = lpPath;
     1228       
     1229        while (*temp)
     1230        {
     1231                prev = temp++;
     1232        }
     1233        if ( *prev == (WCHAR)'\\')
     1234        {
     1235                *prev = (WCHAR)'\0';
     1236        }
     1237
     1238        return prev;
     1239}
     1240
Note: See TracChangeset for help on using the changeset viewer.