原创 第二章 Windows API

1.常用的Windows數據類型 #include <windows.h> #include <stdio.h> /* ************************************ * 功能 Windows 數據類型

原创 C語言 獲取網頁內容

參考來源:https://blog.csdn.net/xiahn1a/article/details/41680959 vc6 上編譯通過 #include <winsock.h> #include <stdio.h> #prag

原创 字體設置對話框

#include <windows.h> #include <commdlg.h> #include <stdio.h> typedef struct { int bold; int italic; i

原创 告別2019!

HELLO!2020!

原创 Git 精簡命令

# 初次安裝完配置 git config --global user.name "你的用戶名" git config --global user.email 你的郵箱 git config --global core.quotep

原创 TCC 編譯 Lua

run.bat @echo off set FP=src cd /d %~dp0 PATH="%cd%" for /f %%i in ('dir /b "%FP%\*.c"') do ( if %%i neq luac.c (ca

原创 C語言 獲取 Windows 版本

//獲取windows版本信息 #define Is2k() (g_uWinVer >= 0x0500) #define IsXP() (g_uWinVer >= 0x0501) #define IsVista() (

原创 BASE58 編碼 解碼 C語言 (比特幣)

#include <stdio.h> #include <stdlib.h> #include <string.h> char *en_base58(unsigned char *input) // 編碼 { stat

原创 C語言 HexDump

#include <stdio.h> // 內存查看 void hexDump(const unsigned char *data, size_t size) { int i; size_t offset = 0

原创 C語言 時間戳轉換

#include "stdio.h" #include "time.h" #include "string.h" char *t2t(time_t tick) { struct tm tm; static char

原创 CSDN 頁面一直自動刷新

好長時間沒寫博客了,打算更新點東西,結果卡在博客這個頁面一直不停的刷新,起初以爲是電腦問題,結果重啓無果。然後簡單百度了一下,發現也有人最近碰上這個問題,按照博主給出的方法,清空緩存 試了下,果然可以正常訪問了,誒。 火狐瀏覽器

原创 Everything SDK 使用

#include <stdio.h> #include "Everything.h" int main(int argc,char **argv) { DWORD i; Everything_SetSearch("hello

原创 C語言 PE文件獲取自身大小

#include <windows.h> #include <stdio.h> DWORD GetPEFileRealSize(LPCTSTR lpszFile) { DWORD dwSize = 0; int i = 0

原创 C語言 打印函數

可變參數 #include <stdio.h> #include <stdarg.h> void my_print(int n, char *fmt, ...) { char printf_buf[128] = {0}; v

原创 BAT 腳本

:: 關閉回顯 @echo off :: 設置控制檯行列,顏色 mode con cols=100 lines=30 & color 0a :: 設置參數 set param=1234 echo %param% :: 獲取傳