-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
BitmapReader.ps1
1758 lines (1646 loc) · 162 KB
/
BitmapReader.ps1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<#
.NOTES
--------------------------------------------------------------------------------
Code generated by: SAPIEN Technologies, Inc., PowerShell Studio 2021 v5.8.194
Generated by: Costas Katsavounidis
--------------------------------------------------------------------------------
.DESCRIPTION
GUI script generated by PowerShell Studio 2021
#>
function Show-BitmapReader_psf {
#----------------------------------------------
#region Import the Assemblies
#----------------------------------------------
[void][reflection.assembly]::Load('System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a')
[void][reflection.assembly]::Load('System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089')
#endregion Import Assemblies
#----------------------------------------------
#region Generated Form Objects
#----------------------------------------------
[System.Windows.Forms.Application]::EnableVisualStyles()
$MFTBitmapReader = New-Object 'System.Windows.Forms.Form'
$checkboxAllocated = New-Object 'System.Windows.Forms.CheckBox'
$statusbar1 = New-Object 'System.Windows.Forms.StatusBar'
$labelFilename = New-Object 'System.Windows.Forms.Label'
$label1 = New-Object 'System.Windows.Forms.Label'
$labelTotal = New-Object 'System.Windows.Forms.Label'
$OpenBitmap = New-Object 'System.Windows.Forms.Button'
$RunButtonButton = New-Object 'System.Windows.Forms.Button'
$InputBox = New-Object 'System.Windows.Forms.TextBox'
$richtextboxOutput = New-Object 'System.Windows.Forms.RichTextBox'
$buttonFind = New-Object 'System.Windows.Forms.Button'
$textboxFind = New-Object 'System.Windows.Forms.TextBox'
$buttonExit = New-Object 'System.Windows.Forms.Button'
$imagelistButtonBusyAnimation = New-Object 'System.Windows.Forms.ImageList'
$timerProcessTracker = New-Object 'System.Windows.Forms.Timer'
$openfiledialog1 = New-Object 'System.Windows.Forms.OpenFileDialog'
$savefiledialog1 = New-Object 'System.Windows.Forms.SaveFileDialog'
$tooltip1 = New-Object 'System.Windows.Forms.ToolTip'
$contextmenustrip1 = New-Object 'System.Windows.Forms.ContextMenuStrip'
$CopySelection = New-Object 'System.Windows.Forms.ToolStripMenuItem'
$CopyAll = New-Object 'System.Windows.Forms.ToolStripMenuItem'
$toolstripseparator1 = New-Object 'System.Windows.Forms.ToolStripSeparator'
$SelectAll = New-Object 'System.Windows.Forms.ToolStripMenuItem'
$toolstripseparator2 = New-Object 'System.Windows.Forms.ToolStripSeparator'
$PrintAll = New-Object 'System.Windows.Forms.ToolStripMenuItem'
$savefiledialog2 = New-Object 'System.Windows.Forms.SaveFileDialog'
$toolstripseparator3 = New-Object 'System.Windows.Forms.ToolStripSeparator'
$SaveResults = New-Object 'System.Windows.Forms.ToolStripMenuItem'
$InitialFormWindowState = New-Object 'System.Windows.Forms.FormWindowState'
#endregion Generated Form Objects
#----------------------------------------------
# User Generated Script
#----------------------------------------------
#region FindFunction
function FindText
{
if($textboxFind.Text.Length -eq 0)
{
return
}
$index = $richtextboxOutput.Find($textboxFind.Text,$richtextboxOutput.SelectionStart+ $richtextboxOutput.SelectedText.Length,[System.Windows.Forms.RichTextBoxFinds]::None)
if($index -ge 0)
{
$richtextboxOutput.Select($index,$textboxFind.Text.Length)
$richtextboxOutput.ScrollToCaret()
#$richtextbox1.Focus()
}
else
{
$index = $richtextboxOutput.Find($textboxFind.Text,0,$richtextboxOutput.SelectionStart,[System.Windows.Forms.RichTextBoxFinds]::None)
#
if($index -ge 0)
{
$richtextboxOutput.Select($index,$textboxFind.Text.Length)
$richtextboxOutput.ScrollToCaret()
#$richtextbox1.Focus()
}
else
{
$richtextboxOutput.SelectionStart = 0
}
}
}
#endregion
$buttonExit_Click = {
if ($buttonExit.Text -eq "Cancel")
{
$script:stop = $true
Stop-Job -Name GetBitmap
Remove-Job -Name GetBitmap
[System.GC]::Collect()
$buttonExit.Text = "Exit"
$buttonExit.ForeColor = 'Black'
$statusbar1.Text = $null
$richtextboxOutput.text = $null
$script:stopprocess = $true
}
else
{
try
{
Get-job | Stop-Job
Get-job | Remove-Job
}
catch { }
[System.GC]::Collect()
$MFTBitmapReader.Close()
}
}
$buttonCopy_Click={
#The following requires STA mode
# if($textbox1.Text.Length -gt 0)
# {
# [System.Windows.Forms.Clipboard]::SetText($textbox1.Text)
# }
#Alternative - Does not require STA
$richtextboxOutput.SelectAll() #Select all the text
$richtextboxOutput.Copy() #Copy selected text to clipboard
$richtextboxOutput.Select(0,0); #Unselect all the text
}
$textboxFind_TextChanged={
$buttonFind.Enabled = $textboxFind.Text.Length -gt 0
}
$buttonFind_Click={
FindText
}
$processTracker_FormClosed=[System.Windows.Forms.FormClosedEventHandler]{
#Event Argument: $_ = [System.Windows.Forms.FormClosedEventArgs]
#Stop any pending processes
#Stop-ProcessTracker
}
$buttonRunProcess_Click= {
$buttonRunProcess.Enabled = $false
#Clear the output
$richtextboxOutput.Clear()
# - Custom code to check running host: (For the sample FilePath.)
$var1 = $PSVersionTable;
Write-Host "`r`n$($env:userdomain)\$($env:username)`r`nMy PSversion is: $($var1.PSVersion)";
if ($var1.PSVersion.Major -ne '7')
{
# Windows PowerShell
$psEnv = 'PowerShell.exe'
}
else
{
# PowerShell 7 (Or > 7)
$psEnv = 'pwsh.exe'
}
$paramAddProcessTracker = @{
FilePath = $psEnv
Arguments = '-NoLogo -NoProfile -Command "Get-ChildItem -file"'
SyncObject = $buttonRunProcess
RedirectOutputScript = {
$process.StartInfo.RedirectStandardOutput = $true
$process.add_OutputDataReceived($_.Data)
}
RedirectErrorScript = {
$process.StartInfo.RedirectStandardError = $true
$process.add_ErrorDataReceived($_.Data)
}
CompletedScript = {
$buttonRunProcess.Enabled = $true
$buttonRunProcess.ImageIndex = -1
}
UpdateScript = {
#Animate the Button
if ($null -ne $buttonRunProcess.ImageList)
{
if ($buttonRunProcess.ImageIndex -lt $buttonRunProcess.ImageList.Images.Count - 1)
{
$buttonRunProcess.ImageIndex += 1
}
else
{
$buttonRunProcess.ImageIndex = 0
}
}
}
}
Add-ProcessTracker @paramAddProcessTracker
}
$timerProcessTracker_Tick={
Update-ProcessTracker
}
#region Process Tracker
function Stop-ProcessTracker
{
<#
.SYNOPSIS
Stops and removes all processes from the list.
#>
#Stop the timer
$timerProcessTracker.Stop()
#Remove all the processes
while($ProcessTrackerList.Count -gt 0)
{
$process = $ProcessTrackerList[0].Process
$ProcessTrackerList.RemoveAt(0)
if(-not $process.HasExited)
{
Stop-Process -InputObject $process
}
}
}
function Update-ProcessTracker
{
<#
.SYNOPSIS
Checks the status of each job on the list.
#>
#Poll the jobs for status updates
$timerProcessTracker.Stop() #Freeze the Timer
for($index =0; $index -lt $ProcessTrackerList.Count; $index++)
{
$psObject = $ProcessTrackerList[$index]
if($null -ne $psObject)
{
if($null -ne $psObject.Process)
{
if($psObject.Process.HasExited)
{
#Call the Complete Script Block
if($null -ne $psObject.CompleteScript)
{
#$results = Receive-Job -Job $psObject.Job
Invoke-Command -ScriptBlock $psObject.CompleteScript -ArgumentList $psObject.Process
}
$ProcessTrackerList.RemoveAt($index)
$index-- #Step back so we don't skip a job
}
elseif($null -ne $psObject.UpdateScript)
{
#Call the Update Script Block
Invoke-Command -ScriptBlock $psObject.UpdateScript -ArgumentList $psObject.Process
}
}
}
else
{
$ProcessTrackerList.RemoveAt($index)
$index-- #Step back so we don't skip a job
}
}
if($ProcessTrackerList.Count -gt 0)
{
$timerProcessTracker.Start()#Resume the timer
}
}
$ProcessTrackerList = New-Object System.Collections.ArrayList
function Add-ProcessTracker
{
<#
.SYNOPSIS
Add a new process to the ProcessTracker and starts the timer.
.DESCRIPTION
Add a new process to the ProcessTracker and starts the timer.
.PARAMETER FilePath
The path to executable.
.PARAMETER ArgumentList
The arguments to pass to the process.
.PARAMETER CompletedScript
The script block that will be called when the process is complete.
The process is passed as an argument. The process argument is null when the job fails.
.PARAMETER UpdateScript
The script block that will be called each time the timer ticks.
The process is passed as an argument.
.PARAMETER RedirectOutputScript
The script block that handles output from the process.
Use $_.Data to access the output text.
.PARAMETER RedirectErrorScript
The script block that handles error output from the process.
Use $_.Data to access the output text.
.PARAMETER NoNewWindow
Start the new process in the current console window.
.PARAMETER WindowStyle
Specifies the state of the window that is used for the new process.
Valid values are Normal, Hidden, Minimized, and Maximized.
The default value is Normal.
.PARAMETER WorkingDirectory
Specifies the location of the executable file or document that runs in the process.
The default is the current directory.
.PARAMETER RedirectInput
Redirects the input of the process. If this switch is set, the function will return the process object.
Use the process object's StandardInput property to access the input stream.
.PARAMETER PassThru
Returns the process that was started.
.PARAMETER SyncObject
The object used to marshal the process event handler calls that are issued.
You must pass a control to sync otherwise it will produce an error when redirecting output.
.EXAMPLE
Add-ProcessTracker -FilePath 'notepad.exe' `
-SyncObject $form1 `
-CompletedScript {
Param([System.Diagnostics.Process]$Process)
$button.Enable = $true
}`
-UpdateScript {
Param([System.Diagnostics.Process]$Process)
Function-Animate $button
}`
-RedirectOutputScript {
# Use $_.Data to access the output text
$textBox1.AppendText($_.Data)
$textBox1.AppendText("`r`n")
}
.EXAMPLE
$process = Add-ProcessTracker -FilePath 'powershell.exe' `
-RedirectInput `
-SyncObject $buttonRunProcess `
-RedirectOutputScript {
# Use $_.Data to access the output text
$richtextbox1.AppendText($_.Data)
$richtextbox1.AppendText("`r`n")
}
#Write to the console
$process.StandardInput.WriteLine("Get-Process")
.OUTPUTS
System.Diagnostics.Process
#>
[OutputType([System.Diagnostics.Process])]
Param (
[ValidateNotNull()]
[Parameter(Mandatory = $true)]
[string]$FilePath,
[string]$Arguments,
[string]$WorkingDirectory,
[Parameter(Mandatory = $true)]
[ValidateNotNull()]
[System.ComponentModel.ISynchronizeInvoke]$SyncObject,
[ScriptBlock]$CompletedScript,
[ScriptBlock]$UpdateScript,
[ScriptBlock]$RedirectOutputScript,
[ScriptBlock]$RedirectErrorScript,
[System.Diagnostics.ProcessWindowStyle]$WindowStyle = 'Normal',
[switch]$RedirectInput,
[switch]$NoNewWindow,
[switch]$PassThru
)
#Start the Process
try
{
$process = New-Object System.Diagnostics.Process
$process.StartInfo.FileName = $FilePath
$process.StartInfo.WindowStyle = $WindowStyle
if ($NoNewWindow)
{
$process.StartInfo.CreateNoWindow = $true
}
if ($WorkingDirectory)
{
$process.StartInfo.WorkingDirectory = $WorkingDirectory
}
#Handle Redirection
if ($RedirectErrorScript)
{
$process.EnableRaisingEvents = $true
$process.StartInfo.UseShellExecute = $false
$process.StartInfo.RedirectStandardError = $true
$process.StartInfo.CreateNoWindow = $true
}
if ($RedirectOutputScript)
{
$process.StartInfo.UseShellExecute = $false
$process.StartInfo.RedirectStandardOutput = $true
}
if($RedirectInput)
{
$process.EnableRaisingEvents = $true
$process.StartInfo.UseShellExecute = $false
$process.StartInfo.CreateNoWindow = $true
$process.StartInfo.RedirectStandardInput = $true
$PassThru = $true #Force the object to return
}
#Pass the arguments and sync with the form
$process.StartInfo.Arguments = $Arguments
$process.SynchronizingObject = $SyncObject
$process.Start() | Out-Null
## - Handles output results with or without errors.
$processOutput = $process.StandardOutput.ReadToEnd()
if (![String]::IsNullOrEmpty($processOutput))
{
$richtextboxOutput.AppendText($processOutput)
}
else
{
$colorOld = $richtextboxOutput.SelectionColor;
$richtextboxOutput.SelectionColor = [System.Drawing.Color]::Red;
$ErrOutput = $process.StandardError.ReadToEnd()
$richtextboxOutput.AppendText("`r`n Error:`r`n$($ErrOutput)")
$richtextboxOutput.SelectionColor = $colorOld
}
}
catch
{
Write-Error $_.Exception.Message
$process = $null
}
if ($null -ne $process)
{
#Create a Custom Object to keep track of the Job & Script Blocks
$members = @{
"Process" = $process;
"CompleteScript" = $CompletedScript;
"UpdateScript" = $UpdateScript
}
$psObject = New-Object System.Management.Automation.PSObject -Property $members
[void]$ProcessTrackerList.Add($psObject)
#Start the Timer
if (-not $timerProcessTracker.Enabled)
{
$timerProcessTracker.Start()
}
#Return the process if using PassThru
if ($PassThru)
{
return $process
}
}
elseif ($null -ne $CompletedScript)
{
#Failed
Invoke-Command -ScriptBlock $CompletedScript -ArgumentList $null
}
}
#endregion
$OpenBitmap_Click={
if ($openfiledialog1.ShowDialog() -eq 'OK')
{
# Read each Bitmap file
$labelFilename.Text = $null
$InputBox.text = $null
$file = $openfiledialog1.FileName
$labelFilename.Text = $file
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
if ($speak.GetInstalledVoices().voiceinfo.culture.name -match "en-" -and $speak.GetInstalledVoices().voiceinfo.gender -contains ('Male' -and 'Female'))
{
$speak.Rate = 0
}
# determine the size of the file
$file_size = [io.FileInfo]::new("$file").Length
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
if ($file_size -gt 10485760)
{
if ($speak.state -eq 'Ready')
{
$speak.SelectVoiceByHints('Male')
$speak.Speak('The selected Bitmap is too large ...')
$speak.SelectVoiceByHints('Female')
$speak.Speak('Process CANCELLED')
}
else
{
[System.Console]::Beep(500, 150)
}
Return
}
elseif ($file_size -ge 1048576 -and $file_size -le 10485760)
{
if ($speak.state -eq 'Ready')
{
$speak.SelectVoiceByHints('Female')
$speak.Speak('The selected Bitmap is large. It might take more than an hour to process ...')
}
}
$statusbar1.Text = "Bitmap size: " + $file_size + " bytes"
$labelTotal.Text = "Total bitmap blocks: $($file_size * 8)"
$Encoding = [System.Text.Encoding]::GetEncoding(28591)
# Open Reader
$Stream = New-Object System.IO.FileStream $file, ([IO.FileMode]::Open), ([IO.FileAccess]::Read), ([IO.FileShare]::ReadWrite)
$StreamReader = New-Object System.IO.StreamReader -ArgumentList $Stream, $Encoding
# Read the bitmap file
$BitmapData = $StreamReader.ReadToEnd()
# Close Reader
$StreamReader.Close()
$Stream.Close()
try { $StreamReader.Dispose() }
catch { }
try { $Stream.Dispose() }
catch { }
[gc]::Collect()
if (![String]::IsNullOrEmpty($BitmapData))
{
# Resident content
$BitmapDataB = [System.Text.Encoding]::getencoding(28591).GetBytes($BitmapData)
$BitmapDataHex = [System.BitConverter]::ToString($BitmapDataB) -replace '-', ''
Get-BitmapData -FileData $BitmapDataHex
}
}
}
function Get-BitmapData
{
Param
(
[parameter(Mandatory = $true)]
[String]$FileData
)
Add-Type -AssemblyName System.speech
$speak = New-Object System.Speech.Synthesis.SpeechSynthesizer
if ($speak.GetInstalledVoices().voiceinfo.culture.name -match "en-" -and $speak.GetInstalledVoices().voiceinfo.gender -contains ('Male' -and 'Female'))
{
$speak.Rate = 0
}
$len = $FileData.Length/2
if ($len -gt 1000000)
{ $l = 15 }
elseif ($len -gt 100000 -and $len -le 1000000)
{ $l = 5}
else
{ $l = 1 }
# Clear stuff
$richtextboxOutput.Clear()
$label1.Text = $null
$InputBox.text = $null
$SaveResults.Enabled = $false
# Read Bitmap file data
if (![String]::IsNullOrEmpty($FileData))
{
$richtextboxOutput.AppendText("Marked as ")
if ($checkboxAllocated.Checked -eq $true)
{
$colorOld = $richtextboxOutput.SelectionColor
$richtextboxOutput.SelectionColor = 'DarkGreen'
$richtextboxOutput.AppendText("Allocated/Used")
$richtextboxOutput.SelectionColor = $colorOld
$Allocated = '1'
}
elseif ($checkboxAllocated.Checked -eq $false)
{
$colorOld = $richtextboxOutput.SelectionColor
$richtextboxOutput.SelectionColor = 'DarkRed'
$richtextboxOutput.AppendText("NOT Allocated/Empty")
$richtextboxOutput.SelectionColor = $colorOld
$Allocated = '0'
}
$colorOld = $richtextboxOutput.SelectionColor
$richtextboxOutput.SelectionColor = 'Black'
$richtextboxOutput.AppendText(" 4Kb Index Blocks or MFT record numbers.`n`n ")
$richtextboxOutput.SelectionColor = $colorOld
$checkboxAllocated.Enabled = $false
# Start processing job
$buttonExit.Text = "Cancel"
$buttonExit.ForeColor = 'DarkRed'
$script:stop = $false
$script:stopprocess = $false
Start-Job -Name GetBitmap -InputObject $FileData -ScriptBlock {
$bitmaptext = [System.Collections.ArrayList]@()
# Split hexadecimal to byte array
$bitmap_content = $input -split "(..)" -ne ''
# Reverse bits and display output
for ($l = 0; $l -lt $bitmap_content.Length; $l++)
{
# convert every byte to binary and reverse the bit order
$bits = [Convert]::ToString("0x$($bitmap_content[$l])", 2).padleft(8, '0') -split "(.)" -ne ''
[Array]::Reverse($bits)
# add all the bits together again
$bits = $bits -join ''
for ($b = 0; $b -lt 8; $b++)
{
# get the bit nr of the bits equal to 1
if ($bits[$b] -eq "$($using:Allocated)")
{
$null = $bitmaptext.add("$(($l * 8) + $b)")
}
}
}
$bitmaptext
} # Job GetBitmap scriptblock end
if ($speak.state -eq 'Ready')
{
$speak.SelectVoiceByHints('Male')
$speak.Speak('Processing started.')
$speak.SelectVoiceByHints('Female')
$speak.Speak('Please wait')
}
$s = New-Object -TypeName System.Diagnostics.Stopwatch
$s.Start()
$t = 0
While ($script:stop -eq $false -and !!((get-job -name 'GetBitmap' -ErrorAction SilentlyContinue).State -ne 'Completed'))
{
if ($t % $l -eq 0)
{
$statusbar1.Text = "Processing .. $($s.Elapsed.Hours.ToString('0#')):$($s.Elapsed.Minutes.ToString('0#')):$($s.Elapsed.Seconds.ToString('0#'))"
}
Start-Sleep -s 1
[System.Windows.Forms.Application]::DoEvents()
$t++
}
$s.Stop()
if ($script:stopprocess -eq $false)
{
$bitjob = get-job GetBitmap | receive-job -AutoRemoveJob -Wait
$buttonExit.Text = "Exit"
if ($speak.state -eq 'Ready')
{
$speak.SelectVoiceByHints('Female')
$speak.Speak("Processing Job Finished in $($s.Elapsed.TotalSeconds.ToString('0')) seconds")
}
else { [System.Console]::Beep(1800, 150) }
$s.Reset()
$colorOld = $richtextboxOutput.SelectionColor
$richtextboxOutput.SelectionColor = 'Black'
$richtextboxOutput.AppendText([String]$bitjob)
$richtextboxOutput.SelectionStart = 0
$richtextboxOutput.ScrollToCaret()
$richtextboxOutput.SelectionLength = 0
$SaveResults.Enabled = $true
if ($checkboxAllocated.Checked -eq $true)
{
$statusbar1.Text = "Total Allocated Entries: " + $bitjob.Count
}
else
{
$statusbar1.Text = "Total UnAllocated Entries: " + $bitjob.Count
}
$buttonExit.Text = "Exit"
$buttonExit.ForeColor = 'Black'
[System.GC]::Collect()
$InputBox.Text = "Enter or Paste the Bitmap content (Hexadecimal)"
}
$checkboxAllocated.Enabled = $true
$RunButtonButton.Enabled = $false
}
else
{
[System.Console]::Beep(500, 150)
}
}
$MFTBitmapReader_FormClosing=[System.Windows.Forms.FormClosingEventHandler]{
#Event Argument: $_ = [System.Windows.Forms.FormClosingEventArgs]
try
{
Get-Job | Stop-Job
Get-job | Remove-Job
}
catch{}
$richtextboxOutput.Clear()
[GC]::Collect()
}
$RunButtonButton_Click={
if ($InputBox.text.Length -gt 0 -and $InputBox.Text -ne 'Enter or Paste the Bitmap content (Hexadecimal)')
{
$labelFilename.Text = $null
$input = $InputBox.text -replace " ", ""
$input = $input.trim().Trimstart("0x").TrimStart("0X") -replace '\s', ''
$labelTotal.Text = "Total bitmap blocks: $($InputBox.text.Length * 8)"
Get-BitmapData -FileData $input
}
}
$InputBox_MouseClick=[System.Windows.Forms.MouseEventHandler]{
#Event Argument: $_ = [System.Windows.Forms.MouseEventArgs]
$InputBox.text = $null
}
$InputBox_TextChanged={
if ($InputBox.Text.Length -gt 0 -and $InputBox.Text -ne 'Enter or Paste the Bitmap content (Hexadecimal)')
{
$checkboxAllocated.Checked = $true
$RunButtonButton.Enabled = $true
}
}
$checkboxAllocated_CheckedChanged={
if ($checkboxAllocated.Checked -eq $true)
{
$checkboxAllocated.BackColor = 'Honeydew'
}
else
{
$checkboxAllocated.BackColor = 'LavenderBlush'
}
}
$CopySelection_Click={
if (!!$richtextboxOutput.SelectedText)
{
$richtextboxOutput.Copy()
}
else
{
[System.Console]::Beep(1500, 150)
}
}
$CopyAll_Click={
$richtextboxOutput.SelectAll()
$richtextboxOutput.Copy()
}
$SelectAll_Click={
$richtextboxOutput.SelectAll()
}
$PrintAll_Click={
if ($richtextboxOutput.Text.Length -ge 1)
{
$pdialog = New-Object System.Windows.Forms.PrintDialog
$pdialog.AllowCurrentPage = $true
$pdialog.AllowSomePages = $true
$pdialog.AllowSelection = $true
if ($pdialog.ShowDialog() -eq 'OK')
{
$printer = $pdialog.PrinterSettings.PrinterName
$richtextboxOutput.SelectAll()
$richtextboxOutput.SelectedText | Out-Printer -Name $printer
$richtextboxOutput.Select()
}
else { [System.Console]::Beep(500, 150) }
}
}
$SaveResults_Click={
if ($richtextboxOutput.Text.Length -ge 1)
{
$savefiledialog1.FileName = "Bitmap.txt"
if ($savefiledialog1.ShowDialog() -eq 'OK')
{
$outfile = $savefiledialog1.FileName
$richtextboxOutput.Text | Out-File -FilePath $outfile -Encoding utf8 -ErrorAction SilentlyContinue
}
else { [System.Console]::Beep(500, 150) }
}
else { [System.Console]::Beep(500, 150) }
}
# --End User Generated Script--
#----------------------------------------------
#region Generated Events
#----------------------------------------------
$Form_StateCorrection_Load=
{
#Correct the initial state of the form to prevent the .Net maximized form issue
$MFTBitmapReader.WindowState = $InitialFormWindowState
}
$Form_Cleanup_FormClosed=
{
#Remove all event handlers from the controls
try
{
$checkboxAllocated.remove_CheckedChanged($checkboxAllocated_CheckedChanged)
$OpenBitmap.remove_Click($OpenBitmap_Click)
$RunButtonButton.remove_Click($RunButtonButton_Click)
$InputBox.remove_MouseClick($InputBox_MouseClick)
$InputBox.remove_TextChanged($InputBox_TextChanged)
$buttonFind.remove_Click($buttonFind_Click)
$textboxFind.remove_TextChanged($textboxFind_TextChanged)
$buttonExit.remove_Click($buttonExit_Click)
$MFTBitmapReader.remove_FormClosing($MFTBitmapReader_FormClosing)
$MFTBitmapReader.remove_FormClosed($processTracker_FormClosed)
$timerProcessTracker.remove_Tick($timerProcessTracker_Tick)
$CopySelection.remove_Click($CopySelection_Click)
$CopyAll.remove_Click($CopyAll_Click)
$SelectAll.remove_Click($SelectAll_Click)
$PrintAll.remove_Click($PrintAll_Click)
$SaveResults.remove_Click($SaveResults_Click)
$MFTBitmapReader.remove_Load($Form_StateCorrection_Load)
$MFTBitmapReader.remove_FormClosed($Form_Cleanup_FormClosed)
}
catch { Out-Null <# Prevent PSScriptAnalyzer warning #> }
}
#endregion Generated Events
#----------------------------------------------
#region Generated Form Code
#----------------------------------------------
$MFTBitmapReader.SuspendLayout()
$contextmenustrip1.SuspendLayout()
#
# MFTBitmapReader
#
$MFTBitmapReader.Controls.Add($checkboxAllocated)
$MFTBitmapReader.Controls.Add($statusbar1)
$MFTBitmapReader.Controls.Add($labelFilename)
$MFTBitmapReader.Controls.Add($label1)
$MFTBitmapReader.Controls.Add($labelTotal)
$MFTBitmapReader.Controls.Add($OpenBitmap)
$MFTBitmapReader.Controls.Add($RunButtonButton)
$MFTBitmapReader.Controls.Add($InputBox)
$MFTBitmapReader.Controls.Add($richtextboxOutput)
$MFTBitmapReader.Controls.Add($buttonFind)
$MFTBitmapReader.Controls.Add($textboxFind)
$MFTBitmapReader.Controls.Add($buttonExit)
$MFTBitmapReader.AcceptButton = $buttonFind
$MFTBitmapReader.AutoScaleDimensions = New-Object System.Drawing.SizeF(10, 20)
$MFTBitmapReader.AutoScaleMode = 'Font'
$MFTBitmapReader.AutoSizeMode = 'GrowAndShrink'
$MFTBitmapReader.ClientSize = New-Object System.Drawing.Size(973, 557)
#region Binary Data
$Formatter_binaryFomatter = New-Object System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
$System_IO_MemoryStream = New-Object System.IO.MemoryStream (,[byte[]][System.Convert]::FromBase64String('
AAEAAAD/////AQAAAAAAAAAMAgAAAFFTeXN0ZW0uRHJhd2luZywgVmVyc2lvbj00LjAuMC4wLCBD
dWx0dXJlPW5ldXRyYWwsIFB1YmxpY0tleVRva2VuPWIwM2Y1ZjdmMTFkNTBhM2EFAQAAABNTeXN0
ZW0uRHJhd2luZy5JY29uAgAAAAhJY29uRGF0YQhJY29uU2l6ZQcEAhNTeXN0ZW0uRHJhd2luZy5T
aXplAgAAAAIAAAAJAwAAAAX8////E1N5c3RlbS5EcmF3aW5nLlNpemUCAAAABXdpZHRoBmhlaWdo
dAAACAgCAAAAAAAAAAAAAAAPAwAAAGh0AAACAAABAAUAAAAAAAEAIADSLwAAVgAAADAwAAABACAA
qCUAACgwAAAgIAAAAQAgAKgQAADQVQAAGBgAAAEAIACICQAAeGYAABAQAAABACAAaAQAAABwAACJ
UE5HDQoaCgAAAA1JSERSAAABAAAAAQAIBgAAAFxyqGYAAAABc1JHQgCuzhzpAAAABGdBTUEAALGP
C/xhBQA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