winpe

ULONGLONG value corrupted in WinPE

I have an MFC app running in WinPE (Windows Preinstallation Environment), and I'm trying to make a method call with a 64-bit value in a ULONGLONG as a parameter. I've determined that the value is correct (ie. 0x1b432d6000) before the call, but is corrupt (ie. 0x432d60000000000a) inside the call. The value is initially allocated on the ...

What programming languages/platforms can you use for GUI in a WinPE environment?

I'm starting work on a project that must be delivered in WinPE. I will likely be able to use WinPE 3.0. I'm also aware of Bart's PE and VistaPE, but I think I'm going to stick with WinPE. I need x64 support and the full range of storage drivers. I want to develop an app with a GUI and network access. I would like to work in Visual Studi...

How can I detect the drive letter of a booted USB drive from script?

I'm launching WinPE 2 from a bootable UFD, and I need to detect the drive letter in order to tell ImageX where to find the WIM. However, depending on the machine I'm imaging, there are different mounted drives. I need a way to consistently mount the UFD at, say, P: or something. Is there a way to detect the letter of the drive from wh...

Detecting AC Power connection in WinPE?

I'm trying to determine if a laptop is connected to AC power. The OS Im running under is WinPE. My app is written in native C++. WMI queries using Win32_Battery are not supported and the GetSystemPowerStatus API always returns '1' for ACLineStatus (running on AC power or not). Any ideas? Additonal investigation: Just tried the API '...

Managed code in WinPE

If I want to run a program in windows PE (Vista or 7) am I not allowed to use any level of managed code? Can I only have c++ code that doesn't reference any dotNet code? How can I interact with windows? Do I have to use user32.dll type files to carry out various operations? ...

Starting a .NET Application From CD?

Hi there, we're trying to figure out a way to build a .NET application that can run entirely self contained from a CD. Basically user pops in a CD, boots to an operating system on the CD and a barebones .NET Framework starts up with the application. We've looked at hacking the .NET Framework into WinPE but realize it's really an unsupp...

ml64 - warning A6004: procedure argument or local not referenced

I have a function written for th e x64 microsft macro assembler in visual studio 2005. The function recieves 3 arguments: theFunction PROC firstP:QWORD, secondP:QWORD, thirdP:QWORD the x64 calling convention state the the first 4 arguments will reside in registers rcx, rdx, r8 & r9. When I'm using the arguments in the function, I'm re...

WinPE 2.0 (Vista) - Looking for a solution for BrowseForFolder using VBSCRIPT & HTA application

Hi, I am creating an HTA application to be run inside of a WinPE 2.0 environment. The purpose of this HTA app is to prompt the user to select a back-up location. I am currently using BrowseForFolder to prompt the user folder location. Script works fine in Vista. However, this does not work in winpe 2.0 - and a dialog appears with n...

WinPE - Adding Custom Application to boot.wim or iso

Does anybody know how to add a customer exe into a ISO or boot.wim file with WinPE? Please provide sample statements on how to add file and then launch it from WinPE Command Line. Thanks ...

setting IPV6 in command line, Win PE

Hi Team, Can i set the IPv6 ip address in command line? if possible please suggest me the command to use. I am using I am using WinPE environment which is equalant to VISTA but with out GUI features installed. Thank you. ...

WTL application sizing different on WinPE and Win2003 -- Why?

I developed and initially tested a dialog-based WTL application on a Windows 2003 system. It contains a tabbed pane with a couple of child dialogs, among other things. During initial testing on Win2003 everything was fine, but when I ran it on a WinPE system today (the target platform) I noticed that the dialog size was all out of whack....

Boot WinPE on EC2 and Install Windows to Second Partition

I would like to spawn a EC2 instance that has two partitions. The first would have WinPE, which the instance would boot into on first boot. It would (unattended) install Windows onto the second partition, then reboot into that installed version of Windows. Is this possible? Can you have multiple partitions for an EC2 instance? Can one b...

Windows 7 Diskpart.exe sometimes fails to mount usb key

Here is my situation. I boot Windows PE (WinPE 3.0 from Win AIK, basically stripped down Windows 7) from CD with automounting disabled via the registry. I then connect a usb thumb drive. I run diskpart.exe to bring the disk "online" so I can write files to it. My steps are: diskpart.exe (version is 6.1.7600) DISKPART> select disk ...