| 131 | } |
| 132 | |
| 133 | bool 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 | |
| 147 | bool PDFBridgeSumatra::StartDDEServer(const std::wstring &service, const std::wstring &topic) { |
| 148 | if (this->hDataNameService != nullptr) { // Already started |
no outgoing calls
no test coverage detected