例 次のコード例は Windows フォームで使用できるように設計されており、Paint イベント ハンドラーのパラメーターである PaintEventArgseが必要です。 このコードは、ビットマップ内のピクセルの色を取得し、その色で四角形を塗りつぶします。 private: void GetPixel_Example( PaintEventArgs^ e ) { // Create a Bitmap object from an image file. Bitmap^ myBitmap = gcnew Bitmap( "Grapes.jpg" ); // Get the color of a pixel within myBitmap. Color pixelColor = myBitmap->GetPixel( 50, 50 ); // Fill a rectangle with p
すべて Microsoft 製品 Microsoft 365 Office Windows Surface Xbox セール サポート ソフトウェア Windows アプリ OneDrive Outlook Skype OneNote Microsoft Teams PC とデバイス Xbox を購入する アクセサリ VR & 複合現実 エンタメ Xbox Game Pass Ultimate Xbox Live Gold Xbox とゲーム PC ゲーム Windows ゲーム 映画とテレビ番組 法人向け Microsoft Azure Microsoft Dynamics 365 Microsoft 365 Microsoft Industry データ プラットフォーム Power Platform 法人向けを購入する Developer & IT .NET Visual Studio
プロフィール 働いたら負けかなと思っていたのですが。。とうとう働き始めました。アメリカのシアトル・エリアにある企業向けのバックアップソフトを開発している会社です。日本人は私だけ。なんとか。。やっていけてるようです。 目次 ホーム 連絡をする RSS Blog 利用状況 投稿数 - 546 記事数 - 0 コメント - 1700 トラックバック - 記事分類 過去の記事 2013年03月 (1) 2012年10月 (1) 2012年09月 (4) 2012年01月 (2) 2011年12月 (1) 2011年11月 (1) 2011年10月 (5) 2011年07月 (5) 2011年06月 (4) 2011年05月 (4) 2011年04月 (6) 2011年02月 (4) 2011年01月 (3) 2010年11月 (3) 2010年03月 (1) 2010年01月 (4) 2009年1
Windowsプログラムのメモリ確保は主にVirtualAlloc?()かHeapAlloc?()を使用します。GlobalAlloc?()などもありますが、過去のバージョンとの互換のためのものなので、こちらの使用は今後控えるべきでしょう。 さて、そうなるとVirtualAlloc?()とHeapAlloc?()の違いですが、どちらもメモリ確保とは言えども、使い道は大きく異なります。 まず結論から書けば、VirtualAlloc?()を使うならばHeapAlloc?()を使うべきです。もちろん分っていて VirtualAlloc?()を使っているならば問題はありません。 その理由としては、VirtualAlloc?()は一見するとページアウトしたりスワップ禁止にしたりと、便利そうではありますが、その分OSに負担がかかります。単純に速度が遅いとかそういうレベルの話ではありません。 Virt
最適化の為にはメモリの確保方法は工夫しなければならないと以前の記事にしましたが、Windowsプログラミングにおける工夫の1つをご紹介します。 Windowsにはメモリ確保の関数が多いですが、最低限以下の4つは特性を理解して使うべきです。 HeapAlloc VituralAlloc LocalAlloc/GlobalAlloc new (malloc) ・ HeapAlloc 異なるメモリブロックを多数作成するときに利用します。パフォーマンスを最大にしたい場合、同じブロック長のみで構成したヒープハンドルを複数作成する必要があります。 ・ VirtualAlloc また、多量のデータを格納する空間を用意する必要があるが、一部は利用しないかもしれない場合に重宝します(ハッシュテーブル等)。部分的に領域の確保を遅らせることが出来ます。多量のメモリを確保する場合は基本的にこの関数に頼るべきです。
Windows 95以降のWindowsでは,CD-ROMドライブに挿入したメディアを自動判別して適切なプログラムを実行するという自動再生の機能が提供されています。便利な機能ではあるのですが,ユーザーが望んでいなくても自動再生してしまうため,わずらわしく感じられる事が多いのも事実です。もちろんこの自動再生機能は無効化することができますが,Windowsのバージョンによってその方法はさまざまに異なっています。 Windows 95/98/Meでは,デバイスマネージャの画面から各ドライブ毎に自動再生を無効にする設定ができました。Windows NT/2000ではドライブ毎に設定することはできませんが,レジストリを変更することですべてのCD-ROMドライブについて一括して無効化することができました(リスト1)。 ;=== CD-ROMの自動再生を無効化 [HKEY_LOCAL_MACHINE\S
This browser is no longer supported. Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support. Security Briefs Protecting Your Code with Visual C++ Defenses Michael Howard Contents Stack-Based Buffer Overrun Detection (/GS) Safe Exception Handling (/SafeSEH) DEP Compatibility (/NXCompat) Image Randomization (/DynamicBase) Safer Function Calls C++
概要 Process Monitor はプロセスが行った処理 (ファイル システム、レジストリ、プロセスおよびスレッドの活動) をリアルタイムで表示するツールです。そのため、 Process Monitor はシステムのトラブルシューティングやマルウェア検出などに役立てることができます。 画面構成 Process Monitor は procmon.exe をダブルクリックして実行することで、利用開始できます。Process Monitor の画面構成は非常にシンプルで、コンピューター上で行われた処理内容が 1 行ずつ、上から順番に表示されます。処理の順番を確認できるので、どこまでの処理が成功していて、どこからの処理に失敗しているか、といったトラブルシューティングに役立てることができます。 使用法 Process Monitor を起動すると既定で記録が開始されます。開始と停止は capt
Created with ZoomIt Introduction Ever wondered which program has a particular file or directory open? Now you can find out. Process Explorer shows you information about which handles and DLLs processes have opened or loaded. The Process Explorer display consists of two sub-windows. The top window always shows a list of the currently active processes, including the names of their owning accounts, w
ファイルを削除や移動しようとしても、使用中になっていて操作できないことがある。このような場合は、どのプロセスやユーザーがどのファイルをオープンしているかを調査できると便利である。openfilesというコマンドを使うと、使用中のファイルや共有リソースの一覧を調べることができる。 解説 ファイルを削除したり、移動、更新しようとしても、何らかの理由でアクセスが拒否されることがある。原因のほとんどは、そのファイルを“誰か”がオープンしていたり、ロックしていて、移動や削除、変更などができないからである。だが、実際にだれがファイルを使用しているのかが分からないことも多い。特に、自分1人しか使っていないはずのマシンなのに、そして何もアプリケーションを起動していないはずなのに、どうしてもファイルを操作できない場合には、その原因を特定するのは困難である。たぶん、何らかのサービスかバックグラウンドで動作して
Windows 7は順調にシェアを伸ばしており、2010年7月にWindows Vistaを追い抜いた。 米調査会社Net Applicationsによると、世界OS市場における7月のWindows 7のシェアは14.46%、Vistaは14.34%。前月はWindows 7が13.70%、Vistaが14.68%だった。Windows 7は2009年10月にリリースされて以来、急ペースで伸びており、売り上げは1億5000万本を超えている。 しかしOS市場では今もWindows XPが圧倒的首位に立っており、61.87%のシェアを握っている。ただ、XPのシェアも2009年10月には70%だったのが徐々に減少している。 世界OS市場シェア OS 7月 6月 5月 4月 3月 Windows XP
明日は帰る。 続き。 まず、ソフトウェア割り込みを使ったWindowsでのシステムコール呼び出しは、Linux等の方法と大体一緒だ。eaxレジスタにシステムコール番号を入れて、ソフトウェア割り込みをかけてやればよい。割り込み番号は0x2e。引数は全てスタックに積んでおく。 pushl *** # なんか引数 movl $0x***, %eax # *** = システムコール番号 int $0x2eシステムコール番号は、http://www.metasploit.com/users/opcode/syscalls.htmlが参考になる。 で、ここで少し問題になるのが、機能とシステムコールの対応だ。ここらへんは、多分、名前から機能推測、って方法しかないかもしれない。あとは、ReactOSのソース(/ntoskrnl以下)見るとか。 んで、昨日のソース。あれは、「自分自身を終了するプログラム」。
Welcome to Immunity Debugger Download Immunity Debugger Here! Request, Support, Ideas or New updates. Access the Immunity Debugger forum Immunity Debugger is a powerful new way to write exploits, analyze malware, and reverse engineer binary files. It builds on a solid user interface with function graphing, the industry's first heap analysis tool built specifically for heap creation, and a large a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く