📄 vxd.cpp
字号:
/* WATCOM Interface Generator Version 1.0 */
/* This file contains code generated by PowerBuilder.
* Do not modify code delimited by comments of the form:
* // $PB$ -- begin generated code for object <>. Do not modify this code
* // $PB$ -- end generated code for object <>.
* This file contains the bodies the functions for your user object.
*/
#include <pbdll.h>
#include <conio.h>
#include "vxd.hpp"
#include <winioctl.h>
#include "app.h"
HANDLE hDevice;
// $PB$ -- begin generated code for object <vxd>. Do not modify this code
#if 1
char * vxd::loadvxd( long hwnd ) {
// $PB$ -- end generated code for object <vxd>.
//==================================
hDevice = CreateFile("\\\\.\\MOUSE.VXD", 0,0,0,CREATE_ALWAYS, FILE_FLAG_DELETE_ON_CLOSE, 0);
if (hDevice == INVALID_HANDLE_VALUE) return ("VxD加载失败");
if (!DeviceIoControl(hDevice, PASS, NULL, hwnd, NULL, 0, NULL, NULL)) return ("VxD调用失败");
return ("VxD加载成功");
}
#endif // PowerBuilder code, do not remove
// $PB$ -- begin generated code for object <vxd>. Do not modify this code
#if 1
void vxd::unloadvxd( ) {
// $PB$ -- end generated code for object <vxd>.
//==================================
CloseHandle(hDevice);
}
#endif // PowerBuilder code, do not remove
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -