わいえむねっと

Contents
Categories
Calendar
2026/06
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Monthly Archives
~2000/01
Recent Entries
RSS1.0
Templates
Information
Processed: 0.052 sec
Chashed: -
2008/02/28 Thu
マスク三日目ですよ!
うがいぐすりも導入ですよ! 精査精査また精査。
直して増やして削って直して。直して削って消しすぎて。
壊れたように笑いながら島を一周して。
今日も元気。
2008/02/27 Wed
出社したら机が割れていました。小坂那也です。(挨拶)
えええ!?
手前から奥まできれーいに天板に亀裂。
昨晩この席でいったい何が。
まぁいいかと席に着き、お茶をすする。 マスク二日目ですよ! レジストリリダイレクトをねじ伏せるメモ。

Registry changes in x64-based versions of Windows Server 2003 and in Windows XP Professional x64 Edition
http://support.mi​crosoft.co​m/kb/896459
Registry redirection
To support the coexistence of 32-bit and 64-bit COM registration and program states, the WOW64 subsystem presents 32-bit programs by using another view of the registry. The WOW64 subsystem uses registry redirection to intercept registry calls at the bit level. Registry redirection also makes sure that the registry calls are directed to the correct branches in the registry.

When you install a new program or when you run a program on a Windows x64 Edition computer, registry calls made by 64-bit programs access the HKEY_LOCAL_MACHINE\Software registry sub key without redirection. WOW64 intercepts registry calls to HKEY_LOCAL_MACHINE\Software that are made by 32-bit programs, and then redirects them to the HKEY_LOCAL_MACHINE\Software\WOW6432node sub key. By redirecting only the 32-bit program calls, WOW64 makes sure that programs always write to the appropriate registry sub key. Registry redirection does not require program code modification, and this process is transparent to the user.

API対応状況は

RegCreateKeyEx Function (Windows)
http://msdn2.micr​osoft.com/en-us/library/ms724844.a​spx
samDesired
A mask that specifies the access rights for the key. For more information, see Registry Key Security and Access Rights.

Requirements
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.

RegOpenKeyEx Function (Windows)
http://msdn2.micr​osoft.com/en-us/library/ms724897.a​spx
samDesired
A mask that specifies the desired access rights to the key. The function fails if the security descriptor of the key does not permit the requested access for the calling process. For more information, see Registry Key Security and Access Rights.

Requirements
Client Requires Windows Vista, Windows XP, or Windows 2000 Professional.
Server Requires Windows Server 2008, Windows Server 2003, or Windows 2000 Server.

Registry Key Security and Access Rights (Windows)
http://msdn2.micr​osoft.com/en-us/library/ms724878.a​spx
KEY_WOW64_32KEY (0x0200) Indicates that an application on 64-bit Windows should operate on the 32-bit registry view. For more information, see Accessing an Alternate Registry View.
This flag must be combined using the OR operator with the other flags in this table that either query or access registry values.

Windows 2000: This flag is not supported.

KEY_WOW64_64KEY (0x0100) Indicates that an application on 64-bit Windows should operate on the 64-bit registry view. For more information, see Accessing an Alternate Registry View.
This flag must be combined using the OR operator with the other flags in this table that either query or access registry values.

Windows 2000: This flag is not supported.

RegDeleteKeyEx Function (Windows)
http://msdn2.micr​osoft.com/en-us/library/ms724847.a​spx
samDesired
An access mask the specifies the platform-specific view of the registry.

Value Meaning
KEY_WOW64_32KEY
0x0200
Delete the key from the 32-bit registry view.

KEY_WOW64_64KEY
0x0100
Delete the key from the 64-bit registry view.

Requirements
Client Requires Windows Vista or Windows XP Professional x64 Edition.
Server Requires Windows Server 2008 or Windows Server 2003 SP1.

となっており、

・RegCreateKeyExやRegOpenKeyExはsamDesiredの指定でリダイレクト回避可能だが、Windows 2000での動作が不定
・RegDeleteKeyExも同様だが、こちらはx64 EditionもしくはWindows Server 2003 SP1以降でないとAPIそのものが未サポート

とりあえず実験。空欄は未確認。

RegCreateKeyExRegCreateKeyEx(KEY_WOW64_64KEY)RegOpenKeyEx(KEY_WOW64_64KEY)
RegSetValueExRegSetValueExRegSetValueExRegDeleteKeyRegDeleteKeyEx(KEY_WOW64_64KEY)
2003(x64)SOFTWARE\Wow6432NodeSOFTWARESOFTWARESOFTWARE\Wow6432NodeSOFTWARE
2003(x32)SOFTWARESOFTWARE SOFTWARE 
XP(x32)SOFTWARESOFTWARE SOFTWARE×
2000SOFTWARESOFTWARE ××

どうもnot supportedなflagはただ無視されるというわけでもないようなので、x64かどうかを判別した上でセットするのが吉。
判別は

IsWow64Process Function (Windows)
http://msdn2.micr​osoft.com/en-us/library/ms684139.a​spx
Determines whether the specified process is running under WOW64.

