-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
114 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Runtime.InteropServices; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace CSDeskBand.Interop.COM | ||
{ | ||
[ComImport, Guid("6D67E846-5B9C-4db8-9CBC-DDE12F4254F1"), | ||
InterfaceType(ComInterfaceType.InterfaceIsIUnknown)] | ||
public interface ITrayDeskband | ||
{ | ||
[PreserveSig] | ||
int ShowDeskBand([In, MarshalAs(UnmanagedType.Struct)] ref Guid clsid); | ||
[PreserveSig] | ||
int HideDeskBand([In, MarshalAs(UnmanagedType.Struct)] ref Guid clsid); | ||
[PreserveSig] | ||
int IsDeskBandShown([In, MarshalAs(UnmanagedType.Struct)] ref Guid clsid); | ||
[PreserveSig] | ||
int DeskBandRegistrationChanged(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@echo OFF | ||
title Install DeskBand | ||
@echo ON | ||
@setlocal enableextensions | ||
@cd /d "%~dp0" | ||
|
||
rem Check permissions | ||
net session >nul 2>&1 | ||
if %errorLevel% == 0 ( | ||
echo Administrative permissions confirmed. | ||
) else ( | ||
echo Please run this script with administrator permissions. | ||
pause | ||
goto EXIT | ||
) | ||
|
||
if defined %PROGRAMFILES(x86)% ( | ||
rem use /unregister to uninstall | ||
%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\regasm.exe /nologo /codebase "Sample.Win.dll" | ||
) else ( | ||
%SystemRoot%\Microsoft.NET\Framework\v4.0.30319\regasm.exe /nologo /codebase "Sample.Win.dll" | ||
) | ||
pause |