1 unit Unit001; 2 3 interface 4 5 uses 6
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants,
System.Classes, Vcl.Graphics, 7 Vcl...
分类:
其他好文 时间:
2014-05-26 22:46:15
阅读次数:
221
服务器: 1 #include "stdafx.h" 2 #include 3
#include 4 #include 5 #include 6 7 #define BUFSIZE 512 8 9 DWORD WINAPI
InstanceThread(LPVOI...
分类:
其他好文 时间:
2014-05-24 00:06:39
阅读次数:
418
#include "stdafx.h"#include#include#includeusing
namespace std;DWORD WINAPI thread1(LPVOID param){ char buf[256]; DWORD rlen=0;
HANDLE hPipe ...
分类:
其他好文 时间:
2014-05-23 23:13:19
阅读次数:
304
DWORD WINAPI mythread( LPVOID lpParameter) //客户线程{ struct My my; memcpy(&my,lpParameter,sizeof(My)); printf("One client connect!\n"); char str1; ......
分类:
其他好文 时间:
2014-05-22 06:31:02
阅读次数:
319
1.要求以管理员身份运行
在vs工程属性中,Linker ---> Manifest File---> UAC Execution Level,选择requireAdministrator (/level='requireAdministrator')选项
2.在main函数开始时运行以下函数代码:
BOOL WINAPI EnablePriv...
最近也学学这些,争取把所有东东都串起来。#include #include int
WINAPI WinMain( HINSTANCE hInstance, HINSTANCE PrevInstance, LPSTR lpCmdLine,
int nCmdShow ){...
Inject.h#pragma oncetypedef DWORD (WINAPI
*PFNTCREATETHREADEX)( PHANDLE ThreadHandle, ACCESS_MASK DesiredAccess, ...
unit Unit1;interfaceuses Winapi.Windows,
Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, V.....
方法2unit Unit1;interfaceuses Winapi.Windows,
Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, ...
分类:
移动开发 时间:
2014-05-09 08:45:39
阅读次数:
315