で。

Requirements
Client Requires Windows Vista or Windows XP SP2.
Server Requires Windows Server 2008 or Windows Server 2003 SP1.

DLL Requires Kernel32.dll.

となっているので、Kernel32.dllをLoadLibraryしてGetProcAddresssすると吉。
2008/02/26 Tue
喉が腫れたのでマスク着用。
扁桃腺が脆弱なので、放っておくと血を吐きかねない。 What's New in WER (Windows)
http://msdn2.micr​osoft.com/en-us/library/bb513640(VS.85).aspx
Windows Server 2008 and Windows Vista SP1


The following list summarizes the new features of WER for Windows Server 2008 and Windows Vista Service Pack 1 (SP1).

WER can be configured so that full user-mode dumps are collected and stored locally after a user-mode application crashes. For more information, see Collecting User-Mode Dumps.



Collecting User-Mode Dumps (Windows)
http://msdn2.micr​osoft.com/en-us/library/bb787181(VS.85).aspx
These registry values represent the global settings. Per-process settings are also supported and will override the global settings. To create a per-process setting, create a new key under HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\Windows Error Reporting\LocalDumps with the application name (for example, App.exe) and add the desired registry values to this key.

あたりの動作を見るために、Windows Server 2008 RC1をダウンロード。

Windows Server 2008 Release Candidate 評価版ソフトウェア
http://www.micros​oft.com/japan/windowsser​ver2008/audsel.msp​x
2008/02/25 Mon
ソフトリミット変更したりrpmの動作確認とったりSPECファイル調整したり。 Memo:
http://www.linux.​or.jp/JM/html/LDP_man-pages/man2/getrlimit.​2.html
getrlimit() と setrlimit() はそれぞれ資源 (resource) の制限 (limit) の設定と取得を行う。各リソースには、それに対応するソフト・リミットとハード・リミットがある。

ソフト・リミットは、カーネルが対応するリソースに対して課す制限値である。ハード・リミットはソフト・リミットの上限として働く。

RLIMIT_CORE
core ファイルの最大サイズ。 0 の場合、core ファイルは生成されない。 0 以外の場合、このサイズより大きいダンプは切り詰められる。
2008/02/24 Sun
すごいだるい。
あと、すごい眠い。 これはあれですか、インフルエンザを感染されてしまったのですか。
でも、熱があるわけでもなく、ただただ、だるいだけなのです。
徹夜後のようなだるさなのです。
なのです。
そういえばここ数日ろくに寝ていなかったようなそんなような。
寝よう。
2008/02/23 Sat
引越し先の電気水道開始。
ガスはないのです。電気温水器なので。
というわけで、ガス使用開始の立会いはないかわりに電気温水器使用開始の立会い。
9時から10時で予約したような気がするのだけれど、10時を過ぎても一向に連絡がなく、荷物の運び込まれていない部屋でぼけと過ごす。
結局、来たのは11時近くになってから。
10時から11時の予約だったっけか?まぁいい。
電気温水器のメンテの話とかを聞いたりなんだり。 そして午後から会社へ。
自分の仕事を片付ける。
ついでに目の前にインフルエンザの人がいて調子悪くなったりする。
2008/02/22 Fri
昨日の仕様変更対応版をすぐだせやれだせとせっつかれたのでだす。
今週だけで3回とかリリースした気が。
あと、うちと関係のない不具合のレポートも3回くらい書かされた気が。
自分の仕事させてください。 というわけで明日は休出しようそうしよう。
2008/02/21 Thu
木曜です。二日酔いです。小坂那也です。(挨拶)
ウイスキーを飲みすぎた。 中国から送られてるメールは文章がなんだかよくわからないことが多いのですが、今日のこれはすぐに内容分かりましたよ!要するに仕様変更ってことですね?
ひとしきり笑って、少し毒を吐いて、鼻で笑って、対応着手して。
2008/02/20 Wed
http://www.asahi.​com/national/update/0218/TKY2008021​80363.html​
この手のサバは頻繁に食べてますよ。 東京電力カスタマーズセンターに電話。
使用開始の申し込み。
東京都水道局江戸川営業所に電話。

「おかけになった電話番号は、現在使われておりません」

えええ!?
不動産屋にもらった連絡先が間違ってただけでした。
2008/02/19 Tue
気分的には二日分寝ました。
そして二日分の寝癖がつきました。 良い内容なのか悪い内容なのかはともかくの続き。
そういえばここはこうしたほうが良かったよ!とかメールが。
ああ、確かに。と頷いて読み進めて。
それでも駄目なら状態を監視して適当なタイミングで再生成すればいいと思うよ!とか書いてあって盛大に噴く。
大変なことになってきたなぁー。(遠い目で) そんなこんなで午前中が過ぎて。
昼休みに委員会の書類をでっち上げて午後一で会議。
会議から戻るなりリリース準備を開始。
定時が過ぎたら更新されたライブラリのテストの準備。
なんだか社会人ぽいですね。