?? 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 + -