IPB

Welcome Guest ( Log In | Register )

3 Pages V  < 1 2 3 >  
Reply to this topicStart new topic
> Shutdowngui For Windows/pe, ShutdownGUI-Plugin
solara
post Oct 26 2004, 02:30 AM
Post #21


Gold Member
****

Group: Members
Posts: 712
Joined: 17-October 03
Member No.: 2,088



Taken from the spysweeper plugin:

QUOTE
<MITEM TYPE="ITEM" DISABLED="@Not(@FileExists(@GetProgramDrive()\Programs\ShutdownGUI\ShutdownGUI.cmd))" CMD="RUN" FUNC="@exec(cmd.exe /c @GetProgramDrive()\Programs\ShutdownGUI\ShutdownGUI.cmd @GetEnvVar('ramdrv')\ShutdownGUI,0)">Shutdown Windows</MITEM>


This seems to launch the cmd file without opening a separate window beforehand. Granted the default way of launching the cmd only shows a blackscreen window very briefly...but it's a little of an eyesore. So the above should launch shutdowngui.cmd without any obvious Command window being opened.

Btw, any way to modify peshuteject so that if it's run, it will automatically copy itself to the ramdrive, and then get executed? And would it be possible for your version of shutdowngui.exe to be viewable on top of the PELock screen?

If those two options could be implemented, then the option to Shutdown/Eject would then be accessible from the PELock screen as well (currently the shutdowngui.exe is hidden below the PELock screen. And even if it's visible, selecting Shutdown/Eject would not work since it wasn't launched by the cmd, and there is no copy of itself on the ramdrive.)
Go to the top of the page
 
+Quote Post
user81
post Jan 12 2005, 10:52 AM
Post #22


Newbie
*

Group: Members
Posts: 3
Joined: 26-December 04
Member No.: 9,136



H,i iam new to this forum.

I came to know about PE builder recently and built one successfully after a lot of trial and errors.

@Joshua

I downloaded and used your ShutdownGUI V1.2 and used it. My problem is it is ejecting the wrong drive.
i.e.

I had 2 drives:
LG CD writer connected as Secondary master and
Asus CDROM connected as Secondary slave.

I use my cd-writer to boot the PEcd.
whenever i press the button Shutdown/Eject, it ejects the Asus drive tray instead of my LG cd-writer tray.

IS this a bug or do i need to make any adjustments to any of the files?

my PE builder version: 3.0.32
XPE version: 1.0.2
Go to the top of the page
 
+Quote Post
bpl5000
post Sep 12 2005, 08:38 PM
Post #23


Member
**

Group: Members
Posts: 81
Joined: 9-September 05
Member No.: 13,896



Hi Joshua,

We have a VB program that maps a drive and launches ghost. When ghost finishes and exits, then the program is suppose to reboot the PC. All works well when the CD is in the drive, but we want to remove the CD so that when we return, the PC is at the sign on screen. The person doing the ghosting would remove the CD and leave the room to ghost another PC. It would make his life so much easier if he did not have to reboot the PC when he re-entered the room. Do you know of anyway to restart the computer without the CD being present?

Thanks!
Go to the top of the page
 
+Quote Post
Joshua
post Sep 13 2005, 05:02 AM
Post #24


Platinum Member
*****

Group: Members
Posts: 1,680
Joined: 19-September 03
From: Germany, 32839 Steinheim
Member No.: 1,716



QUOTE (bpl5000 @ Sep 13 2005, 03:38 AM)
We have a VB program that maps a drive and launches ghost.
*


Do you have the Sourcecode from the vb-program?
then it is possible.

Joshua


--------------------
Go to the top of the page
 
+Quote Post
bpl5000
post Sep 13 2005, 08:12 AM
Post #25


Member
**

Group: Members
Posts: 81
Joined: 9-September 05
Member No.: 13,896



Yes, we have the source code... we made the VB program. What do I need to add to make the PC reboot when the CD is removed? I've tried "nu2shell -r" and I tried running the ghost reboot program from a network drive, but it only works if the CD is present. Help! sad.gif

Thanks!
Go to the top of the page
 
+Quote Post
Joshua
post Sep 13 2005, 11:20 AM
Post #26


Platinum Member
*****

Group: Members
Posts: 1,680
Joined: 19-September 03
From: Germany, 32839 Steinheim
Member No.: 1,716



QUOTE (bpl5000 @ Sep 13 2005, 03:12 PM)
Yes, we have the source code...
*

You have to put the routine to shutdown windows in to your vb program.
it was a special API-call that works under pe.
I am not at my private home pc, there fore i can not post it in this moment. wink.gif
if you need the code, send me a pm with your email-adress, and i send it to you
in the evening.

Joshua


--------------------
Go to the top of the page
 
+Quote Post
bpl5000
post Sep 13 2005, 03:15 PM
Post #27


Member
**

Group: Members
Posts: 81
Joined: 9-September 05
Member No.: 13,896



Ok, I sent my email address... hope you got it. Thanks for the help! I really appreciate it!
Go to the top of the page
 
+Quote Post
Joshua
post Sep 13 2005, 05:48 PM
Post #28


Platinum Member
*****

Group: Members
Posts: 1,680
Joined: 19-September 03
From: Germany, 32839 Steinheim
Member No.: 1,716



Here the code for all !
CODE
'**************************************
'Windows API/Global Declarations for :
'Turbo Computer Shutdown - Fastest
'**************************************
'Add the following declerations to a module
'.BAS file
'


Public Declare Function RtlAdjustPrivilege& Lib "ntdll" (ByVal Privilege&, ByVal NewValue&, ByVal NewThread&, OldValue&)


Public Declare Function NtShutdownSystem& Lib "ntdll" (ByVal ShutdownAction&)
   Public Const SE_SHUTDOWN_PRIVILEGE& = 19
   Public Const Shutdown& = 0
   Public Const RESTART& = 1
   Public Const POWEROFF& = 2


CODE
'**************************************
' Name: Turbo Computer Shutdown - Fastest
' Description:This is the fastest shutdown
' around, be carefully once you issue
' this command your computer shutdown
' instantly.
'


Sub TurboShutdown()
   RtlAdjustPrivilege SE_SHUTDOWN_PRIVILEGE, 1, 0, 0
   NtShutdownSystem Shutdown 'shutdown
   'NtShutdownSystem restart 'restart
   'NtShutdownSystem poweroff 'poweroff
End Sub


Joshua


--------------------
Go to the top of the page
 
+Quote Post
bpl5000
post Sep 14 2005, 09:48 AM
Post #29


Member
**

Group: Members
Posts: 81
Joined: 9-September 05
Member No.: 13,896



Joshua,

That code works great! Thanks so much for the help. You're awesome!

Brian
Go to the top of the page
 
+Quote Post
Joshua
post Sep 14 2005, 12:15 PM
Post #30


Platinum Member
*****

Group: Members
Posts: 1,680
Joined: 19-September 03
From: Germany, 32839 Steinheim
Member No.: 1,716



@bpl5000
biggrin.gif

Joshua


--------------------
Go to the top of the page
 
+Quote Post
bpl5000
post Sep 14 2005, 12:41 PM
Post #31


Member
**

Group: Members
Posts: 81
Joined: 9-September 05
Member No.: 13,896



Hi Joshua

Sorry to keep bugging you, but I have another problem I cannot figure out so I need help from an expert. I want to put a CD eject statement in my VB program. I tried using mciSendString, but it doesn't work in the PE environment. Is there an API-call that I can do in the BartPE environment?

Thanks
Go to the top of the page
 
+Quote Post
Joshua
post Sep 15 2005, 05:10 PM
Post #32


Platinum Member
*****

Group: Members
Posts: 1,680
Joined: 19-September 03
From: Germany, 32839 Steinheim
Member No.: 1,716



@bpl5000
i have send you a test program.
is that what you wan't ?

Joshua


--------------------
Go to the top of the page
 
+Quote Post
bpl5000
post Sep 17 2005, 11:07 PM
Post #33


Member
**

Group: Members
Posts: 81
Joined: 9-September 05
Member No.: 13,896



Thanks for the program, but what I would really like is the code that ejects the cd so I can put it into my VB program smile.gif
Go to the top of the page
 
+Quote Post
this-is-me
post Sep 18 2005, 01:22 PM
Post #34


Gold Member
****

Group: Members
Posts: 850
Joined: 25-September 03
Member No.: 1,787



I need the unlock code myself, I can eject the drive if it us unlocked first.
Go to the top of the page
 
+Quote Post
Joshua
post Sep 19 2005, 07:32 AM
Post #35


Platinum Member
*****

Group: Members
Posts: 1,680
Joined: 19-September 03
From: Germany, 32839 Steinheim
Member No.: 1,716



@bpl5000
@this-is-me
i will upload the program with sourcecode (visualbasic) in the evening.

Joshua


--------------------
Go to the top of the page
 
+Quote Post
twindude
post Sep 20 2005, 01:01 PM
Post #36


Gold Member
****

Group: Members
Posts: 523
Joined: 30-July 04
Member No.: 6,869



Joshua can we get "eject cd and reboot" added?

using bs explorer
xp sp2
Go to the top of the page
 
+Quote Post
Joshua
post Sep 20 2005, 01:18 PM
Post #37


Platinum Member
*****

Group: Members
Posts: 1,680
Joined: 19-September 03
From: Germany, 32839 Steinheim
Member No.: 1,716



QUOTE (twindude @ Sep 20 2005, 08:01 PM)
Joshua can we get "eject cd and reboot" added?
*


if i have some spare time ?! biggrin.gif

Joshua


--------------------
Go to the top of the page
 
+Quote Post
Joshua
post Sep 20 2005, 01:20 PM
Post #38


Platinum Member
*****

Group: Members
Posts: 1,680
Joined: 19-September 03
From: Germany, 32839 Steinheim
Member No.: 1,716



QUOTE (this-is-me @ Sep 18 2005, 08:22 PM)
I need the unlock code myself, I can eject the drive if it us unlocked first.
*


here the sample program with source. wink.gif


http://www.drowaelder.de/winpe/eject/CD-Eject.rar

Joshua


--------------------
Go to the top of the page
 
+Quote Post
twindude
post Sep 20 2005, 01:21 PM
Post #39


Gold Member
****

Group: Members
Posts: 523
Joined: 30-July 04
Member No.: 6,869



thanks .......... great job......as well

i just can understand Russian that good ......

Thanks goes out to all Plugins and Tools
Go to the top of the page
 
+Quote Post
Ed_P
post Sep 20 2005, 10:26 PM
Post #40


Platinum Member
*****

Group: Admin
Posts: 4,615
Joined: 12-August 05
From: Western NY, USA
Member No.: 13,258



I agree. THANK YOU Joshua. smile.gif


--------------------

A useful posting: Adding drivers to BartPE; NIC, SATA, video

A helpful thread: BartPE Troubleshooting FAQs

Use the forum's search tool to find postings about problems similar to yours.
For searches involving three letter acronyms such as USB add an * to the end. For example: USB*

The button is your friend and is located just below the one for Quote Reply.



Ed
Go to the top of the page
 
+Quote Post

3 Pages V  < 1 2 3 >
Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 20th November 2009 - 06:11 PM