[ros-diffs] 01/01: [BOOTDATA][SHELL32] Add some recognized file extensions (.db, .efi, .nls, .ocx, .tlb, .nt), and update some reported MIME types. CORE-11308

2018-05-05 Thread Hermès Bélusca-Maïto
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=34b0f3e4f8e8d3e3061dd053c517f3daf07a91cd

commit 34b0f3e4f8e8d3e3061dd053c517f3daf07a91cd
Author: Hermès Bélusca-Maïto 
AuthorDate: Sat May 5 22:20:21 2018 +0200
Commit: Hermès Bélusca-Maïto 
CommitDate: Sat May 5 22:20:21 2018 +0200

[BOOTDATA][SHELL32] Add some recognized file extensions (.db, .efi, .nls, 
.ocx, .tlb, .nt), and update some reported MIME types.
CORE-11308
---
 boot/bootdata/hivecls.inf   | 68 -
 dll/win32/shell32/lang/bg-BG.rc |  7 +
 dll/win32/shell32/lang/ca-ES.rc |  7 +
 dll/win32/shell32/lang/cs-CZ.rc |  9 +-
 dll/win32/shell32/lang/da-DK.rc |  7 +
 dll/win32/shell32/lang/de-DE.rc |  9 +-
 dll/win32/shell32/lang/el-GR.rc |  7 +
 dll/win32/shell32/lang/en-GB.rc |  7 +
 dll/win32/shell32/lang/en-US.rc |  7 +
 dll/win32/shell32/lang/es-ES.rc |  7 +
 dll/win32/shell32/lang/et-EE.rc |  7 +
 dll/win32/shell32/lang/fi-FI.rc |  7 +
 dll/win32/shell32/lang/fr-FR.rc | 13 ++--
 dll/win32/shell32/lang/he-IL.rc |  9 +-
 dll/win32/shell32/lang/hu-HU.rc |  7 +
 dll/win32/shell32/lang/it-IT.rc |  7 +
 dll/win32/shell32/lang/ja-JP.rc |  7 +
 dll/win32/shell32/lang/ko-KR.rc |  7 +
 dll/win32/shell32/lang/nl-NL.rc |  7 +
 dll/win32/shell32/lang/no-NO.rc |  7 +
 dll/win32/shell32/lang/pl-PL.rc |  7 +
 dll/win32/shell32/lang/pt-BR.rc |  7 +
 dll/win32/shell32/lang/pt-PT.rc |  7 +
 dll/win32/shell32/lang/ro-RO.rc |  7 +
 dll/win32/shell32/lang/ru-RU.rc |  7 +
 dll/win32/shell32/lang/sk-SK.rc |  7 +
 dll/win32/shell32/lang/sl-SI.rc |  7 +
 dll/win32/shell32/lang/sq-AL.rc |  7 +
 dll/win32/shell32/lang/sv-SE.rc |  7 +
 dll/win32/shell32/lang/tr-TR.rc |  7 +
 dll/win32/shell32/lang/uk-UA.rc |  7 +
 dll/win32/shell32/lang/zh-CN.rc |  9 +-
 dll/win32/shell32/lang/zh-TW.rc |  7 +
 dll/win32/shell32/shresdef.h|  8 -
 34 files changed, 298 insertions(+), 16 deletions(-)

diff --git a/boot/bootdata/hivecls.inf b/boot/bootdata/hivecls.inf
index f368d4e3c5..a424bfcc09 100644
--- a/boot/bootdata/hivecls.inf
+++ b/boot/bootdata/hivecls.inf
@@ -20,6 +20,7 @@ 
HKCR,"Folder\shell\explore\command","",0x,"explorer.exe /e,""%1"""
 
 ; Clipboard Element
 HKCR,".clp","",0x,"clpfile"
+HKCR,".clp","Content Type",0x,"application/x-msclip"
 HKCR,"clpfile","",0x,"Clipboard Element"
 
HKCR,"clpfile","FriendlyTypeName",0x0002,"@%SystemRoot%\system32\clipbrd.exe,-121"
 HKCR,"clpfile\DefaultIcon","",0x0002,"%SystemRoot%\system32\clipbrd.exe,1"
