Files
PowerShell/impl/getusername.h
T
Andrew Schwartzmeyer 5ed81a0a41 Return char* for GetUserName
The UTF-8 char* is marshaled to a UTF-16 string automatically. It must
be allocated on the heap as the CLR will free the returned memory.

This removes entire classes of possible errors, greatly reducing the
code complexity and number of tests.
2015-10-24 22:17:44 -07:00

10 lines
89 B
C

#pragma once
#include "pal.h"
PAL_BEGIN_EXTERNC
char* GetUserName();
PAL_END_EXTERNC