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
#pragma comment(lib, "winmm") | |
#pragma comment(lib, "ole32") | |
#include <sapi.h> | |
void main() | |
{ | |
HRESULT hr; | |
ISpVoice* pVoice; |
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 <atlbase.h> | |
#include <sapi.h> | |
void main() | |
{ | |
CComPtr<ISpVoice> cpVoice; | |
::CoInitialize(nullptr); | |
cpVoice.CoCreateInstance(CLSID_SpVoice); |
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
#pragma comment(lib, "user32") | |
#pragma comment(lib, "psapi") | |
#include <stdio.h> | |
#include <windows.h> | |
#include <psapi.h> | |
void main() | |
{ | |
HWND hWnd; |
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 <time.h> | |
void GetEorzeaTime(int *eHour, int *eMin) | |
{ | |
/* Get current time */ | |
time_t currentTime; | |
time(¤tTime); | |
/* Convert to Eorzea time */ |
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
#pragma comment (lib, "ole32") | |
#pragma comment (lib, "oleaut32") | |
#pragma comment (lib, "wbemuuid") | |
#include <stdio.h> | |
#include <windows.h> | |
#include <wbemidl.h> | |
void GetLastInputInfoFromWmi() | |
{ |
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> | |
#include <wtsapi32.h> | |
HANDLE CreateProcessActiveConsole(LPCTSTR app, LPTSTR cmd) | |
{ | |
static HANDLE hToken; | |
static STARTUPINFO si; | |
static PROCESS_INFORMATION pi; | |
ZeroMemory(&si, sizeof(STARTUPINFO)); |
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
/* for Devpkey */ | |
#define INITGUID | |
/* dependencies */ | |
#pragma comment (lib, "SetupAPI") | |
#include <windows.h> | |
#include <SetupAPI.h> | |
#include <Devpkey.h> | |
VOID SetDeviceState(LPCWSTR lpszHardwareId, DWORD dwState) |
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
using System.Windows.Automation; | |
// WINDOWS CREDENTIAL UI AUTOMATION by 3735943886 | |
/* | |
Credential Dialog Xaml Host | |
- TextBlock / WindowLogo / | |
- TextBlock / / Windows 보안 | |
- Button / CloseButton / 닫기 | |
- ScrollViewer / / |
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
/* dependencies */ | |
#pragma comment(lib, "dxva2") | |
#pragma comment(lib, "user32") | |
#include <lowlevelmonitorconfigurationapi.h> | |
typedef struct _MONITORPOWERPARAM | |
{ | |
LPCWSTR szPhysicalMonitorDescription; | |
BOOL bPowerOn; | |
} MONITOR_POWER_PARAM, *PMONITOR_POWER_PARAM; |
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
// float->half variants. | |
// by Fabian "ryg" Giesen. | |
// | |
// I hereby place this code in the public domain, as per the terms of the | |
// CC0 license: | |
// | |
// https://creativecommons.org/publicdomain/zero/1.0/ | |
// | |
// float_to_half_full: This is basically the ISPC stdlib code, except | |
// I preserve the sign of NaNs (any good reason not to?) |
NewerOlder