blob: de730b279f7e236cbabd2011e6c0a47894cb3c6e (
plain)
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
|
/*****************************************************************************/
/* pemagination: a (virtual) tour into portable bits and executable bytes */
/* Copyright (C) 2013--2020 SysDeer Technologies, LLC */
/* Released under GPLv2 and GPLv3; see COPYING.PEMAGINE. */
/*****************************************************************************/
#include <psxtypes/psxtypes.h>
#include <pemagine/pemagine.h>
#include "pe_os.h"
wchar16_t * pe_get_peb_command_line(void)
{
struct os_peb * peb;
return (peb = (struct os_peb *)pe_get_peb_address())
? peb->process_params->command_line.buffer
: 0;
}
wchar16_t * pe_get_peb_environment_block(void)
{
struct os_peb * peb;
return (peb = (struct os_peb *)pe_get_peb_address())
? peb->process_params->environment
: 0;
}
|