Click here to Skip to main content
15,895,746 members

Videos


Page 1 of 54
1 2 3 4 5 6 7 8 9 10


.

()
» »
Updated:
Rating: ()
1. Thank You for Your Service: Creating a Persistent Isolated Windows Service
Windows Services are powerful little beasts and encountering them is unavoidable when developing under Windows
Desktop Programming » Win32 »
Michael Haephrati Updated: 14 Feb 2024
Rating: 5.00/5 ( (18 votes))
2. How to use the FreeConole to close a console without closing the form?
There is another way I found that works. You just hide the console. Next time, you don't even need to 'unhide' it, but just to open it as usual. HWND console = GetConsoleWindow(); ShowWindow(console,1);
Programming Languages » C# 3.5 »
Michael Haephrati Updated: 10 Jan 2024
Rating: 2.18/5 ( (5 votes))
3. How to use the FreeConole to close a console without closing the form?
One option is to post a WM_QUIT message PostMessage(consoleWindow, WM_CLOSE, 0, 0);
Programming Languages » C# 3.5 »
Michael Haephrati Updated: 6 Jan 2024
Rating: 3.72/5 ( (4 votes))
.

()
» »
Updated:
Rating: ()
4. Want to bypass UAC prompt & move the file to system32
User Access Control, by design, should not be bypassed, otherwise, what's the point of having it in the first place? There are ways to bypass User Access control. All of them are based on Windows vulnerabilities which are exploited. Thankfully...
Batch » »
Michael Haephrati Updated: 15 Oct 2023
Rating: 1.24/5 ( (3 votes))
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
5. How do I get this code to work
The best solution I found is but it seems to be a flaw in std::format. #include #include #include #include #include #include #include #include std::string...
Programming Languages » C++20 »
Michael Haephrati Updated: 17 Sep 2023
Rating: 5.00/5 ( (3 votes))
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
.

()
» »
Updated:
Rating: ()
6. How to find multiple window handles from a process ID
The following code locates the handles of all windows per a given PID. #include #include void GetAllWindowsFromProcessID(DWORD dwProcessID, std::vector& vhWnds) { // find all hWnds (vhWnds) associated with a...
Desktop Programming » Win32 »
Michael Haephrati Updated: 24 Jul 2023
Rating: 2.78/5 ( (6 votes))
7. How do I get the local path of an office document using office automation
When the active document is part of the OneDrive folder, the return value is a URL, even though the document is stored locally. What I am looking for, is a solution to get the local path of the active document regardless of it being synced with...
Productivity Apps and Services » Microsoft Office » Office Automation
Michael Haephrati Updated: 27 Jun 2023
Rating: ( (No votes))
8. How do I get the local path of an office document using office automation
Here is a quick and dirty solution. OLECHAR* OfficeAutomation::GetActiveDocPath() { VARIANT result; VariantInit(&result); m_hr = OLEMethod(DISPATCH_PROPERTYGET, &result, m_pActiveDocument, (LPOLESTR)L"Path", 0); if (FAILED(m_hr))...
Productivity Apps and Services » Microsoft Office » Office Automation
Michael Haephrati Updated: 27 Jun 2023
Rating: 5.00/5 ( (1 vote))
9. How do I combine 2 (or more) styles in a cricheditctrl
I was trying to combine different styles in a CRichEditCtrl control but couldn't find out how. My goal: to send this string "Normal text:\n```some code```\nMore text\n" and have the 'some code' part shown differently. What I have tried: I...
Michael Haephrati Updated: 1 Jun 2023
Rating: ( (No votes))

Page 1 of 54
1 2 3 4 5 6 7 8 9 10