ShellExecuteEx 를 이용해서 Application 권한 상승 하기


#include "stdafx.h"
#include "windows.h"
#include "shellapi.h"


int _tmain(int argc, _TCHAR* argv[])
{
      SHELLEXECUTEINFO shExecInfo;

      shExecInfo.cbSize = sizeof(SHELLEXECUTEINFO);

      shExecInfo.fMask = NULL;
      shExecInfo.hwnd = NULL;
      shExecInfo.lpVerb = L"runas";
      shExecInfo.lpFile = L"notepad.exe";
      shExecInfo.lpParameters = NULL;
      shExecInfo.lpDirectory = NULL;
      shExecInfo.nShow = SW_MAXIMIZE;
      shExecInfo.hInstApp = NULL;

      ShellExecuteEx(&shExecInfo);

      return 0;
}

출처 : http://blogs.msdn.com/vistacompatteam/archive/2006/09/25/771232.aspx

스위소로우-사랑의 미로 모창


스윗소로우가 부른 사랑의 미로

다운로드

Programming Windows TCP Sockets in C++ for the Beginner



http://www.codeproject.com/KB/IP/beginningtcp_cpp.aspx

http://www.codeproject.com/KB/IP/Ping_and_Traceroute.aspx

http://www.codeproject.com/KB/IP/UDP_Traceroute.aspx

prev 1 ··· 3 4 5 6 7 8 9 ··· 42 next