2 // Explorer Shutdown PlugIn
5 // alex@prodidactica.md
21 // Initialize the plugin
23 static int InitializePlugIn(HWND ExplorerHandle)
25 fprintf(stderr,"EX_SHUTDWN : INITIALIZE PLUGIN call\n");
27 ShwButton = CreateWindow(
28 TEXT("BUTTON"),TEXT("+"),WS_VISIBLE | WS_CHILD | BS_PUSHBUTTON,
29 ex_dx+ex_x1-33, 4, 25, ex_dy-14, ExplorerHandle, NULL,
30 (HINSTANCE) GetWindowLong(ExplorerHandle, GWL_HINSTANCE),NULL);
35 // Get Information about the plugin
37 static char* PlugInInfo(int InfoNmbr)
39 static char Info[256];
41 fprintf(stderr,"EX_SHUTDWN : INFORMATION PLUGIN call\n");
45 case 0: // PlugIn Name
46 strcpy(Info,"ReactOSShutdown");
53 case 2: // Vendor name
54 strcpy(Info,"ReactOS team");
57 default: // Default : Error
66 // Reload plugin's configuration
68 static int ReloadPlugInConfiguration()
70 fprintf(stderr,"EX_SHUTDWN : RELOAD PLUGIN COFIGURATION call\n");
76 static int QuitPlugIn()
78 fprintf(stderr,"EX_SHUTDWN : QUIT PLUGIN call\n");
82 // Callback procedure for plugin
84 static int PlugInMessageProc(HWND PlgnHandle, UINT Msg, WPARAM wParam, LPARAM lParam)
87 // The plugin must decide whatever the handle passed is created by it !
88 // Sorry for bad english :-)
93 if ((HWND)lParam==ShwButton)
95 printf("Pressed ShutDown Button : \n");
96 DestroyWindow(PlgnHandle);
104 static int ExplorerInfo(EXBARINFO* info)
106 fprintf(stderr,"EX_SHUTDWN : EXPLORER INFO PLUGIN call\n");
116 BOOL WINAPI DllMain(HANDLE hDll, DWORD dwReason, LPVOID lpReserved)
118 fprintf(stderr,"EX_SHUTDWN PlugIn loaded succesefully\n");
124 struct PluginCalls plugincalls_Shutdown = {
127 ReloadPlugInConfiguration,