@@ -78,6 +79,7 @@ HKCR,"cmdfile\shell\open\command","",0x,"""%1"" %*"
 
 ; DOS Applications
 HKCR,".com","",0x,"comfile"
+HKCR,".com","Content Type",0x,"application/x-msdos-program"
 HKCR,"comfile","",0x,"DOS Application"
 HKCR,"comfile","EditFlags",0x00010001,0x0010
 
HKCR,"comfile","FriendlyTypeName",0x0002,"@%SystemRoot%\system32\shell32.dll,-203"
@@ -100,8 +102,16 @@ HKCR,"curfile","",0x,"Cursor"
 
HKCR,"curfile","FriendlyTypeName",0x0002,"@%SystemRoot%\system32\shell32.dll,-205"
 HKCR,"curfile\DefaultIcon","",0x,"%1"
 
+; Database File
+HKCR,".db","",0x,"dbfile"
+HKCR,"dbfile","",0x,"Database File"
+HKCR,"dbfile","FriendlyTypeName",0x0002,"@%SystemRoot%\system32\shell32.dll,-220"
+HKCR,"dbfile","NoOpen",0x,""
+HKCR,"dbfile\DefaultIcon","",0x0002,"%SystemRoot%\system32\shell32.dll,-154"
+
 ; Dynamic Link Libraries
 HKCR,".dll","",0x,"dllfile"
+HKCR,".dll","Content Type",0x,"application/x-msdownload"
 HKCR,"dllfile","",0x,"Application Extension"
 HKCR,"dllfile","EditFlags",0x00010001,0x0001
 
HKCR,"dllfile","FriendlyTypeName",0x0002,"@%SystemRoot%\system32\shell32.dll,-206"
@@ -114,8 +124,17 @@ HKCR,"drvfile","",0x,"Device Driver"
 
HKCR,"drvfile","FriendlyTypeName",0x0002,"@%SystemRoot%\system32\shell32.dll,-207"
 
HKCR,"drvfile\DefaultIcon","",0x0002,"%SystemRoot%\system32\shell32.dll,-154"
 
+; Extensible Firmware Interface Executable
+HKCR,".efi","",0x,"efifile"
+HKCR,".efi","Content Type",0x,"application/octet-stream"
+HKCR,"efifile","",0x,"Extensible Firmware Interface Executable"
+HKCR,"efifile","FriendlyTypeName",0x0002,"@%SystemRoot%\system32\shell32.dll,-221"
+HKCR,"efifile","NoOpen",0x,""
+HKCR,"efifile\DefaultIcon","",0x0002,"%SystemRoot%\system32\shell32.dll,-154"
+
 ; Applications
 HKCR,".exe","",0x,"exefile"
+HKCR,".exe","Content Type",0x,"application/x-msdownload"
 HKCR,"exefile","",0x,"Application"
 HKCR,"exefile","EditFlags",0x00010001,0x0010
 
HKCR,"exefile","FriendlyTypeName",0x0002,"@%SystemRoot%\system32\shell32.dll,-208"
@@ -124,6 +143,29 @@ HKCR,"exefile\shell\open\command","",0x,"""%1"" %*"
 

[ros-diffs] 01/01: [IDL] srvsvc.idl: Fix the definition of Opnum29NotUsedOnWire

2018-05-05 Thread Eric Kohl
https://git.reactos.org/?p=reactos.git;a=commitdiff;h=c7994ca74f268995a0d2d9750828501044f0f6f9

commit c7994ca74f268995a0d2d9750828501044f0f6f9
Author: Eric Kohl 
AuthorDate: Sat May 5 15:32:05 2018 +0200
Commit: Eric Kohl 
CommitDate: Sat May 5 15:34:43 2018 +0200

[IDL] srvsvc.idl: Fix the definition of Opnum29NotUsedOnWire

Opnum29NotUsedOnWire is actually called NetrServerSetServiceBits.
See:
http://l.wzm.me/_security/internet/_internet/WinServices/ch04s07s08.html
and 
https://git.samba.org/?p=samba.git;a=blob;f=librpc/idl/srvsvc.idl;h=db804e58c01f3392c4ec6eb30643c36bcb8be683;hb=HEAD
---
 base/services/srvsvc/rpcserver.c   | 11 ---
 sdk/include/reactos/idl/srvsvc.idl | 10 +++---
 2 files changed, 15 insertions(+), 6 deletions(-)

diff --git a/base/services/srvsvc/rpcserver.c b/base/services/srvsvc/rpcserver.c
index ab96f2554f..e47eafb2c0 100644
--- a/base/services/srvsvc/rpcserver.c
+++ b/base/services/srvsvc/rpcserver.c
@@ -529,12 +529,17 @@ NetrRemoteTOD(
 }
 
 
-/* Function 29 */
-void
+/* Function 29 - Not used on wire */
+NET_API_STATUS
 __stdcall
-Opnum29NotUsedOnWire(void)
+NetrServerSetServiceBits(
+SRVSVC_HANDLE ServerName,
+WCHAR *Transport,
+DWORD ServiceBits,
+DWORD UpdateImmediately)
 {
 UNIMPLEMENTED;
+return ERROR_CALL_NOT_IMPLEMENTED;
 }
 
 
diff --git a/sdk/include/reactos/idl/srvsvc.idl 
b/sdk/include/reactos/idl/srvsvc.idl
index 1cd1bb5ec9..f8d1d6c54b 100644
--- a/sdk/include/reactos/idl/srvsvc.idl
+++ b/sdk/include/reactos/idl/srvsvc.idl
@@ -1220,10 +1220,14 @@ interface srvsvc
 [in, string, unique] SRVSVC_HANDLE ServerName,
 [out] LPTIME_OF_DAY_INFO *BufferPtr);
 
-// This method not used on the wire
-void
+/* Function 29 - Not used on wire */
+NET_API_STATUS
 __stdcall
-Opnum29NotUsedOnWire(void);
+NetrServerSetServiceBits(
+[in, string, unique] SRVSVC_HANDLE ServerName,
+[in, string, unique] WCHAR *Transport,
+[in] DWORD ServiceBits,
+[in] DWORD UpdateImmediately);
 
 NET_API_STATUS
 __stdcall