Export registry hive to a REG file

完了済み 投稿 Sep 16, 2007 着払い
完了済み 着払い

I need an MFC application, which reads a Registry Folder and exports it to a .reg file, which has the same format as if eported by regedit. The registry folder is: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VCOMM] The following the 4 lines should be removed from the reg file: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VCOMM\Enum] "0"="Root\\LEGACY_VCOMM\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001 The reason for Step 2, is to allow the created .reg file to import into NT4, as well as later versions of Windows (2000/XP, etc). I should clarify that if you read the registry using normal APIs, then it should simply create the first line in the text file as "REGEDIT4", followed by a blank line, because the text "Windows Registry Editor Version 5.00" will not exist unless you export using regedit. It needs to work one of these two ways: 1. Search for the first line of the block which contains this: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VCOMM\Enum] Delete this line, and also the 3 lines below it. or: 2. Search for this block of 4 lines, which are all in a row (next to each other), and delete the entire block: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VCOMM\Enum] "0"="Root\\LEGACY_VCOMM\\0000" "Count"=dword:00000001 "NextInstance"=dword:00000001 Basicly, the code should work something like this: a. Read the entire registry hive into memory (buffer 1). b. Allocate a second buffer for the modified file (buffer 2). c. Write the text "REGEDIT4",LF,CR,LF,CR to buffer 2. d. Read one line of text from buffer 1. e. Compare the line read with the string: [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VCOMM\Enum] f. If it does not match, then copy this line to buffer 2. If if matches, then skip this line, and skip the next 3 lines. g. loop to (d) until you reach the end of buffer 1. h. write buffer 2 to a file (allowing the user to choose the path+name).

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Windows XP

C プログラミング エンジニアリング マイクロソフト MySQL PHP ソフトウェアアーキテクチャ ソフトウェアテスト ウィンドウズデスクトップ

プロジェクトID: #3299675

プロジェクトについて

3個の提案 リモートプロジェクト アクティブ Sep 16, 2007

アワード:

zsoftwareteam

See private message.

$7 USD 3日以内
(12レビュー)
2.3

3人のフリーランサーが、平均$15 で、この仕事に入札しています。

timesongvw

See private message.

$15.3 USD 3日以内
(7件のレビュー)
3.6
rerunvw

See private message.

$21.25 USD 3日以内
(0件のレビュー)
0.0