📄 obexexec.cxx
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/**************************************************************************/
/* obexExe.cpp */
/* */
/* This file contains code to run ShellExecuteEx on a file. Its intended*/
/* to be used with the default inbox with OBEX */
/* */
/* Other related files: */
/* ContUtils.cpp -- Contact utilities */
/* */
/**************************************************************************/
#include <windows.h>
#include <stdio.h>
#include <tchar.h>
#include <winsock.h>
/*****************************************************************************/
/* DllMain */
/* just diable thread library calls */
/*****************************************************************************/
BOOL APIENTRY DllMain(HANDLE hInst, DWORD dwReason, LPVOID lpReserved)
{
if (dwReason == DLL_PROCESS_ATTACH)
DisableThreadLibraryCalls((HMODULE)hInst);
return TRUE;
}
BOOL OBEXInboxClient(LPCTSTR objectName)
{
SHELLEXECUTEINFO sei;
memset(&sei,0,sizeof(SHELLEXECUTEINFO));
sei.cbSize = sizeof(SHELLEXECUTEINFO);
sei.fMask = 0;
sei.hwnd = 0;
sei.lpVerb = NULL;
sei.lpFile = (WCHAR *)objectName;
sei.nShow = SW_SHOWNORMAL;
ShellExecuteEx(&sei);
return FALSE;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -