Golang教程网
Golang教程网
  • 博客首页
  • 实战学习Golang
  • 日常工作实战
  • 小程序实战开发
    • 微信小程序开发
    • 百度智能小程序开发
    • QQ小程序开发
    • 头条小程序开发
    • 支付宝小程序开发
  • 学习笔记
  • 搜索
Pywin32调用Window API很难?看这篇就知道了
发表于 2023-08-18

斌哥说大家好,我是斌哥。相信很多学习的Python的小伙伴都会遇到这样的难点:在Windows上开发Python项目,尽管Python的库成千上万,但是针对特殊情况,还是需要考虑到API来做特殊的需求。在Python上,window API调用大致分为2种方法。1、Python的第三方库:Pywin322、引用windowAPI动态链接库(将会在另一篇文章具体说明,包括指针

windows锁屏API
发表于 2023-08-18

public Form1( bool aLock ) { if (aLock) { //锁屏+关屏 LockWorkStation(); SendMessage( this.Handle, (uint)0x0112, (IntPtr)0xF170, (IntPtr)2 ); } else { //禁止鼠标键盘动作+关屏 BlockInput( true ); System

go对windowsapi的调用
发表于 2023-08-18

package main import ( "syscall" ) func abort(funcname string, err string) { panic(funcname + " failed: "+err) } func print_version(v uint32) { major := byte(v) minor := uint8(v >> 8) build :=

golang windows 判断锁屏
发表于 2023-08-18

package osapi import ( "syscall" "unsafe" "github.com/lxn/win" ) const ( DESKTOP_SWITCHDESKTOP = 0x0100 // The access to the desktop ) // get desktop locked status func ScreenIsLocked() bool { //

【Go 语言社区】转-golang windows 判断锁屏
发表于 2023-08-18

package osapi import ( "syscall" "unsafe" "github.com/lxn/win" ) const ( DESKTOP_SWITCHDESKTOP = 0x0100 // The access to the desktop ) // get desktop locked status func ScreenIsLocked() bool {

go windows锁屏 && 关闭桌面(杀掉文件资源管理器)
发表于 2023-08-18

锁屏 func lockScreen() { var args []string args = append(args, "user32.dll", "LockWorkStation") _, err := common.StartProcess("rundll32.exe", args...) if err != nil { common.Log

Windows锁屏图片API
发表于 2023-08-18

Windows的锁屏图片都很好看,很适合做桌面壁纸。Win11实际上有将Windows聚焦图片作为桌面壁纸的选项,但是可能是由于网络原因经常不能自动更新,于是就写了一个将Windows聚焦图片设为壁纸的小程序。又因为官方的API返回的json数据内容太多了,就精简了一下,写了这个API。API的使用说明和示例如下。API文档此API接收GET请求,并返回以下格式的json数据

Go使用WindowsApi笔记
发表于 2023-08-18

前言 在学Go相关的免杀,来提高木马的存活性,看到一些有意思的东西记下来 加载DLL syscall.NewLazyDLLsyscall.LoadLibrarysyscall.MustLoadDLL NewLazyDLL*LazyDLLLoadLibrary 创建函数 syscall.NewLazyDLL package mainimport ( "syscall" "unsafe")func

golang mac 获取当前应用程序目录,文件名,相对路径
发表于 2023-08-18

import{ "os/exec" "path/filepath" } //文件完整路径 filePath, _ := exec.LookPath(os.Args[0]) //文件相对路径 dirPath := filepath.Dir(osPath) //文件名 fileName := filepath.Base(osPath) 转载于:https://my

go 获取ip地址和mac地址
发表于 2023-08-18

func getMacAddrs() (macAddrs []string) { netInterfaces, err := net.Interfaces() if err != nil { fmt.Printf("fail to get net interfaces: %v", err) return macAddrs } for _, netInterface :=

第一页 上一页 1 ... 997 998 999 1000 下一页 尾页
友情链接: 免费取名网 安企CMS 商家收款码申请 AI学习网 Hello Web3
© 2025 Golang教程网, Created By 安企内容管理系统(AnqiCMS)