| 26 | } |
| 27 | |
| 28 | std::wstring NppInterface::get_npp_directory() { |
| 29 | std::vector<wchar_t> npp_path(MAX_PATH); |
| 30 | send_msg_to_npp(NPPM_GETNPPDIRECTORY, MAX_PATH, reinterpret_cast<LPARAM>(npp_path.data())); |
| 31 | return npp_path.data(); |
| 32 | } |
| 33 | |
| 34 | bool NppInterface::is_allocate_cmdid_supported() const { |
| 35 | return send_msg_to_npp(NPPM_ALLOCATESUPPORTED) != 0; |