fixes issue 1071

Remove extra space causing EncodePointer to not be redirected

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1883 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1063: implement redirect_CreatePipe

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1884 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1063: implement redirect_DeleteFile{A,W}

Added a real nt_delete_file() and implemented redirect_DeleteFile{A,W}
using it.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1885 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1063: redirect {G,S}etLastError()

Added a unit test, including setup for kernel32_misc tests in general.

Also replaced the invocation of priv_SetLastError() from the private
kernel32 with the DR-internal set_last_error() to reduce dependencies
on having a private kernel32 lib around, for i#1070.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1886 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1063: advapi32 routines

Added advapi32 redirection infrastructure.

Implemented redirect_RegCloseKey(), redirect_RegOpenKeyEx{A,W}(),
and redirect_RegQueryValueEx{A,W}().

Added unit tests for these routines.

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1887 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6
i#1063: implement DuplicateHandle and DeviceIoControl

git-svn-id: https://dynamorio.googlecode.com/svn/trunk@1888 49cc7528-f6fd-11dd-9d1a-b59b2e1864b6