Ignore:
Timestamp:
Jun 24, 1999, 9:27:49 PM (26 years ago)
Author:
phaller
Message:

Add: even more SHELL32 APIs ... and some corrections

File:
1 edited

Legend:

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

    r170 r183  
    1 /* $Id: shell32.cpp,v 1.7 1999-06-23 22:28:52 phaller Exp $ */
     1/* $Id: shell32.cpp,v 1.8 1999-06-24 19:27:49 phaller Exp $ */
    22
    33/*
     
    2121 *****************************************************************************/
    2222
     23#include <odin.h>
    2324#include <os2win.h>
    2425#include <shellapi.h>
     
    6566 * Variables :
    6667 * Result    :
    67  * Remark    :
     68 * Remark    : SHELL32.289
    6869 * Status    : UNTESTED
    6970 *
     
    101102 * Variables :
    102103 * Result    :
    103  * Remark    :
     104 * Remark    : SHELL32.293
    104105 * Status    : UNTESTED
    105106 *
     
    154155 * Variables :
    155156 * Result    :
    156  * Remark    :
     157 * Remark    : SHELL32.287
    157158 * Status    : UNTESTED
    158159 *
     
    193194 * Variables :
    194195 * Result    :
    195  * Remark    :
     196 * Remark    : SHELL32.288
    196197 * Status    : UNTESTED
    197198 *
     
    239240
    240241
    241 /*************************************************************************
    242  *              Shell_NotifyIcon    [SHELL32.240]
    243  *  FIXME
    244  *  This function is supposed to deal with the systray.
    245  *  Any ideas on how this is to be implimented?
    246  */
    247 BOOL WIN32API Shell_NotifyIconA(DWORD dwMessage,
    248                            PNOTIFYICONDATAA pnid )
     242/*****************************************************************************
     243 * Name      : BOOL Shell_NotifyIconA
     244 * Purpose   :
     245 * Parameters:
     246 * Variables :
     247 * Result    :
     248 * Remark    : SHELL32.296 .297
     249 * Status    : UNTESTED STUB
     250 *
     251 * Author    : Patrick Haller [Tue, 1998/06/15 03:00]
     252 *****************************************************************************/
     253
     254BOOL WIN32API Shell_NotifyIconA(DWORD            dwMessage,
     255                                PNOTIFYICONDATAA pnid)
    249256{
    250257  dprintf(("SHELL32: Shell_NotifyIconA(%08xh,%08xh) not implemented.\n",
     
    256263
    257264
    258 /*************************************************************************
    259  *              Shell_NotifyIcon    [SHELL32.240]
    260  *  FIXME
    261  *  This function is supposed to deal with the systray.
    262  *  Any ideas on how this is to be implimented?
    263  */
     265/*****************************************************************************
     266 * Name      : BOOL Shell_NotifyIconW
     267 * Purpose   :
     268 * Parameters:
     269 * Variables :
     270 * Result    :
     271 * Remark    : SHELL32.298
     272 * Status    : UNTESTED STUB
     273 *
     274 * Author    : Patrick Haller [Tue, 1998/06/15 03:00]
     275 *****************************************************************************/
     276
    264277BOOL WIN32API Shell_NotifyIconW(DWORD dwMessage,
    265278                                         PNOTIFYICONDATAW pnid )
     
    301314 * Variables :
    302315 * Result    :
    303  * Remark    :
     316 * Remark    : SHELL32.290 .291
    304317 * Status    : UNTESTED STUB
    305318 *
     
    322335 * Variables :
    323336 * Result    :
    324  * Remark    :
     337 * Remark    : SHELL32.292
    325338 * Status    : UNTESTED STUB
    326339 *
     
    354367 *****************************************************************************/
    355368
    356 DWORD WIN32API ShellMessageBoxW(HMODULE hmod,
    357                                 HWND    hwnd,
    358                                 DWORD   idText,
    359                                 DWORD   idTitle,
    360                                 DWORD   uType,
    361                                 LPCVOID arglist)
     369DWORD CDECL ShellMessageBoxW(HMODULE hmod,
     370                                      HWND    hwnd,
     371                                      DWORD   idText,
     372                                      DWORD   idTitle,
     373                                      DWORD   uType,
     374                                      LPCVOID arglist)
    362375{
    363376  WCHAR   szText[100],
    364          szTitle[100],
    365          szTemp[256];
     377          szTitle[100],
     378          szTemp[256];
    366379  LPWSTR pszText = &szText[0],
    367380         pszTitle = &szTitle[0];
     
    385398
    386399  if (! HIWORD (idText))
    387     LoadStringW(hmod,idText,pszText,100);
     400    LoadStringW(hmod,
     401                idText,
     402                pszText,
     403                100);
    388404  else
    389405    pszText = (LPWSTR)idText;
     
    421437 *****************************************************************************/
    422438
    423 DWORD WIN32API ShellMessageBoxA(HMODULE hmod,
    424                                 HWND    hwnd,
    425                                 DWORD   idText,
    426                                 DWORD   idTitle,
    427                                 DWORD   uType,
    428                                 LPCVOID arglist)
     439DWORD CDECL ShellMessageBoxA(HMODULE hmod,
     440                                      HWND    hwnd,
     441                                      DWORD   idText,
     442                                      DWORD   idTitle,
     443                                      DWORD   uType,
     444                                      LPCVOID arglist)
    429445{
    430446  char   szText[100],
     
    444460
    445461  if (!HIWORD (idTitle))
    446     LoadStringA(hmod,idTitle,pszTitle,100);
     462    LoadStringA(hmod,
     463                idTitle,
     464                pszTitle,
     465                100);
    447466  else
    448467    pszTitle = (LPSTR)idTitle;
    449468
    450469  if (! HIWORD (idText))
    451     LoadStringA(hmod,idText,pszText,100);
     470    LoadStringA(hmod,
     471                idText,
     472                pszText,
     473                100);
    452474  else
    453475    pszText = (LPSTR)idText;
     
    466488                     uType);
    467489}
    468 
    469 
Note: See TracChangeset for help on using the changeset viewer.