Tue May 17 23:03:16 1994 Bob Amstadt (bob@pooh) * [windows/dce.c] Fixed bug with dce initialization that was causing dialog boxes to not be displayed. * [if1632/callback.c] Better fix for bug found by Martin. Sat May 14 19:48:39 1994 Rick Sladkey (jrs@world.std.com) * [ memory/heap.c ] Redirect HEAP_ReAlloc calls with NULL argument to HEAP_Alloc. May 16, 94 martin2@trgcorp.solucorp.qc.ca (Martin Ayotte) * [objects/font.c] Make EnumFonts() calling a callback with dummy fonts ... :-) * [objects/text.c] Add Empty Stub for ExtTextOut(), which temporarely call Textout(). * [if1632/callback.c] Temporarely go around bug in CallWindowProc(), you will see printfs. * [controls/edit.c] Make EDIT controls focused by a mouse click. * [misc/property.c] Bug Fix in function EnumProps(), better use of CallBack16(). * [misc/mmsystem.c] Basic Skelton's for MCI messages dispatching function. Sun May 15 16:15:17 1994 Erik Bos (erik@hacktic.nl) * [windows/utility.c] Added windows_wsprintf() for the emulator, wsprintf() is for libwine. Sat May 14 22:16:40 1994 Rick Sladkey (jrs@world.std.com) * [misc/cursor.c] Fix pointer problems in LoadCursor leading to heap corruption. * [ controls/menu.c ] Fix two NULL dereferencing bugs. Sun May 15 20:07:48 1994 Rick Sladkey (jrs@world.std.com) * [objects/font.c] Fix NULL pointer dereferencing bug in GetCharWidth. * [loader/resource.c] Fix under-allocation of memory in LoadAccelerators. * [windows/class.c] Ignore negative sizes for extra fields in RegisterClass. Sun May 15 06:35:03 1994 David Metcalfe <david@prism.demon.co.uk> * [objects/metafile.c] [include/metafile.h] [include/windows.h] [objects/gdiobj.c] [objects/brush.c] [objects/pen.c] [objects/text.c] [objects/dcvalues.c] [windows/graphics.c] [windows/dc.c] [windows/mapping.c] Beginnings of metafile support. * [misc/file.c] Corrected spelling of _lcreat. * [controls/edit.c] Minor bug fixes.
210 lines
4.9 KiB
C
210 lines
4.9 KiB
C
/*
|
|
* Shell Library Functions
|
|
*/
|
|
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include <unistd.h>
|
|
#include "windows.h"
|
|
|
|
typedef DWORD HKEY;
|
|
typedef FAR LONG *LPWORD;
|
|
DECLARE_HANDLE(HDROP);
|
|
|
|
extern HINSTANCE hSysRes;
|
|
|
|
/*************************************************************************
|
|
* RegOpenKey [SHELL.1]
|
|
*/
|
|
LONG RegOpenKey(HKEY k, LPCSTR s, HKEY FAR *p)
|
|
{
|
|
fprintf(stderr, "RegOpenKey : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* RegCreateKey [SHELL.2]
|
|
*/
|
|
LONG RegCreateKey(HKEY k, LPCSTR s, HKEY FAR *p)
|
|
{
|
|
fprintf(stderr, "RegCreateKey : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* RegCloseKey [SHELL.3]
|
|
*/
|
|
LONG RegCloseKey(HKEY k)
|
|
{
|
|
fprintf(stderr, "RegCloseKey : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* RegDeleteKey [SHELL.4]
|
|
*/
|
|
LONG RegDeleteKey(HKEY k, LPCSTR s)
|
|
{
|
|
fprintf(stderr, "RegDeleteKey : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* RegSetValue [SHELL.5]
|
|
*/
|
|
LONG RegSetValue(HKEY k, LPCSTR s1, DWORD dw, LPCSTR s2, DWORD dw2)
|
|
{
|
|
fprintf(stderr, "RegSetValue : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* RegQueryValue [SHELL.6]
|
|
*/
|
|
LONG RegQueryValue(HKEY k, LPCSTR s, LPSTR s2, LONG FAR *p)
|
|
{
|
|
fprintf(stderr, "RegQueryValue : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* RegEnumKey [SHELL.7]
|
|
*/
|
|
LONG RegEnumKey(HKEY k, DWORD dw, LPSTR s, DWORD dw2)
|
|
{
|
|
fprintf(stderr, "RegEnumKey : Empty Stub !!!\n");
|
|
}
|
|
|
|
/*************************************************************************
|
|
* DragAcceptFiles [SHELL.9]
|
|
*/
|
|
void DragAcceptFiles(HWND hWnd, BOOL b)
|
|
{
|
|
fprintf(stderr, "DragAcceptFiles : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* DragQueryFile [SHELL.11]
|
|
*/
|
|
void DragQueryFile(HDROP h, UINT u, LPSTR u2, UINT u3)
|
|
{
|
|
fprintf(stderr, "DragQueryFile : Empty Stub !!!\n");
|
|
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* DragFinish [SHELL.12]
|
|
*/
|
|
void DragFinish(HDROP h)
|
|
{
|
|
fprintf(stderr, "DragFinish : Empty Stub !!!\n");
|
|
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* DragQueryPoint [SHELL.13]
|
|
*/
|
|
BOOL DragQueryPoint(HDROP h, POINT FAR *p)
|
|
{
|
|
fprintf(stderr, "DragQueryPoinyt : Empty Stub !!!\n");
|
|
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* ShellExecute [SHELL.20]
|
|
*/
|
|
HINSTANCE ShellExecute(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, int iShowCmd)
|
|
{
|
|
fprintf(stderr, "ShellExecute : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* FindExecutable [SHELL.21]
|
|
*/
|
|
HINSTANCE FindExecutable(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult)
|
|
{
|
|
fprintf(stderr, "FindExecutable : Empty Stub !!!\n");
|
|
|
|
}
|
|
|
|
char AppName[256], AppMisc[256];
|
|
INT AboutDlgProc(HWND hWnd, WORD msg, WORD wParam, LONG lParam);
|
|
|
|
/*************************************************************************
|
|
* ShellAbout [SHELL.22]
|
|
*/
|
|
INT ShellAbout(HWND hWnd, LPCSTR szApp, LPCSTR szOtherStuff, HICON hIcon)
|
|
{
|
|
fprintf(stderr, "ShellAbout ! (%s, %s)\n", szApp, szOtherStuff);
|
|
|
|
strcpy(AppName, szApp);
|
|
strcpy(AppMisc, szOtherStuff);
|
|
|
|
return DialogBox(hSysRes, "SHELL_ABOUT_MSGBOX", hWnd, (FARPROC)AboutDlgProc);
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* AboutDlgProc [SHELL.33]
|
|
*/
|
|
INT AboutDlgProc(HWND hWnd, WORD msg, WORD wParam, LONG lParam)
|
|
{
|
|
char temp[256];
|
|
|
|
switch(msg) {
|
|
case WM_INITDIALOG:
|
|
sprintf(temp, "About %s", AppName);
|
|
SetWindowText(hWnd, temp);
|
|
SetDlgItemText(hWnd, 100, AppMisc);
|
|
break;
|
|
|
|
case WM_COMMAND:
|
|
switch (wParam) {
|
|
case IDOK:
|
|
EndDialog(hWnd, TRUE);
|
|
return TRUE;
|
|
}
|
|
}
|
|
return FALSE;
|
|
}
|
|
|
|
/*************************************************************************
|
|
* ExtractIcon [SHELL.34]
|
|
*/
|
|
HICON ExtractIcon(HINSTANCE hInst, LPCSTR lpszExeFileName, UINT nIconIndex)
|
|
{
|
|
fprintf(stderr, "ExtractIcon : Empty Stub !!!\n");
|
|
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* ExtractAssociatedIcon [SHELL.36]
|
|
*/
|
|
HICON ExtractAssociatedIcon(HINSTANCE hInst,LPSTR lpIconPath, LPWORD lpiIcon)
|
|
{
|
|
fprintf(stderr, "ExtractAssociatedIcon : Empty Stub !!!\n");
|
|
}
|
|
|
|
/*************************************************************************
|
|
* RegisterShellHook [SHELL.102]
|
|
*/
|
|
int RegisterShellHook(void *ptr)
|
|
{
|
|
fprintf(stderr, "RegisterShellHook : Empty Stub !!!\n");
|
|
}
|
|
|
|
|
|
/*************************************************************************
|
|
* ShellHookProc [SHELL.103]
|
|
*/
|
|
int ShellHookProc(void)
|
|
{
|
|
fprintf(stderr, "ShellHookProc : Empty Stub !!!\n");
|
|
}
|