This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Exdisp.h> | |
#import <shdocvw.dll> | |
#import <mshtml.tlb> | |
#define URL L"https://www.google.co.jp/?gws_rd=ssl" | |
HRESULT test() | |
{ | |
HRESULT hr = S_OK; | |
try{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private Declare PtrSafe Function CoGetApartmentType Lib "Ole32" (pAptType As Long, pAptQualifier As Long) As Long | |
Sub hoge() | |
Dim arg1&, arg2&, hr& | |
hr = CoGetApartmentType(arg1, arg2) | |
Debug.Print Hex$(hr), arg1, arg2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Declare PtrSafe Function DispInvoke Lib "OleAut32" _ | |
(ByVal arg1 As LongPtr, _ | |
ByVal arg2 As LongPtr, _ | |
ByVal arg3 As Long, _ | |
ByVal arg4 As Integer, _ | |
arg5 As Any, _ | |
arg6 As Variant, _ | |
arg7 As Any, _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Private Type GUID | |
Data1 As Long | |
Data2 As Integer | |
Data3 As Integer | |
Data4(0 To 7) As Byte | |
End Type | |
Private Declare PtrSafe _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Exdisp.h> | |
#import <shdocvw.dll> | |
#import <mshtml.tlb> | |
#using <System.Windows.Forms.dll> | |
using namespace System; | |
using namespace System::Windows::Forms; | |
using namespace System::Reflection; | |
using namespace System::Runtime::InteropServices; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <windows.h> | |
#using <C:\\Windows\\System32\\gfxSrvc.dll> | |
#using <System.Windows.Forms.dll> | |
using namespace System; | |
using namespace System::Windows::Forms; | |
using namespace System::Reflection; | |
using namespace System::Runtime::InteropServices; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Option Explicit | |
Const FIND_FIRST_EX_LARGE_FETCH = 2& 'Win7以降 | |
Const FindExInfoStandard = 0& | |
Const FindExInfoBasic = 1& 'Win7以降 | |
Const FindExSearchLimitToDirectories = 1& | |
Private Declare PtrSafe Function FindFirstFileExW Lib "kernel32" _ | |
(ByVal lpFileName As LongPtr, _ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define UNICODE | |
#include <windows.h> | |
#include <KtmW32.h> | |
#pragma comment(lib, "KtmW32.lib") | |
int CALLBACK WinMain( | |
_In_ HINSTANCE hInstance, | |
_In_ HINSTANCE hPrevInstance, | |
_In_ LPSTR lpCmdLine, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define UNICODE | |
#include <windows.h> | |
#include <Shlwapi.h> | |
#include <oleacc.h> | |
#include <Exdisp.h> | |
#import <shdocvw.dll> | |
#import <mshtml.tlb> | |
#define URL L"https://www.google.co.jp/?gws_rd=ssl" | |
_COM_SMARTPTR_TYPEDEF(IAccessible, __uuidof(IAccessible)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Exdisp.h> | |
#import <shdocvw.dll> | |
#include <mshtml.h> | |
#import <mshtml.tlb> | |
#include <Shlwapi.h> | |
#define URL L"https://www.google.co.jp/?gws_rd=ssl" | |
HRESULT test() | |
{ |