Enable/Disable Wireless network

IT/시스템프로그래밍 2015. 7. 8. 18:02 Posted by Imtraveller
반응형


  • 노트북을 무선 AP로 사용하는 기능 차단 가능
  • 노트북의 네트워크 설정의 로컬/무선/블루투스등 네트워크별 차단 가능
  • 노트북을 무선 AP로 사용하는 기능 차단 방법
Windows Vista won’t automatically create ad hoc wireless connections with other computers, but for greater security you may want to disable ad-hoc wireless connections entirely. You can do this by running the following Netsh command at an elevated command prompt:

Disable ad hoc wireless connections :
netsh wlan add filter permission=denyall networktype=adhoc

To re-enable ad hoc wireless connections, run this command:

netsh wlan del filter permission=denyall networktype=adhoc
http://superuser.com/questions/163117/how-to-disable-ad-hoc-wireless-connections

  • 노트북의 네트워크 설정의 로컬/무선/블루투스등 네트워크별 차단 방법
netsh interface set interface name="Local Area Connection" admin=disabled

Subsitute the actual network connection name if it isn't Local Area Connection

wmic path win32_networkadapter where NetConnectionID="Wireless Network Connection" call disable
wmic path win32_networkadapter where NetConnectionID="Wireless Network Connection" call enable
http://answers.microsoft.com/en-us/windows/forum/windows_7-hardware/enabledisable-network-interface-via-command-line/17a21634-c5dd-4038-bc0a-d739209f5081



WLAN(무선 LAN)에 대한 Netsh 명령
적용 대상: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista
https://technet.microsoft.com/ko-kr/library/cc755301(v=ws.10).aspx





반응형

win 8 metro windows disable

IT/시스템프로그래밍 2013. 9. 23. 10:31 Posted by Imtraveller
반응형





레지스트리 설정 관련 URL

http://forums.techytohelp.com/index.php?topic=791.0

 

아래대로 했는데 큰효과가 없네..-_-

메트로 UI보다 네 UI가 먼저 나오게 하거나 내리는 기능이 필요한데 애매하다.




반응형
반응형

deviceiocontrol disk용량 확인

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363147(v=vs.85).aspx


Registering for Device Notification

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363432(v=vs.85).aspx


Detecting Media Insertion or Removal

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363215(v=vs.85).aspx


Processing a Request to Remove a Device

http://msdn.microsoft.com/en-us/library/windows/desktop/aa363427(v=vs.85).aspx



반응형
반응형

락이 걸린경우 해제하려고 알아보았는데, 여러가지 의견들이 많긴하나 내가 성공한 방법은 이렇다.

1. DOS부팅전 HDD 나 SSD의 전원을 뺀놓는다.(이때 데이터 케이블은 연결된 상태)

2. DOS부팅이되면 전원케이블 연결

3. MHDD나 HDDERASE와 같은 툴 실행

4.  락이 해제되었다면 Erase수행

5. 해제되지 않았다면 종료 후 전원케이블 제거 후 재부팅 위의 1번 부터 다시 수행

이렇게 하니 잘되었다.


Tried all those things except n0 4 as can't set a password in my bios.

Q: How can I bypass the Security Lock?
A: You can try the following:
1. Boot your SSD to another computer. 
2. Switch your SSD to another SATA channel.
3. Hot Plug your SSD (Dangerous):
Turn your PC off.
Unplug your SSD power cable but leave signal cable in.
Power back on your system, complete boot, re-attach your SSD power.
4. Set a password for your SSD in your BIOS.

 

 

MHDD fast erase method

get from http://forum.hddguru.com/viewtopic.php?t=884&start=

To erase :
1) Issue LOCK
2) Select 0 (user)
3) type a password es. 1234
4) Issue EID command to verify the locking. PWD will lit and the warning "drive is locked with ATA password" will appear
5) at this point issue FASTERASE
6) type the user password in this case 1234
7) wait a few seconds and MHDD will show "OK FASTERASE STARTED"... otherwise the entered PW is incorrect.
 wait until BSY turns off. You can be warned with a beep issuing WAIT command (the pc wll beep when the drive is not busy anymore)
