论安全萌新的自我修养

   :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2021年2月9日

摘要: #ifndef UNICODE #define UNICODE #endif #pragma comment(lib, "mpr.lib") #include <windows.h> #include <tchar.h> #include <stdio.h> #include <Winnetwk.h 阅读全文
posted @ 2021-02-09 21:42 Yangsir34 阅读(337) 评论(0) 推荐(0) 编辑

摘要: #ifndef UNICODE #define UNICODE #endif #pragma comment(lib, "mpr.lib") #include <windows.h> #include <tchar.h> #include <stdio.h> #include <Winnetwk.h 阅读全文
posted @ 2021-02-09 21:41 Yangsir34 阅读(677) 评论(0) 推荐(0) 编辑

摘要: 普通版本 #include <stdio.h> #include <Windows.h> #include <lmaccess.h> #pragma comment(lib, "Netapi32.lib") //wmain是main函数的宽字符版本 在Unicode编码下使用 int wmain(i 阅读全文
posted @ 2021-02-09 21:38 Yangsir34 阅读(169) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h> #include <Windows.h> #include <lmaccess.h> #pragma comment(lib, "Netapi32.lib") //wmain是main函数的宽字符版本 在Unicode编码下使用 int wmain(int ar 阅读全文
posted @ 2021-02-09 17:57 Yangsir34 阅读(255) 评论(0) 推荐(0) 编辑

摘要: #include <stdio.h> #include <Windows.h> #include <lmaccess.h> #pragma comment(lib, "Netapi32.lib") //wmain是main函数的宽字符版本 在Unicode编码下使用 int wmain(int ar 阅读全文
posted @ 2021-02-09 17:55 Yangsir34 阅读(255) 评论(0) 推荐(0) 编辑

摘要: 定义窗口结构wndclass、注册窗口类registerclass、创建窗口createwindow、显示窗口showwindow、更新窗口updatewindow、消息循环getmessage-translatemessage-dispatchmessage windows窗口是基于窗口类来创建的 阅读全文
posted @ 2021-02-09 14:21 Yangsir34 阅读(430) 评论(0) 推荐(0) 编辑

摘要: CreateFile:获得一个已存在文件句柄或者新建文件句柄 HANDLE CreateFileW( LPCWSTR lpFileName,//文件路径 DWORD dwDesiredAccess,//文件的访问控制,读GENERIC_READ、写GENERIC_WRITE,读写(GENERIC_R 阅读全文
posted @ 2021-02-09 14:19 Yangsir34 阅读(170) 评论(0) 推荐(0) 编辑