Topic: Easy_DISM  (Read 9978 times)

0 Members and 1 Guest are viewing this topic.

Re: Easy_DISM
« Reply #20 on: January 01, 2018, 02:08:55 PM »

NIKZZZZ

  • Code Baker
  • Jr. Chef
  • **
  • Date Registered: Feb 2011
  • Posts: 78
Hi, trashy.
Thank you for the useful program.
But your program does not work correctly for localization is not English.
You display the text in a window in the OEM encoding, it is not correctly displayed, you need the ANSI encoding.
I can offer you my solution, use instead of the function StdoutRead() function _StdoutReadAnsi()
Code: [Select]
Func _Encoding_OEM2ANSI($strText)
Local $sbuffer = DllStructCreate("char[" & StringLen($strText) + 1 & "]")
Local $aret = DllCall("User32.dll", "int", "OemToChar", "str", $strText, "ptr", DllStructGetPtr($sbuffer))
If Not IsArray($aret) Then Return SetError(1, 0, '')
If $aret[0] = 0 Then Return SetError(2, $aret[0], '')
Return DllStructGetData($sbuffer, 1)
EndFunc   ;==>_Encoding_OEM2ANSI

Func _StdoutReadAnsi($hProcess, $fPeek = False, $fBinary = False)
Local $sstr = StdoutRead($hProcess, $fPeek, $fBinary)
Return SetError(@error,@extended, _Encoding_OEM2ANSI($sstr))
EndFunc   ;==>_StdoutReadAnsi
Regards, Nikzzzz.


« Last Edit: January 01, 2018, 02:54:51 PM by NIKZZZZ »

Re: Easy_DISM
« Reply #21 on: February 08, 2018, 01:18:09 PM »

vigipirate

  • Apprentice
  • *
  • Date Registered: Aug 2014
  • Posts: 5
Hello sir
thanks for your work but i have a problem with easydism v2.5.6 clean because it can not find the dism.exe of my portable version even if i but scriptdir.exe programdata.exe could you give me your email address to send you video because it does not find dism only in winPE system32 \ dism.exe thanks for your help
.

 

Powered by EzPortal