ParsX.com
پذیرش پروژه از دانشجویی ... تا سازمانی 09376225339
 
   ProfileProfile   Log in to check your private messagesLog in to check your private messages  |  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups Log inLog in   RegisterRegister 

ریست کردن کامپیوتر با وی بی

 
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET
View previous topic :: View next topic  
Author Message
pme
دوست آشناي سايت


Joined: 30 Nov 2006
Posts: 57
Location: ahwaziha.com & pme.ir & jokabad.com & ospeyman.com

PostPosted: Thu Nov 30, 2006 12:36 pm    Post subject: ریست کردن کامپیوتر با وی بی Reply with quote

چطوری میشه کامپیوتر رو با وی بی ریست کنیم؟
کسی میدونه؟
Back to top
vahid
بي تو هرگز


Joined: 26 Nov 2004
Posts: 3067
Location: Tehran

PostPosted: Fri Dec 01, 2006 8:13 am    Post subject: Reply with quote


Private Declare Function ExitWindowsEx& Lib "user32" (ByVal uFlags As Long, ByVal dwReserved As Long)
Private Const EWX_LOGOFF = 0
Private Const EWX_SHUTDOWN = 1
Private Const EWX_REBOOT = 2
Private Const EWX_FORCE = 4

Private Sub Command1_Click()
ExitWindowsEx EWX_SHUTDOWN, 0
End Sub

Private Sub Command2_Click()
ExitWindowsEx EWX_REBOOT, 0
End Sub

Private Sub Command3_Click()
ExitWindowsEx EWX_FORCE, 0
End Sub

Private Sub Command4_Click()
ExitWindowsEx EWX_LOGOFF, 0
End Sub
Back to top
pme
دوست آشناي سايت


Joined: 30 Nov 2006
Posts: 57
Location: ahwaziha.com & pme.ir & jokabad.com & ospeyman.com

PostPosted: Sat Dec 02, 2006 10:43 am    Post subject: جواب نداد Reply with quote

این کد بالایی نه Shut Down میکنه نه ریست .
فقط لاگ آفش کار میده
Back to top
arash
مدير بخش سي
مدير بخش سي


Joined: 27 Nov 2004
Posts: 1232
Location: www.parsx.com

PostPosted: Sun Dec 03, 2006 8:01 am    Post subject: Reply with quote

تو 98 کار می کنه تو xp یه چیز دیگس
Back to top
pme
دوست آشناي سايت


Joined: 30 Nov 2006
Posts: 57
Location: ahwaziha.com & pme.ir & jokabad.com & ospeyman.com

PostPosted: Sun Dec 03, 2006 10:35 am    Post subject: xp Reply with quote

خوب من کدی میخام که تو xp جواب بده
Back to top
Display posts from previous:   
Post new topic   Reply to topic    ParsX.com Forum Index -> ويژوال بيسيك .NET All times are GMT + 3.5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum