Ignore:
Timestamp:
Oct 8, 1999, 12:19:23 PM (26 years ago)
Author:
phaller
Message:

Add: debug info

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/shell32/new/misc.cpp

    r972 r1183  
    1 /* $Id: misc.cpp,v 1.2 1999-09-18 15:57:52 sandervl Exp $ */
     1/* $Id: misc.cpp,v 1.3 1999-10-08 10:19:22 phaller Exp $ */
    22
    33/*
     
    1616
    1717#include <odin.h>
     18#include <odinwrap.h>
     19#include <os2sel.h>
     20
    1821#include <wchar.h>
    1922#include <wcstr.h>
     
    3033#include <heapstring.h>
    3134
     35
    3236/*****************************************************************************
    3337 * Types & Defines                                                           *
    3438 *****************************************************************************/
    3539
    36 
    37 /*****************************************************************************
    38  * Name      : HICON WIN32API ExtractAssociatedIconExA
     40ODINDEBUGCHANNEL(SHELL32-MISC)
     41
     42
     43/*****************************************************************************
     44 * Name      : HICON IExtractAssociatedIconExA
    3945 * Purpose   : Return icon for given file (either from file itself or from associated
    4046 *             executable) and patch parameters if needed.
     
    4854 *****************************************************************************/
    4955
    50 HICON WIN32API ExtractAssociatedIconExA(HINSTANCE hInst,
    51                                       LPSTR     lpIconPath,
    52                                       LPWORD    lpiIcon)
    53 {
    54   dprintf(("SHELL32: undoc ExtractAssociatedIconExA\n"));
    55 
     56ODINFUNCTION3(HICON, ExtractAssociatedIconExA,
     57              HINSTANCE, hInst,
     58              LPSTR, lpIconPath,
     59              LPWORD, lpiIcon)
     60{
    5661  return ExtractAssociatedIconA(hInst,lpIconPath,lpiIcon);
    5762}
    5863
    59 /*****************************************************************************
    60  * Name      : HICON WIN32API ExtractAssociatedIconW
     64
     65/*****************************************************************************
     66 * Name      : HICON ExtractAssociatedIconW
    6167 * Purpose   : Return icon for given file (either from file itself or from associated
    6268 *             executable) and patch parameters if needed.
     
    7076 *****************************************************************************/
    7177
    72 HICON WIN32API ExtractAssociatedIconW(HINSTANCE hInst,
    73                                       LPWSTR    lpIconPath,
    74                                       LPWORD    lpiIcon)
     78ODINFUNCTION3(HICON, ExtractAssociatedIconW,
     79              HINSTANCE, hInst,
     80              LPWSTR, lpIconPath,
     81              LPWORD, lpiIcon)
    7582{
    7683  LPSTR lpIconPathAscii = UnicodeToAsciiString(lpIconPath);
    7784  HICON hIcon;
    78 
    79   dprintf(("SHELL32: ExtractAssociatedIconW(%08xh,%s,%08xh)\n",
    80            hInst,
    81            lpIconPathAscii,
    82            lpiIcon));
    8385
    8486  hIcon = ExtractAssociatedIconA(hInst,
     
    9294
    9395/*****************************************************************************
    94  * Name      : HICON WIN32API ExtractAssociatedIconExW
     96 * Name      : HICON ExtractAssociatedIconExW
    9597 * Purpose   : Return icon for given file (either from file itself or from associated
    9698 *             executable) and patch parameters if needed.
     
    104106 *****************************************************************************/
    105107
    106 HICON WIN32API ExtractAssociatedIconExW(HINSTANCE hInst,
    107                                       LPWSTR     lpIconPath,
    108                                       LPWORD    lpiIcon)
    109 {
    110   dprintf(("SHELL32: undoc ExtractAssociatedIconExW\n"));
    111 
     108ODINFUNCTION3(HICON, ExtractAssociatedIconExW,
     109              HINSTANCE, hInst,
     110              LPWSTR, lpIconPath,
     111              LPWORD, lpiIcon)
     112{
    112113  return ExtractAssociatedIconW(hInst,lpIconPath,lpiIcon);
    113114}
     
    126127 *****************************************************************************/
    127128
    128 BOOL WIN32API OleStrToStrN (LPSTR   lpMulti,
    129                             INT     nMulti,
    130                             LPCWSTR lpWide,
    131                             INT     nWide)
    132 {
    133   dprintf(("SHELL32: OleStrToStrN(%08xh,%08xh,%08xh,%08xh)\n",
    134            lpMulti,
    135            nMulti,
    136            lpWide,
    137            nWide));
    138 
     129ODINFUNCTION4(BOOL, OleStrToStrN,
     130              LPSTR, lpMulti,
     131              INT, nMulti,
     132              LPCWSTR, lpWide,
     133              INT, nWide)
     134{
    139135  return WideCharToMultiByte (0,
    140136                              0,
     
    160156 *****************************************************************************/
    161157
    162 BOOL WIN32API StrToOleStrN (LPWSTR lpWide,
    163                             INT    nWide,
    164                             LPCSTR lpMulti,
    165                             INT    nMulti)
    166 {
    167   dprintf(("SHELL32: StrToOleStrN(%08xh,%08xh,%08xh,%08xh)\n",
    168            lpWide,
    169            nWide,
    170            lpMulti,
    171            nMulti));
    172 
     158ODINFUNCTION4(BOOL, StrToOleStrN,
     159              LPWSTR, lpWide,
     160              INT, nWide,
     161              LPCSTR, lpMulti,
     162              INT, nMulti)
     163{
    173164  return MultiByteToWideChar (0,
    174165                              0,
     
    192183 *****************************************************************************/
    193184
    194 HRESULT WIN32API StrRetToStrN (LPVOID       dest,
    195                                DWORD        len,
    196                                LPSTRRET     src,
    197                                LPITEMIDLIST pidl)
    198 {
    199   dprintf(("SHELL32: StrRetToStrN(%08xh,%08xh,%08xh,%08xh) not implemented.\n",
    200            dest,
    201            len,
    202            src,
    203            pidl));
    204 
     185ODINFUNCTION4(HRESULT, StrRetToStrN,
     186              LPVOID, dest,
     187              DWORD, len,
     188              LPSTRRET, src,
     189              LPITEMIDLIST, pidl)
     190{
    205191  switch (src->uType)
    206192  {
     
    262248 *****************************************************************************/
    263249
    264 HRESULT WIN32API SHELL32_654 (DWORD x,
    265                               DWORD y)
     250ODINFUNCTION2(HRESULT, SHELL32_654,
     251              DWORD, x,
     252              DWORD, y)
    266253{
    267254  dprintf(("SHELL32: SHELL32_654(%08xh,%08xh) not implemented.\n",
     
    284271 *****************************************************************************/
    285272
    286 int WIN32API StrToOleStr (LPWSTR lpWideCharStr,
    287                           LPCSTR lpMultiByteString)
    288 {
    289   dprintf(("SHELL32: StrToOleStr(%08xh,%08xh)\n",
    290            lpWideCharStr,
    291            lpMultiByteString));
    292 
     273ODINFUNCTION2(int, StrToOleStr,
     274              LPWSTR, lpWideCharStr,
     275              LPCSTR, lpMultiByteString)
     276{
    293277  return MultiByteToWideChar(0,
    294278                             0,
     
    312296 *****************************************************************************/
    313297
    314 LPWSTR WIN32API StrCpyNW(LPWSTR lpString1,LPWSTR lpString2,int iMaxLength)
    315 {
    316   dprintf(("SHELL32: undoc StrCpyNW\n"));
    317 
     298ODINFUNCTION3(LPWSTR, StrCpyNW,
     299              LPWSTR, lpString1,
     300              LPWSTR, lpString2,
     301              int, iMaxLength)
     302{
    318303  return lstrcpynW(lpString1,lpString2,iMaxLength);
    319304}
     
    331316 *****************************************************************************/
    332317
    333 LPWSTR WIN32API StrNCpyW(LPWSTR lpString1,LPWSTR lpString2)
    334 {
    335   dprintf(("SHELL32: undoc StrNCpyW\n"));
    336 
     318ODINFUNCTION2(LPWSTR, StrNCpyW,
     319              LPWSTR, lpString1,
     320              LPWSTR, lpString2)
     321{
    337322  return lstrcpyW(lpString1,lpString2);
    338323}
     
    351336 *****************************************************************************/
    352337
    353 void WIN32API InternalExtractIconListA(VOID)
     338ODINPROCEDURE0(InternalExtractIconListA)
    354339{
    355340  dprintf(("SHELL32: undoc InternalExtractIconListA \n"));
     
    368353 *****************************************************************************/
    369354
    370 void WIN32API InternalExtractIconListW(VOID)
     355ODINPROCEDURE0(InternalExtractIconListW)
    371356{
    372357  dprintf(("SHELL32: undoc InternalExtractIconListW\n"));
     
    385370 *****************************************************************************/
    386371
    387 void WIN32API ExtractIconResInfoA(VOID)
     372ODINPROCEDURE0(ExtractIconResInfoA)
    388373{
    389374  dprintf(("SHELL32: undoc ExtractIconResInfoA\n"));
     
    402387 *****************************************************************************/
    403388
    404 void WIN32API ExtractIconResInfoW(VOID)
     389ODINPROCEDURE0(ExtractIconResInfoW)
    405390{
    406391  dprintf(("SHELL32: undoc ExtractIconResInfoW\n"));
     
    442427 *****************************************************************************/
    443428
    444 void WIN32API CheckEscapesA(DWORD x1,DWORD x2)
     429ODINPROCEDURE2(CheckEscapesA,
     430               DWORD, x1,
     431               DWORD, x2)
    445432{
    446433  dprintf(("SHELL32: undoc CheckEscapesA\n"));
     
    459446 *****************************************************************************/
    460447
    461 void WIN32API CheckEscapesW(DWORD x1,DWORD x2)
     448ODINPROCEDURE2(CheckEscapesW,
     449               DWORD, x1,
     450               DWORD, x2)
    462451{
    463452  dprintf(("SHELL32: undoc CheckEscapesW\n"));
     
    476465 *****************************************************************************/
    477466
    478 DWORD WIN32API DuplicateIcon(DWORD x1)
     467ODINFUNCTION1(DWORD, DuplicateIcon,
     468              DWORD, x1)
    479469{
    480470  dprintf(("SHELL32: undoc DuplicateIcon\n"));
     
    482472  return 0;
    483473}
     474
Note: See TracChangeset for help on using the changeset viewer.