Ignore:
Timestamp:
Jun 24, 1999, 12:28:52 AM (26 years ago)
Author:
phaller
Message:

Add: ShellExecuteW, RealShellExecuteA, RealShellExecuteW, RealShellExecuteExA, RealShellExecuteExW

File:
1 edited

Legend:

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

    r168 r170  
    1 /* $Id: shell32.cpp,v 1.6 1999-06-23 22:17:52 phaller Exp $ */
     1/* $Id: shell32.cpp,v 1.7 1999-06-23 22:28:52 phaller Exp $ */
    22
    33/*
     
    5454
    5555
    56 //******************************************************************************
    57 //******************************************************************************
     56/*****************************************************************************
     57 * Name      : HINSTANCE ShellExecuteA
     58 * Purpose   : Start a program
     59 * Parameters: HWND    hwnd
     60 *             LPCTSTR lpOperation
     61 *             LPCTSTR lpFile
     62 *             LPCTSTR lpParameters
     63 *             LPCTSTR lpDirectory
     64 *             INT     nShowCmd
     65 * Variables :
     66 * Result    :
     67 * Remark    :
     68 * Status    : UNTESTED
     69 *
     70 * Author    : Patrick Haller [Tue, 1999/06/01 09:00]
     71 *****************************************************************************/
     72
    5873HINSTANCE WIN32API ShellExecuteA(HWND    hwnd,
    5974                                 LPCTSTR lpOperation,
     
    7388  return(0); //out of memory
    7489}
    75 //******************************************************************************
    76 //TODO: Make nice dialog window
    77 //******************************************************************************
     90
     91
     92/*****************************************************************************
     93 * Name      : HINSTANCE ShellExecuteW
     94 * Purpose   : Start a program
     95 * Parameters: HWND    hwnd
     96 *             LPCWSTR lpOperation
     97 *             LPCWSTR lpFile
     98 *             LPCWSTR lpParameters
     99 *             LPCWSTR lpDirectory
     100 *             INT     nShowCmd
     101 * Variables :
     102 * Result    :
     103 * Remark    :
     104 * Status    : UNTESTED
     105 *
     106 * Author    : Patrick Haller [Tue, 1999/06/01 09:00]
     107 *****************************************************************************/
     108
     109HINSTANCE WIN32API ShellExecuteW(HWND    hwnd,
     110                                 LPCWSTR lpOperation,
     111                                 LPCWSTR lpFile,
     112                                 LPCWSTR lpParameters,
     113                                 LPCWSTR lpDirectory,
     114                                 INT     nShowCmd)
     115{
     116  HINSTANCE hInstance;
     117  LPSTR     lpOperationA  = UnicodeToAsciiString((LPWSTR)lpOperation);
     118  LPSTR     lpFileA       = UnicodeToAsciiString((LPWSTR)lpFile);
     119  LPSTR     lpParametersA = UnicodeToAsciiString((LPWSTR)lpParameters);
     120  LPSTR     lpDirectoryA  = UnicodeToAsciiString((LPWSTR)lpDirectory);
     121
     122  dprintf (("SHELL32: ShellExecuteW(%08xh,%s,%s,%s,%s,%08xh).\n",
     123            hwnd,
     124            lpOperationA,
     125            lpFileA,
     126            lpParametersA,
     127            lpDirectoryA,
     128            nShowCmd));
     129
     130  hInstance = ShellExecuteA(hwnd,
     131                            lpOperationA,
     132                            lpFileA,
     133                            lpParametersA,
     134                            lpDirectoryA,
     135                            nShowCmd);
     136
     137  FreeAsciiString(lpOperationA);
     138  FreeAsciiString(lpFileA);
     139  FreeAsciiString(lpParametersA);
     140  FreeAsciiString(lpDirectoryA);
     141
     142  return hInstance;
     143}
     144
     145
     146
     147/*****************************************************************************
     148 * Name      : DWORD ShellAboutA
     149 * Purpose   : display a simple about box
     150 * Parameters: HWND   hwnd
     151 *             LPSTR  szApplication
     152 *             LPSTR  szMoreInformation
     153 *             HICON  hIcon
     154 * Variables :
     155 * Result    :
     156 * Remark    :
     157 * Status    : UNTESTED
     158 *
     159 * Author    : Patrick Haller [Tue, 1999/06/01 09:00]
     160 *****************************************************************************/
     161
    78162int WIN32API ShellAboutA(HWND    hwnd,
    79163                         LPCTSTR szApp,
Note: See TracChangeset for help on using the changeset viewer.