MCPcopy Create free account
hub / github.com/OpenBoardView/OpenBoardView / InitializeDDE

Method InitializeDDE

src/openboardview/PDFBridge/PDFBridgeSumatra.cpp:133–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

131}
132
133bool PDFBridgeSumatra::InitializeDDE() {
134 if (this->idInst != 0L) { // Already initialized
135 return true;
136 }
137
138 UINT ret = DdeInitializeW(&this->idInst, DdeCallback, APPCLASS_STANDARD, 0);
139 if (ret != DMLERR_NO_ERROR) {
140 SDL_LogError(SDL_LOG_CATEGORY_ERROR, "PDFBridgeSumatra DDE initialization failed: 0x%04x", ret);
141 return false;
142 }
143
144 return true;
145}
146
147bool PDFBridgeSumatra::StartDDEServer(const std::wstring &service, const std::wstring &topic) {
148 if (this->hDataNameService != nullptr) { // Already started

Callers 2

OpenDocumentMethod · 0.95
ReverseSearchMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected