Skip to main content

host_login_environment_block

Function host_login_environment_block 

Source
pub fn host_login_environment_block() -> Result<Vec<u16>>
Expand description

The login environment in the double-NUL-terminated UTF-16 block form.

This shape exists because CreateProcessW consumes it on Windows. It is provided on every host so the facade has one signature rather than one per host, and because the encoding is the same data either way – a caller driving a Windows API through a cross-platform code path should not have to choose between a cfg and a hand-rolled encoder.