Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <Windows.h>
- #include <sstream>
- #include <iostream>
- int main(int argc, char* argv[])
- {
- std::wostringstream stream;
- for (unsigned int i = 1; i < argc; ++i) {
- stream << argv[i] << L" ";
- }
- std::wstring string = stream.str().c_str();
- std::wcout << L"git-remote-bzr.exe invoked with arguments: \"" << string << L"\"." << std::endl;
- SHELLEXECUTEINFO info;
- info.cbSize = sizeof(info);
- info.fMask = SEE_MASK_NOASYNC | SEE_MASK_NOCLOSEPROCESS | SEE_MASK_NO_CONSOLE;
- info.lpVerb = L"open";
- info.lpFile = L"git-remote-bzr.py";
- info.lpParameters = string.c_str();
- info.lpDirectory = 0;
- info.lpIDList = 0;
- info.lpClass = 0;
- std::wcout << ShellExecuteEx(&info);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement