Release 940518
[wine/multimedia.git] / misc / shell.c
blob779c5952e2df386c38c0078555b8268b28d64c25
1 /*
2 * Shell Library Functions
3 */
5 #include <stdlib.h>
6 #include <stdio.h>
7 #include <string.h>
8 #include <unistd.h>
9 #include "windows.h"
11 typedef DWORD HKEY;
12 typedef FAR LONG *LPWORD;
13 DECLARE_HANDLE(HDROP);
15 extern HINSTANCE hSysRes;
17 /*************************************************************************
18 * RegOpenKey [SHELL.1]
20 LONG RegOpenKey(HKEY k, LPCSTR s, HKEY FAR *p)
22 fprintf(stderr, "RegOpenKey : Empty Stub !!!\n");
26 /*************************************************************************
27 * RegCreateKey [SHELL.2]
29 LONG RegCreateKey(HKEY k, LPCSTR s, HKEY FAR *p)
31 fprintf(stderr, "RegCreateKey : Empty Stub !!!\n");
35 /*************************************************************************
36 * RegCloseKey [SHELL.3]
38 LONG RegCloseKey(HKEY k)
40 fprintf(stderr, "RegCloseKey : Empty Stub !!!\n");
44 /*************************************************************************
45 * RegDeleteKey [SHELL.4]
47 LONG RegDeleteKey(HKEY k, LPCSTR s)
49 fprintf(stderr, "RegDeleteKey : Empty Stub !!!\n");
53 /*************************************************************************
54 * RegSetValue [SHELL.5]
56 LONG RegSetValue(HKEY k, LPCSTR s1, DWORD dw, LPCSTR s2, DWORD dw2)
58 fprintf(stderr, "RegSetValue : Empty Stub !!!\n");
62 /*************************************************************************
63 * RegQueryValue [SHELL.6]
65 LONG RegQueryValue(HKEY k, LPCSTR s, LPSTR s2, LONG FAR *p)
67 fprintf(stderr, "RegQueryValue : Empty Stub !!!\n");
71 /*************************************************************************
72 * RegEnumKey [SHELL.7]
74 LONG RegEnumKey(HKEY k, DWORD dw, LPSTR s, DWORD dw2)
76 fprintf(stderr, "RegEnumKey : Empty Stub !!!\n");
79 /*************************************************************************
80 * DragAcceptFiles [SHELL.9]
82 void DragAcceptFiles(HWND hWnd, BOOL b)
84 fprintf(stderr, "DragAcceptFiles : Empty Stub !!!\n");
88 /*************************************************************************
89 * DragQueryFile [SHELL.11]
91 void DragQueryFile(HDROP h, UINT u, LPSTR u2, UINT u3)
93 fprintf(stderr, "DragQueryFile : Empty Stub !!!\n");
98 /*************************************************************************
99 * DragFinish [SHELL.12]
101 void DragFinish(HDROP h)
103 fprintf(stderr, "DragFinish : Empty Stub !!!\n");
108 /*************************************************************************
109 * DragQueryPoint [SHELL.13]
111 BOOL DragQueryPoint(HDROP h, POINT FAR *p)
113 fprintf(stderr, "DragQueryPoinyt : Empty Stub !!!\n");
118 /*************************************************************************
119 * ShellExecute [SHELL.20]
121 HINSTANCE ShellExecute(HWND hwnd, LPCSTR lpOperation, LPCSTR lpFile, LPCSTR lpParameters, LPCSTR lpDirectory, int iShowCmd)
123 fprintf(stderr, "ShellExecute : Empty Stub !!!\n");
127 /*************************************************************************
128 * FindExecutable [SHELL.21]
130 HINSTANCE FindExecutable(LPCSTR lpFile, LPCSTR lpDirectory, LPSTR lpResult)
132 fprintf(stderr, "FindExecutable : Empty Stub !!!\n");
136 char AppName[256], AppMisc[256];
137 INT AboutDlgProc(HWND hWnd, WORD msg, WORD wParam, LONG lParam);
139 /*************************************************************************
140 * ShellAbout [SHELL.22]
142 INT ShellAbout(HWND hWnd, LPCSTR szApp, LPCSTR szOtherStuff, HICON hIcon)
144 fprintf(stderr, "ShellAbout ! (%s, %s)\n", szApp, szOtherStuff);
146 strcpy(AppName, szApp);
147 strcpy(AppMisc, szOtherStuff);
149 return DialogBox(hSysRes, "SHELL_ABOUT_MSGBOX", hWnd, (FARPROC)AboutDlgProc);
153 /*************************************************************************
154 * AboutDlgProc [SHELL.33]
156 INT AboutDlgProc(HWND hWnd, WORD msg, WORD wParam, LONG lParam)
158 char temp[256];
160 switch(msg) {
161 case WM_INITDIALOG:
162 sprintf(temp, "About %s", AppName);
163 SetWindowText(hWnd, temp);
164 SetDlgItemText(hWnd, 100, AppMisc);
165 break;
167 case WM_COMMAND:
168 switch (wParam) {
169 case IDOK:
170 EndDialog(hWnd, TRUE);
171 return TRUE;
174 return FALSE;
177 /*************************************************************************
178 * ExtractIcon [SHELL.34]
180 HICON ExtractIcon(HINSTANCE hInst, LPCSTR lpszExeFileName, UINT nIconIndex)
182 fprintf(stderr, "ExtractIcon : Empty Stub !!!\n");
187 /*************************************************************************
188 * ExtractAssociatedIcon [SHELL.36]
190 HICON ExtractAssociatedIcon(HINSTANCE hInst,LPSTR lpIconPath, LPWORD lpiIcon)
192 fprintf(stderr, "ExtractAssociatedIcon : Empty Stub !!!\n");
195 /*************************************************************************
196 * RegisterShellHook [SHELL.102]
198 int RegisterShellHook(void *ptr)
200 fprintf(stderr, "RegisterShellHook : Empty Stub !!!\n");
204 /*************************************************************************
205 * ShellHookProc [SHELL.103]
207 int ShellHookProc(void)
209 fprintf(stderr, "ShellHookProc : Empty Stub !!!\n");