blob: 7817c16d10921fdff945cd7b3dd80e80aecf3e67 (
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--2017 Z. Gilboa */
/* 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;
}
|