C#
文章平均质量分 67
大地缸
这个作者很懒,什么都没留下…
展开
-
Ssh免密码登录
Thu, Dec 3, 2020This is an example link.在客户端执行ssh-keygen -t rsa将客户端id_rsa.pub 拷贝到服务器上 在服务器上执行cat id_rsa.pub >> ~/.ssh/autorized_keys修改服务器sshd_config配置StrictModes no PubkeyAuthentication yesAuthorizedKeysFile .ssh/authorized_keys...原创 2020-12-05 20:22:52 · 67 阅读 · 0 评论 -
C# 给指定应用程序发送Windows Message
using System;using System.Diagnostics;using System.IO;using System.Runtime.InteropServices;using System.Windows.Forms;namespace 发消息{ public partial class FrmMain : Form { public原创 2013-01-18 12:30:21 · 650 阅读 · 0 评论 -
C# 给指定应用程序发送消息
public partial class FrmMain : Form { public FrmMain() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) {原创 2013-01-16 19:16:15 · 670 阅读 · 0 评论 -
C# 调用C++动态链接库 之一 传入参数
请看。C++:编写C++库文件:// testdll.cpp : 定义 DLL 应用程序的导出函数。//#include "stdafx.h"#include "stdio.h"extern "C" void test(char* p){if(NULL != p){OutputDebugString(p);printf原创 2013-01-16 10:24:59 · 1709 阅读 · 0 评论 -
C#MPI 第一课 MPI HelloWord
using System;using MPI;namespace MPIHello{ /// /// HelloMpi程序 /// class HelloMpiProgram : IProgram { #region Implementation of IProgram /// /// 应用程序原创 2013-01-12 09:57:41 · 1487 阅读 · 1 评论 -
C#MPI 第二课 MPI 发送结构体
using System;using MPI;namespace MPIHello{ /// /// 测试发送结构体 /// class TestSendStructProgram : IProgram { /// /// 测试发送的结构 /// struct TestStruc原创 2013-01-12 09:59:05 · 2090 阅读 · 1 评论 -
C# Win32消息系列-SW
public enum ShowFlag { SW_HIDE =0, SW_SHOWNORMAL = 1, SW_NORMAL = 1, SW_SHOWMINIMIZED = 2, SW_SHOWMAXIMIZED = 3,原创 2013-01-13 10:27:28 · 665 阅读 · 0 评论 -
C# 管道通信 服务器
using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.Drawing;using System.Globalization;us原创 2013-01-13 10:15:43 · 760 阅读 · 0 评论 -
C# ping 局域网扫描
using System;using System.Collections.Generic;using System.Globalization;using System.Linq;using System.Net;using System.Net.NetworkInformation;using System.Net.Sockets;using System.Text;using原创 2013-01-12 09:53:34 · 848 阅读 · 0 评论 -
C# Win32消息系列--SC
public enum SysCmd { SC_SIZE = 0xF000, SC_MOVE = 0xF010, SC_MINIMIZE = 0xF020, SC_MAXIMIZE = 0xF030, SC_NEXTWINDOW = 0xF040, SC_PREVWINDOW = 0xF050,原创 2013-01-13 10:26:50 · 1566 阅读 · 0 评论 -
C# 导出Word文档中的所有图片
using System;using System.Drawing;using System.IO;using System.Windows.Forms;using NPOI.POIFS.FileSystem;using NPOI.XWPF.Extractor;using NPOI.XWPF.UserModel;namespace WordPictureExport{ p原创 2013-01-12 09:55:12 · 1310 阅读 · 1 评论