블로그   태그   위치로그   이웃로그   방명록
          
 
 
05-16 16:51
 
 
     
 
  하드웨어 안전 제거 아이콘 만들기 및 rundll32.exe  +   [Windows/7]   |  2012. 3. 21. 20:30
나처럼 USB 마구 뽑는 사람도 있지만 하드웨어 안전 제거를 한 이후 스토리지를 뽑는 사람도 많을 것이다.
실제로 디스크 캐시가 완벽하게 기록이 안된 상태에서 스토리지를 제거하면 기록되지 못한 데이터는 그대로 날아간다. 다시말하면 USB에 파일을 복사 했더라도 다른 컴퓨터에 꼽아보면 파일이 없을 수도 있다는 이야기다.

다음은 바탕화면에 하드웨어 안전 제거 아이콘을 만드는 방법이다.


바탕 화면 오른클릭 - 새로만들기(W) - 바로가기(S) 선택



RunDll32.exe shell32.dll,Control_RunDLL HotPlug.dll 입력




바로 가기 이름 입력 (한글 윈도 7 기준 "하드웨어 안전하게 제거")


하면 다음과 같이 아이콘이 생성이 된다.

하지만 이대로는 아이콘 모양이 없기 때문에 다음과 같이 아이콘을 지정해 준다.



아이콘 오른클릭 - 속성




아이콘 변경(C)... 선택


%windir%\system32\HotPlug.dll 선택


마음에 드는 아이콘 선택


이 방법의 원리는 윈도에서 쉘 프로그램들을 열어주는 rundll32.exe를 이용하는 방법이다. 이외에도 다양한 쉘프로그램들을 열 수 있다.

Content Advisor
RunDll32.exe msrating.dll,RatingSetupUI

Control Panel
RunDll32.exe shell32.dll,Control_RunDLL

Date and Time Properties
RunDll32.exe shell32.dll,Control_RunDLL timedate.cpl

Display Settings
RunDll32.exe shell32.dll,Control_RunDLL access.cpl,,3

Device Manager
RunDll32.exe devmgr.dll DeviceManager_Execute

Folder Options – File Types
RunDll32.exe shell32.dll,Control_Options 2

Folder Options – General
RunDll32.exe shell32.dll,Options_RunDLL 0

Folder Options – Search
RunDll32.exe shell32.dll,Options_RunDLL 2

Folder Options – View
RunDll32.exe shell32.dll,Options_RunDLL 7

Forgotten Password Wizard
RunDll32.exe keymgr.dll,PRShowSaveWizardExW

Hibernate
RunDll32.exe powrprof.dll,SetSuspendState

Keyboard Properties
RunDll32.exe shell32.dll,Control_RunDLL main.cpl @1

Lock Screen
RunDll32.exe user32.dll,LockWorkStation

Mouse Properties
RunDll32.exe shell32.dll,Control_RunDLL main.cpl @0

Map Network Drive
RunDll32.exe shell32.dll,SHHelpShortcuts_RunDLL Connect

Network Connections
RunDll32.exe shell32.dll,Control_RunDLL ncpa.cpl

Power Options
RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl

Regional Settings
RunDll32.exe shell32.dll,Control_RunDLL intl.cpl,,3

Stored Usernames and Passwords
RunDll32.exe keymgr.dll,KRShowKeyMgr

System Properties: Advanced
RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,4

System Properties: Automatic Updates
RunDll32.exe shell32.dll,Control_RunDLL sysdm.cpl,,5

Taskbar Properties
RunDll32.exe shell32.dll,Options_RunDLL 1

User Accounts
RunDll32.exe shell32.dll,Control_RunDLL nusrmgr.cpl

Windows Security Center
RunDll32.exe shell32.dll,Control_RunDLL wscui.cpl

Windows – About
RunDll32.exe SHELL32.DLL,ShellAboutW

Unplug/Eject Hardware
RunDll32.exe shell32.dll,Control_RunDLL hotplug.dll

Windows Firewall
RunDll32.exe shell32.dll,Control_RunDLL firewall.cpl

Wireless Network Setup
RunDll32.exe shell32.dll,Control_RunDLL NetSetup.cpl,@0,WNSW

RUN
Rundll32.exe shell32.dll,#61


여기에서도 쉼표(,)나 숫자를 이용해서 하위 옵션을 선택할 수 있다.

예를들면 전원 옵션에서 현재 설정되어 있는 전원의 고급 옵션을 바로 들어가는 키는
RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl 에서 쉼표 두개와 1을 붙인
RunDll32.exe Shell32.dll,Control_RunDLL powercfg.cpl,,1
이다.

 
  
 
   

데드캣's Blog is powered by Daum & tistory