èµ·åä¸ã®ããã»ã¹ã®æ å ±ï¼ããã»ã¹åãããã»ã¹IDãã»ãã·ã§ã³IDï¼ãåæããã«ã¯ãã¿ã¼ããã«ãµã¼ãã¹APIã®WTSEnumerateProcessesé¢æ°ãç¨ããã WTSEnumerateProcessesé¢æ°ã®ãããã¿ã¤ã BOOL WTSEnumerateProcesses( HANDLE hServer, //ã¿ã¼ããã«ãµã¼ãã¼ã®ãã³ãã«(WSTOpenSeverã§åå¾ãã) DWORD Reserved, //å¿ ã0ãæå®ãã DWORD Version, //å¿ ã1ãæå®ãã PWTS_PROCESS_INFO *ppProcessInfo, //WTS_PROCESSæ§é ä½é åã¸ã®ãã¤ã³ã¿ DWORD *pCount //åå¾ã§ããWTS_PROCESSæ§é ä½é åã®è¦ç´ æ° ); WTSEnumerateProcessesé¢æ°ã§ããã®ããã°ã©ã ãå®è¡ä¸ã®ã¿ã¼ããã«ãµã¼ãã¼ã®ãã
ããã»ã¹ã®ææè æ å ±ãåå¾ããããã«ã¯ãGetKernelObjectSecurityé¢æ°ãGetSecurityDescriptorOwneré¢æ°ãLookupAccountSidé¢æ°ãç¨ãã æé ã¯ä»¥ä¸ã®ã¨ãã Noé ç® 1GetKernelObjectSecurityé¢æ°ã§ãã«ã¼ãã«ãªãã¸ã§ã¯ãã®ã»ãã¥ãªãã£è¨è¿°åãåå¾ãã 2GetSecurityDescriptorOwneré¢æ°ã§ãã»ãã¥ãªãã£è¨è¿°åããSIDãåå¾ãã 3LookupAccountSidé¢æ°ã§ãSIDã«å¯¾ããã¢ã«ã¦ã³ãæ å ±ãåå¾ãã ããã»ã¹ã®ææè æ å ±ãåå¾ããä¾ èªåèªèº«ã®ããã»ã¹ã®ææè æ å ±ãåå¾ãã #include <windows.h> #include <aclapi.h> #include <stdio.h> int main() { PSECURITY_DESCRIPTOR pSD; DWOR
2016å¹´10æ2æ¥è¿½è¨: Windows 8.1ãããã®ãµã³ãã«ã§ã¯åä½ããªããªã£ã¦ãã¾ã£ãããã§ããWindows Vistaï½7ã§ã¯åä½ãã¾ããWindows 8ã¯æªç¢ºèªã§ãã Microsoft.Windows.ActCtxãªãã¸ã§ã¯ãã使ãã¨ãã¬ã¸ã¹ããªã«ç»é²ããCOMã³ã³ãã¼ãã³ãã使ãã¾ããActivation Context APIã®ã©ããã¼ã§ãããWSHãHTAã«ãããJScript/VBScriptãªã©ã®Windows APIãå¼ã¹ãªãç°å¢ã§éå®ãã¾ãã ç¨æãããã®ã¯3ã¤ã§ãã å©ç¨ãããCOMã³ã³ãã¼ãã³ãæ¬ä½ï¼DLLãªã©ï¼ãããã§ã¹ããã¡ã¤ã«ã¹ã¯ãªããæ¬ä½1ã¤ç®ããµã³ãã«ã®COMã³ã³ãã¼ãã³ããä½ãã¾ãã: msgbox.cppãVisual C++ 2010ï¼Expressã§ãå¯ï¼ã§ã³ã³ãã¤ã«ã§ãã¾ããShowã¨ããã¡ã½ããã1ã¤æã£ãåç´ãªãªãã¸ã§ã¯ããããã¾
When an application dynamically loads a dynamic-link library without specifying a fully qualified path name, Windows attempts to locate the DLL by searching a well-defined set of directories in a particular order, as described in Dynamic-Link Library Search Order. If an attacker gains control of one of the directories on the DLL search path, it can place a malicious copy of the DLL in that directo
[WMP][C/C++]DLLã¯èªåèªèº«ã®ãªã½ã¼ã¹ã使ãäºãåºæ¥ãªãã®ã§ããããï¼ã®ç¶ãã ããã¨ã³ããªãæ稿ãããã¨ãã¦ããã£ããã¨è¦è¿ãã¦ãããããªãã§GetModuleHandle()ã®å¼æ°ã¯NULLãªãï¼ã¨çåãæãã¦ãMSDNãç´è§£ãã¦ã¿ã¾ããã GetModuleHandle å¼ã³åºãå´ããã»ã¹ã®ã¢ãã¬ã¹ç©ºéã«è©²å½ãã¡ã¤ã«ããããããã¦ããå ´åãæå®ãããã¢ã¸ã¥ã¼ã«åã®ã¢ã¸ã¥ã¼ã«ãã³ãã«ãè¿ãã¾ãã HMODULE GetModuleHandle( LPCTSTR lpModuleName  // ã¢ã¸ã¥ã¼ã«å ); lpModuleName NULL ãæå®ããã¨ãå¼ã³åºãå´ããã»ã¹ã®ä½æã«ä½¿ããããã¡ã¤ã«ã®ãã³ãã«ãè¿ãã¾ãã ã  ã ( д )ï¾ï¾ï½¶ï½°ï¾ å¼ã³åºãå´ããã»ã¹ã£ã¦ãWindows Media Playerããã¾ããã GetModuleHandle
Gauche 㧠OLE ãªã¼ãã¡ã¼ã·ã§ã³ãå©ç¨ããã©ã¤ãã©ãªã®ä½æãå æ¥ããåãçµãã§ãã¾ãããå°ãé²å±ããã£ãã®ã§ä¸æ¦ãªãªã¼ã¹ãããã¨ã«ãã¾ããã http://saito.s4.xrea.com/software/Gauche-OLE-0.5.tar.gz å¤æ´ã追å ã¯ä»¥ä¸ã®éãã§ãã ã¡ã½ããåã¨ããããã£åãã·ã³ãã«ã§è¡¨ç¾ å¾æ¥ã¯ã¡ã½ããåãããããã£åã¯æååã§ä¸ãã¦ãã¾ããã ãããã·ã³ãã«ã§è¡¨ç¾ããããã«ãã¾ããã ä¾ãã° object ã¨ãããªãã¸ã§ã¯ãã® method ã¨ããã¡ã½ãããèµ·åãããå ´åã¯ä»¥ä¸ã®ããã«ãªãã¾ãã (ole-invoke object 'method) object-apply ãå®ç¾©ãã¦ããã®ã§ä»¥ä¸ã®ããã«å¼åºãã¦ãããã§ãã (object 'method) ã·ã³ãã«ã§è¡¨ç¾ããããã«ããã®ã¯å°æ¥çã«ã¡ã½ããåã®æ¢ç´¢ããã£ãã·ã¥ããæ©æ§ãå°å ¥
UACãæå¹ã®æãã¢ããªã±ã¼ã·ã§ã³ã管çè ã«ææ ¼ããã¦èµ·åããWindows VistaããUACï¼ã¦ã¼ã¶ã¼ã¢ã«ã¦ã³ãå¶å¾¡ãUser Account Controlï¼ãå°å ¥ããã¾ãããããã«ãã£ã¦ãç¹å¥ãªå ´æã¸ãã¡ã¤ã«ãã¬ã¸ã¹ããªãæ¸ãè¾¼ãçã®æä½ãè¡ãªãã¢ããªã±ã¼ã·ã§ã³ãå®è¡ããæã管çè 権éã«ææ ¼ãããªãã¨æ£å¸¸ã«æ©è½ããªãæããããã¾ããããã§ã¯ã管çè 権éã«ææ ¼ããã¦ã¢ããªã±ã¼ã·ã§ã³ãèµ·åããæ¹æ³ã¨ãä½æããã¢ããªã±ã¼ã·ã§ã³ãèµ·åãããæã«èªåã§ç®¡çè 権éã«ææ ¼ãããããã«ããæ¹æ³ãç´¹ä»ãã¾ãã ã³ã³ããã¹ãã¡ãã¥ã¼ã§ã管çè ã¨ãã¦å®è¡ããé¸æãã¦å®è¡ããã¾ãã¯åºæ¬ã確èªããæå³ã§ã.NET Frameworkã¨ã¯é¢ä¿ããã¾ããããã¢ããªã±ã¼ã·ã§ã³ã管çè 権éã«ææ ¼ããã¦èµ·åããæ¹æ³ã2ã¤èª¬æãã¾ããåãã£ã¦ããæ¹ã¯èªã¿é£ã°ãã¦ãã ããã ã¢ããªã±ã¼ã·ã§ã³ã®å®è¡ãã¡ã¤ã«ãã·ã§ã¼ãã«ã
ããã®åå¿é²ã¯ãããã¾ã§ãèµ°ãæ¸ãç¨åº¦ã®ã¡ã¢çãªãã®ã§ãã®ã§æ°ãã¤ãã¦ãã ããã ãã®ã¾ã¾ã§ãã¡ããã¨åããã®ãæãå ããªãã¨ã ããªãã®ãªã©ãæªå®æã¬ãã«ã®ã³ã¼ãã§ããã®ã§ããã®ã¾ã¾å¼ç¨ãã¦ãã¾ããªã©ãããã°ã©ã ãç解ããç¥èã®ãªãæ¹ã¯å©ç¨ããªãã§ãã ãããã ä»å㯠Visual Studio .NET ã® Visual C++ 7.0 ã§ä½æãã ComTest ã¨ãã COM ã³ã³ãã¼ãã³ããåãã Visual C++ 7.0 ã®ããã°ã©ã å ã§ä½¿ç¨ããã¨ããæãã®ã話ã§ããVC++ 6.0 ã¨ã¯å°ãããæ¹ãéã£ããããªã®ã§ãã¾ã¨ãã¦è¦ã¾ããã ComTest ã¨ããã³ã³ãã¼ãã³ãã«ã¯ãIComTest ã¤ã³ã¿ã¼ãã§ã¤ã¹ã¨ãCComTest ã¨ãã CoClass ãç¨æããã¦ãããã®ã¨ãã¾ããã¿ã¤ãã©ã¤ãã©ãªãã¡ã¤ã«ã¯ _ComTest.tlb ã§ãã
æ¦è¦ DebugView ã¯ããã¼ã«ã« ã·ã¹ãã ãã¾ã㯠TCP/IP çµç±ã§ã¢ã¯ã»ã¹ã§ãããããã¯ã¼ã¯ä¸ã®ä»»æã®ã³ã³ãã¥ã¼ã¿ã«ãããããããã°ã®åºåãç£è¦ã§ããã¢ããªã±ã¼ã·ã§ã³ã§ããã«ã¼ãã« ã¢ã¼ã ãããã°ã®åºå㨠Win32 ãããã°ã®åºåã®ä¸¡æ¹ã表示ã§ããã®ã§ãã¢ããªã±ã¼ã·ã§ã³ãããã¤ã¹ ãã©ã¤ãã¼ããçæããããããã°ã®åºåããããã¬ã¼ã§åå¾ããå¿ è¦ããªããæ¨æºä»¥å¤ã®ãããã°ã®åºå API ã使ç¨ããããã«ã¢ããªã±ã¼ã·ã§ã³ããã©ã¤ãã¼ãå¤æ´ããå¿ è¦ãããã¾ããã DebugView ã®ãã£ããã£å¯¾è±¡ Windows 2000ãWindows XPãWindows Server 2003ãããã³ Windows Vista ã®å ´åãDebugView ã§ã¯æ¬¡ã®æ å ±ããã£ããã£ãã¾ãã Win32 ã® OutputDebugString ã«ã¼ãã« ã¢ã¼ãã® DbgPrint Wind
ãã¼ã < ã²ã¼ã ã¤ããã¼ï¼ < IKDåå¿é² C++ SAFEARRAYã試ãã¦ã¿ã (2009. 9. 8) SAFEARRAYãªãç©ãããã¾ããååã«ããããã«å®å ¨ãªé åã§ããããã©ã使ããè¯ããããã¾ãããããã§èª¿ã¹ã¦ã¿ãäºã«ãã¾ããã ã¨ããããåèã«ãªããããªæç« ãåå¿é²ï¼MSDNï¼Dr.GUI 㨠COM ãªã¼ãã¡ã¼ã·ã§ã³ã第 3 é¨ï¼ç¶ COM ã®ãã°ããããã¼ã¿åï¼ï¼ http://msdn.microsoft.com/ja-jp/library/cc482694.aspx â ããããSAFEARRAYã¨ã¯ï¼ ããããSAFEARRAYã£ã¦ãªãã ããã¨ãã話ã§ããVisual Studioã§å®£è¨ãè¦ã¦ã¿ãã¨ãããã¯æ§é ä½ã§ããï¼ typedef struct tagSAFEARRAY { USHORT cDims; USHORT fFeatures; ULONG cbE
âInterface ç 究室 ããã¯ããããããªè¨èªããã³ã³ãã¼ãã³ããããã¤ãªãã§ãã¾ãããã¨ãããã¨ã試ã¿ããã¼ã¸ã§ãã ãã¨ãã°ãC/C++ ã®ããã°ã©ã ãã Java ã®ã¡ã½ãããå¼ãã ããPerl ãã Excel ãæä½ãããã»ã»ã» ãããã試è¡é¯èª¤ããªãããã£ã¦ããããã¨æãã¾ãã ä¾ã«ãã£ã¦ãã½ã¼ã¹ã®ãã¯ãªå¤ãã§ã(^^; æåã®æ°åã¯ãCOM ã³ã³ãã¼ãã³ãã®ä½¿ãæ¹ã®ã話ã§ãã ï¼.VBScript/JScript ãã Internet Explorer ãæä½ãã[2005/03/18] ï¼.C++ ãã COM çµç±ã§ Internet Explorer ãæä½ãã(Early Binding ç)[2005/03/29] ï¼.C++ ãã COM çµç±ã§ Internet Explorer ãæä½ãã(Late Binding ç)[2005/05/05]
XMLHttpRequest ã使ç¨åºæ¥ãããã«ããçºã®å®£è¨ããã©ã¦ã¶ã«ããç°ãªãã IE ã§ã¯ãActiveXObject("Microsoft.XMLHTTP") ã使ç¨ã IE ã®ãã¼ã¸ã§ã³ã«ãã£ã¦ã¯ãActiveXObject("Msxml2.XMLHTTP.5.0") , ActiveXObject("Msxml2.XMLHTTP.4.0") , ActiveXObject("Msxml2.XMLHTTP.3.0") , ActiveXObject("Msxml2.XMLHTTP") ãªã©ã使ç¨åºæ¥ãã Mozilla ç³»ãã©ã¦ã¶ã§ã¯ãXMLHttpRequest() ã使ç¨ã var xmlhttp = false; if(typeof ActiveXObject != "undefined"){ try { xmlhttp = new ActiveXObject("Micro
Win32OLEã¨ã¯ Win32OLEã¯ãRuby1.8ããæ¨æºæ·»ä»ã¨ãªãã¾ããã Rubyããã¦ã³ãã¼ãããã°ããã®ä¸ã«å«ã¾ãã¦ãã¾ãã 1.8以éã¯ãã¡ãããå©ç¨ãã ããã Win32OLEã¯ãRubyããExcelãMS-Wordãªã©ãå©ç¨ããããã®æ¡å¼µã©ã¤ãã©ãªã§ãã Rubyã§VBAã«ä¼¼ãã¹ã¯ãªãããæ¸ããã¨ãã§ãã¾ãã require 'win32ole' excel = WIN32OLE.new('Excel.Application') excel.visible = TRUE workbook = excel.Workbooks.Add(); worksheet = workbook.Worksheets(1); worksheet.Range('A1:D1').value = ['North','South','East','West']; ãã¦ã³ãã¼ã (Ruby 1.
WindowsSDK å ã® `winerror.h` ã ä»ã®ã¨ã©ã¼ã³ã¼ãã£ã½ããããã¼ããã¨ã©ã¼ã³ã¼ãã£ã½ãã®ãæ½åºããFormatMessage() ã§æ¥æ¬èªåããã ãã®ãã®ã§ãï¼¾ï¼¾ï¼ çµæåºåãããç°å¢ã¯ Windows10 ver.1703 (Creators Update)ãå®è¡ãã¤ããªãçæããã®ã¯ VC2017 ã§ãã (2017-05-30 çµæåºåã WinXP SP2 ããæ´æ°ãã¾ããï¼ 12å¹´ã¶ãã«æ´æ°ãã¾ããï¼ å¿ãã¦ãªããï¼ï¼) åºåçµæã®ä¸ã§ "---" ã¨ãªã£ã¦ããã®ã¯ãã¡ãã»ã¼ã¸ã®åå¾ã«å¤±æãããã®ã§ã ããªã大ããªãã¼ãã«ãªã®ã§ã表示ãããã¾ã§æéãããããããã¾ãã (2.2MBãããããã¾ã) COMã«ã«ãã´ã©ã¤ãºãã¦ãå¾ãã®æ¹ã®çµæã¯COMã®ã«ãã´ãªãªã®ãæªãã FormatMessage() ã§åãåºãã¹ãã¨ã©ã¼ã³ã¼ããããªãã®ã¾ã§åãæ±ã£ã¦ããã
ã¯ã¬ã¸ããã«ã¼ãç¾éåã®é«éå çã®åªè¯åºãé¸ã¶ããã«ã¯ ã¯ã¬ã¸ããã«ã¼ãç¾éåã®åªè¯åºãé¸ã¶ãã¤ã³ãã¯ãæéçãã¹ãã¼ããããã¾ããããã®ã»ãã«ãè¦ã¦ãããããã¤ã³ããããã¾ãã ãéã«å³ãã人ãå©ç¨ãã¾ãã®ã§ãææ°æããã£ã³ãã¼ã³ã®æç¡ãä¾¡æ ¼äº¤æ¸ãã§ããæ¥è ã¨ãããã¨ã¯è¦ã¦ããããã¨ããã§ãã ããããã©ã®ãããªå 容ãªã®ã§ããããã ææ°æãç¡æã§ããã¯ã¬ã¸ããã«ã¼ãç¾éåã®æ¥è ã«ã¯ãææ°æããã¹ã¦ç¡æã§ãã¦ãããã¨ãããããã¾ãã æ¥è ã«ãã£ã¦ã¯ãåç´ã«ææ°æã¨ããåç®ã§æ¥è å´ã®å©çãã¨ããã¦ããããæ¯è¾¼ææ°æãäºåææ°æã¨ããåç®ã§å°é¡ãªãããéãããããã¨ãããã¾ãã ãã£ããé«ãæéçãè¨è¼ããã¦ãã¦ããææ°æã®åãå·®ãå¼ããããã¨ã§ãæããããããªæ°æã¡ã«ãªã£ããå¾ããæ°ã¥ããã¨ãããã¾ãã ãããã®ææ°æã¯æåããå ¬å¼ãã¼ã ãã¼ã¸ã«è¨è¼ãããå ´åã¯äºæ¿ããããã§ç³ãè¾¼ã¿ãã§ã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}