It may have to do with Window ghosting?
Code below in the dpr turns it off. 

procedure DisableProcessWindowsGhosting;
{ Disables the window ghosting feature for the calling graphical user interface
 (GUI) process. Window ghosting is a Windows Manager feature that lets the user
 minimize, move, or close the main window of an application that is not
 responding. Minimum operating systems  XP SP1
}
type
    TDisableProcessWindowsGhostingProc = procedure; stdcall;
const
    sUser32 = 'User32.dll';
var
    ModH: HMODULE;
    _DisableProcessWindowsGhosting: TDisableProcessWindowsGhostingProc;
begin
    ModH  :=  GetModuleHandle(sUser32);
    if ModH <> 0 then
    begin
        @_DisableProcessWindowsGhosting := nil;
        @_DisableProcessWindowsGhosting := GetProcAddress(ModH, 
'DisableProcessWindowsGhosting');
        if Assigned(_DisableProcessWindowsGhosting) then
            _DisableProcessWindowsGhosting;
    end;
end;


Robert Meek wrote:
> Another curious situation.  I have an application who's shortcut
> I've had the installer place into the current user's Startup Folder if
> they want it to start up with Windows automatically.  This it does just
> fine. Also then when Windows was shut down or restarted, it would do so
> first shutting down this application gracefully as well.  It's an embedded
> database app by the way.
> But in a new version of this same application I am now working on,
> although it does start up properly it will not allow Windows to shut down
> or restart unless it has been shut down first!
> I've looked for anything that might be causing this problem but nothing
> stands out as the culprit.  Does anyone have any ideas as to what might
> prevent Windows from shutting down while this or any application is
> running? 
> 
> from: Robert Meek at: [EMAIL PROTECTED]
> dba "Tangentals Design" home of "PoBoy"
> freeware Windows apps and utilities
> located at: www.TangentalsDesign.com
> Proud to be a moderotor for the
> "Delphi Programming Lists" at: elists.org
> 
> 
> 
> _______________________________________________
> Delphi mailing list -> [email protected]
> http://www.elists.org/mailman/listinfo/delphi
_______________________________________________
Delphi mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi

Reply via email to