Thanks guys.
Hutch-
When I right-click my program and run as administrator it doesn't work.
When I run your program it only works if I right-click run as administrator. But that's real progress to me!
AW- The administrator thing is the key alright.
Now to figure out how to elevate the permissions when launching from a program that has been run from the desktop context menu.
I've been using winexec because I had the choice between-
invoke WinExec,addr cmdbuf,SW_HIDE
or
local ssi:STARTUPINFO,pi:PROCESS_INFORMATION
invoke RtlZeroMemory,addr ssi,sizeof ssi
mov ssi.cb,sizeof ssi
invoke RtlZeroMemory,addr pi,sizeof pi
invoke CreateProcess,0,addr cmdbuf,0,0,1,0,0,0,addr ssi,addr pi
didn't seem like a hard decision to me.