Thanks, Wayne, but that doesn't work if you make the strings Unicode by saving the source as UTF-8 or UTF-16.
D:\PROG\TEST\GoAsm>stralign32
Error: 998
D:\PROG\TEST\GoAsm>stralign64
Error: 998
#define UNICODE
#define LINKFILES
#define LINKVCRT
#include <windows.h>
DATA SECTION
hKey PTR 0
a DB 0
CODE SECTION
Start:
invoke RegCreateKeyEx, HKEY_CURRENT_USER, "TestKey", 0, NULL, 0, \
KEY_WRITE, NULL, addr hKey, NULL
cmp eax,ERROR_SUCCESS
jne >.error
invoke printf, A"Success"
#if x86
add esp,4
#endif
.exit
ret
.error
invoke printf, A"Error: %d", eax
#if x86
add esp,8
#endif
jmp .exit