9) the drive is erased.

Most drives unlock automatically after fasterase, other have to be UNLOCKed (issue UNLOCK command and type user or master pwd.) then DISPWD.
Turn off then on the drive and you'll see the drive is not locked anymore.

FASTERASE uses internal security functions so is much faster than erasing the LBAs . It took me about 40 min. for a Maxtor 160GB. , may vary depending on brand and capacity.

반응형
반응형


UserMode 파일, 디렉토리 변경사항 통지

http://qualapps.blogspot.kr/2010/05/understanding-readdirectorychangesw_19.html

 

 

http://msdn.microsoft.com/en-US/aa363798.aspx

http://www.codeproject.com/Articles/950/CDirectoryChangeWatcher-ReadDirectoryChangesW-all

http://www.experts-exchange.com/Programming/Languages/CPP/Q_22507220.html

 

http://www.benjaminlog.com/entry/ReadDirectoryChangesW

 


 

 

반응형

메모리 덤프 생성 방법

IT/시스템프로그래밍 2013. 4. 15. 20:07 Posted by Imtraveller
반응형


 

 

 

덤프수집 방법

http://blog.naver.com/PostView.nhn?blogId=sol9501&logNo=70093965968

 

http://blogs.msdn.com/b/noenemy/archive/2009/02/19/9433426.aspx

 

현재 프로세스 내부에서 문제가 발생 시 덤프 생성방법

http://greenfishblog.tistory.com/19

 

make dump to using Dbghelp.dll

http://2ry53.tistory.com/entry/MiniDump-%EB%AF%B8%EB%8B%88%EB%8D%A4%ED%94%84%EB%A5%BC-%EC%83%9D%EC%84%B1%ED%95%98%EC%97%AC-%ED%94%84%EB%A1%9C%EA%B7%B8%EB%9E%A8-%EC%98%A4%EB%A5%98-%EC%B0%BE%EA%B8%B0-dbghelpdll

 

About dbghelp Information of msdn

http://msdn.microsoft.com/en-us/library/windows/desktop/ms679294(v=vs.85).aspx


반응형

MAPI API관련 오류- email~~

IT/시스템프로그래밍 2013. 3. 6. 14:15 Posted by Imtraveller
반응형


There is no email program associated to perform the requested action.
Please install an email program or, if one is already installed, create an association in the Default Programs control panel.

 

2) If Outlook is not installed or is not the default mail program, start RegEdit.exe and navigate to and delete the following registry values:
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail -> delete the (Default) value
HKEY_LOCAL_MACHINE\SOFTWARE\Clients\Mail\Microsoft Outlook -> delete the DllPathEx value

>;

 


반응형

LocalPath To UNCPath and vice versa

IT/시스템프로그래밍 2013. 3. 6. 11:45 Posted by Imtraveller
반응형

get from http://stackoverflow.com/questions/2316927/how-to-convert-unc-to-local-path

 

#include <Crtdbg.h>    // for debug stuff
#include "Winnetwk.h"  // for WNetGetUniversalName()
#include "Lm.h"        // for NetShareGetInfo()
#include "pystring.h"  // from http://code.google.com/p/pystring

#pragma comment( lib, "Mpr.lib" )       // for WNetGetUniversalName()
#pragma comment( lib, "Netapi32.lib" )  // for NetShareGetInfo()

