- Timestamp:
- Sep 9, 1999, 12:25:54 PM (26 years ago)
- Location:
- trunk/src/shell32/new
- Files:
-
- 1 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/shell32/new/makefile
r888 r891 1 # $Id: makefile,v 1. 5 1999-09-09 10:12:31phaller Exp $1 # $Id: makefile,v 1.6 1999-09-09 10:25:27 phaller Exp $ 2 2 3 3 # … … 27 27 shellguid.obj shelllink.obj shlmenu.obj shellole.obj \ 28 28 shellord.obj shellpath.obj shv_bg_cmenu.obj \ 29 shlfolder.obj shlview.obj shell.obj 29 shlfolder.obj shlview.obj shell.obj unknown.obj 30 30 31 31 all: $(TARGET).dll $(TARGET).lib … … 70 70 shlview.obj: shlview.cpp 71 71 shv_bg_cmenu.obj: shv_bg_cmenu.cpp 72 72 unknown.obj: unknown.cpp 73 73 74 74 clean: -
trunk/src/shell32/new/shell.cpp
r860 r891 78 78 static int SHELL_Attach = 0; 79 79 80 /***********************************************************************81 * SHELL_DllEntryPoint [SHELL.entry]82 *83 * Initialization code for shell.dll. Automatically loads the84 * 32-bit shell32.dll to allow thunking up to 32-bit code.85 *86 * RETURNS:87 */88 BOOL WINAPI SHELL_DllEntryPoint(DWORD Reason, HINSTANCE16 hInst,89 WORD ds, WORD HeapSize, DWORD res1, WORD res2)90 {91 TRACE_(shell)("(%08lx, %04x, %04x, %04x, %08lx, %04x)\n",92 Reason, hInst, ds, HeapSize, res1, res2);93 94 switch(Reason)95 {96 case DLL_PROCESS_ATTACH:97 SHELL_Attach++;98 if (SHELL_hInstance)99 {100 ERR_(shell)("shell.dll instantiated twice!\n");101 /*102 * We should return FALSE here, but that will break103 * most apps that use CreateProcess because we do104 * not yet support seperate address-spaces.105 */106 return TRUE;107 }108 109 SHELL_hInstance = hInst;110 if(!SHELL_hInstance32)111 {112 if(!(SHELL_hInstance32 = LoadLibraryA("shell32.dll")))113 {114 ERR_(shell)("Could not load sibling shell32.dll\n");115 return FALSE;116 }117 }118 break;119 120 case DLL_PROCESS_DETACH:121 if(!--SHELL_Attach)122 {123 SHELL_hInstance = 0;124 if(SHELL_hInstance32)125 FreeLibrary(SHELL_hInstance32);126 }127 break;128 }129 return TRUE;130 }131 80 132 81 /************************************************************************* … … 244 193 } 245 194 246 /*************************************************************************247 * DragFinish16 [SHELL.12]248 */249 void WINAPI DragFinish16(HDROP16 h)250 { TRACE_(shell)("\n");251 GlobalFree16((HGLOBAL16)h);252 }253 254 195 255 196 /************************************************************************* … … 267 208 268 209 GlobalUnlock(hDrop); 269 return bRet;270 }271 272 /*************************************************************************273 * DragQueryPoint16 [SHELL.13]274 */275 BOOL16 WINAPI DragQueryPoint16(HDROP16 hDrop, POINT16 *p)276 {277 LPDROPFILESTRUCT16 lpDropFileStruct;278 BOOL16 bRet;279 TRACE_(shell)("\n");280 lpDropFileStruct = (LPDROPFILESTRUCT16) GlobalLock16(hDrop);281 282 memcpy(p,&lpDropFileStruct->ptMousePos,sizeof(POINT16));283 bRet = lpDropFileStruct->fInNonClientArea;284 285 GlobalUnlock16(hDrop);286 210 return bRet; 287 211 }
Note:
See TracChangeset
for help on using the changeset viewer.