MCPcopy Create free account
hub / github.com/apache/arrow / GetHInstance

Function GetHInstance

cpp/src/arrow/flight/sql/odbc/odbc_impl/ui/window.cc:35–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33namespace config {
34
35HINSTANCE GetHInstance() {
36 TCHAR sz_file_name[MAX_PATH];
37 GetModuleFileName(NULL, sz_file_name, MAX_PATH);
38
39 // TODO: This needs to be the module name.
40 HINSTANCE h_instance = GetModuleHandle(sz_file_name);
41
42 if (h_instance == NULL) {
43 std::stringstream buf;
44 buf << "Can not get hInstance for the module, error code: " << GetLastError();
45 throw DriverException(buf.str());
46 }
47
48 return h_instance;
49}
50
51Window::Window(Window* parent, const wchar_t* class_name, const wchar_t* title)
52 : class_name_(class_name),

Callers 3

CreateMethod · 0.85
CustomWindowMethod · 0.85
~CustomWindowMethod · 0.85

Calls 2

DriverExceptionClass · 0.85
strMethod · 0.80

Tested by

no test coverage detected