//-----------------------------------------------------------------------------
// converts x:\\folder -> \\\\server\\share\\folder
bool ConvertLocalPathToUNC(const char* szFilePath, std::string& strUNC)
{
 
// get size of the remote name buffer
  DWORD dwBufferSize
= 0;
 
char szBuff[2];
 
if (::WNetGetUniversalName(szFilePath, UNIVERSAL_NAME_INFO_LEVEL, szBuff, &dwBufferSize) == ERROR_MORE_DATA)
 
{
   
// get remote name of the share
   
char* buf = new char[dwBufferSize];
    UNIVERSAL_NAME_INFO
* puni = (UNIVERSAL_NAME_INFO*) buf;

   
if (::WNetGetUniversalName(szFilePath, UNIVERSAL_NAME_INFO_LEVEL, buf, &dwBufferSize) == NO_ERROR)
   
{
      strUNC
= puni->lpUniversalName;
     
delete [] buf;
     
return true;
   
}
   
delete [] buf;
 
}

 
return false;
}

//-----------------------------------------------------------------------------
// converts \\\\server\\share\\folder -> x:\\folder
bool ConvertUNCToLocalPath(const char* szUNC, std::string& strLocalPath)
{
 
// get share name from UNC
  std
::string strUNC(szUNC);
  std
::vector< std::string > vecTokens;
  pystring
::split(strUNC, vecTokens, _T("\\"));

 
if (vecTokens.size() < 4)
   
return false;

 
// we need wchar for NetShareGetInfo()
  std
::wstring strShare(vecTokens[3].length(), L' ');
  std
::copy(vecTokens[3].begin(), vecTokens[3].end(), strShare.begin());

  PSHARE_INFO_502 
BufPtr;
  NET_API_STATUS   res
;
 
if ((res = NetShareGetInfo(NULL, const_cast<LPWSTR>(strShare.c_str()), 502, (LPBYTE*) &BufPtr)) == ERROR_SUCCESS)
 
{
   
// print the retrieved data.
    _RPTF3
(_CRT_WARN, _T("%ls\t%ls\t%u\n"), BufPtr->shi502_netname, BufPtr->shi502_path, BufPtr->shi502_current_uses);

    std
::wstring strPath(BufPtr->shi502_path);
    strLocalPath
.assign(strPath.begin(), strPath.end());

   
// build local path
   
for (size_t i = 4; i < vecTokens.size(); ++i)
   
{
     
if (!pystring::endswith(strLocalPath, _T("\\")))
        strLocalPath
+= _T("\\");
      strLocalPath
+= vecTokens[i];
   
}

   
// Validate the value of the shi502_security_descriptor member.
   
if (IsValidSecurityDescriptor(BufPtr->shi502_security_descriptor))
      _RPTF0
(_CRT_WARN, _T("It has a valid Security Descriptor.\n"));
   
else
      _RPTF0
(_CRT_WARN, _T("It does not have a valid Security Descriptor.\n"));

   
// Free the allocated memory.
   
NetApiBufferFree(BufPtr);
 
}
 
else
   
return false;

 
return true;
}>;

반응형
반응형

windows 8 integrity에 따른 공유메모리 사용시 (ACL) 문제

 

http://stackoverflow.com/questions/9589141/low-integrity-to-medium-high-integrity-pipe-security-descriptor

 

ACL 생성 (서로 다른 integrity간 통신관련)

http://msdn.microsoft.com/en-us/library/bb625960.aspx

 

About windows 8 app shared memory

http://blogs.microsoft.co.il/blogs/pavely/archive/2012/08/21/can-windows-8-apps-share-memory.aspx

 

pipe ace설정 관련

http://blogs.charteris.com/blogs/chrisdi/archive/2008/06/16/exploring-the-wcf-named-pipe-binding-part-2.aspx

 

http://stackoverflow.com/questions/3282365/opening-a-named-pipe-in-low-integrity-level-windows-7-c

 

S:(ML;;NW;;;LW)

S:(ML;;NW;;;LW)D:(A;;0x12019f;;;WD

S:(ML;;NW;;;LW)D:(A;;0x12019b;;;WD



반응형
반응형


Registry Change notification function in win32 AP

- 레지스트리의 변화를 체크해주는 함수

- 이 함수를 이용가능 할 듯

http://msdn.microsoft.com/en-us/library/windows/desktop/ms724892(v=vs.85).aspx



반응형