Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

66 lines
1.1 KiB

  1. //
  2. // Dll.cpp
  3. //
  4. // Dll API functions for FldrClnr.dll
  5. //
  6. //
  7. #include <windows.h>
  8. #include <shlwapi.h>
  9. #include <shfusion.h>
  10. extern HINSTANCE g_hinst;
  11. //
  12. // Dll functions
  13. //
  14. STDAPI_(BOOL) DllMain(
  15. HINSTANCE hDll,
  16. DWORD dwReason,
  17. LPVOID lpReserved)
  18. {
  19. switch (dwReason)
  20. {
  21. case ( DLL_PROCESS_ATTACH ) :
  22. {
  23. g_hinst = hDll;
  24. SHFusionInitializeFromModule(hDll);
  25. break;
  26. }
  27. case ( DLL_PROCESS_DETACH ) :
  28. {
  29. SHFusionUninitialize();
  30. break;
  31. }
  32. case ( DLL_THREAD_ATTACH ) :
  33. case ( DLL_THREAD_DETACH ) :
  34. {
  35. break;
  36. }
  37. }
  38. return (TRUE);
  39. }
  40. //
  41. // Create task object here when installing the dll
  42. //
  43. STDAPI DllInstall(BOOL bInstall, LPCWSTR pszCmdLine)
  44. {
  45. //
  46. // Add the task to the Scheduled tasks folder
  47. //
  48. return S_OK;
  49. }
  50. STDAPI DllRegisterServer(void)
  51. {
  52. return S_OK;
  53. }
  54. STDAPI DllUnregisterServer(void)
  55. {
  56. return S_OK;
  57. }