code_junkie

Launching Shell Links (LNKs) from WOW64

Nov 13th, 2011
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. #include <windows.h>
  2. #include <ShellAPI.h>
  3. #include <stdio.h>
  4.  
  5. int main(int iArgc, const char *pArgv[])
  6. {
  7. ShellExecute(NULL, L"open", L"C:\windows\sysnative\..\..\Program Files\Internet Explorer\iexplore.exe", NULL, NULL, SW_SHOWNORMAL);
  8. BOOL bIAmWow64 = FALSE;
  9. IsWow64Process(GetCurrentProcess(), &bIAmWow64);
  10. printf("I am a wow64 process: %hsn", bIAmWow64 ? "Yes": "No");
  11. return 0;
  12. }
Add Comment
Please, Sign In to add comment