On the french forum, I got some code to read any sector of a disk, physical, or logical.
See SectorReader
Compile and have fun...
Search found 35 matches
- Sun Jan 14, 2024 9:47 am
- Forum: Windows
- Topic: SectorReader
- Replies: 0
- Views: 653
- Sun Jan 14, 2024 9:31 am
- Forum: Windows
- Topic: Windows service
- Replies: 17
- Views: 9125
Re: Windows service
It seems that my web server did not like the zip files package.
It is now a .rar file.
To dowload all files together, goto A Windows service that start a GUI application launcher
Rename able.purebasic to able.rar and use purebasic as password.
It is now a .rar file.
To dowload all files together, goto A Windows service that start a GUI application launcher
Rename able.purebasic to able.rar and use purebasic as password.
- Wed Jun 28, 2023 2:02 am
- Forum: Windows
- Topic: Search file system like "Everything" app?
- Replies: 15
- Views: 2681
Re: Search file system like "Everything" app?
Everything got his speed by indexing and reading $MFT if my memory is right. About $MFT, you may have a look at powerbasic code to get MFT filenames . This will give you an idea on how to access it. It should be not to hard to convert to purebaba. Here it is in action... https://drive.google.com/uc?...
- Tue May 16, 2023 9:05 am
- Forum: Windows
- Topic: #PB_Window_ScreenCentered issue
- Replies: 3
- Views: 779
Re: #PB_Window_ScreenCentered issue
What you got is normal. As Fred said, #PB_Window_ScreenCenter centers the window on the main monitor. To work on a multi monitors setup, you will need more work. Here some api that you might find useful to connect a window and a monitor. > MonitorFromPoint(), MonitorFromRect(), MonitorFromWindow(). ...
- Tue Feb 07, 2023 9:49 am
- Forum: Windows
- Topic: C++ conversion of interactive process
- Replies: 19
- Views: 1750
Re: C++ conversion of interactive process
Hi tatanas, yes, it will work only when started from a service. At least, for experimenting or expanding, I think this last version is more clean and robust. Sadly, I guess it won't be enough in your context. Above posts from JHPJHP and you seems to reveal this. About replacing CreateProcessAsUser w...
- Tue Feb 07, 2023 4:27 am
- Forum: Windows
- Topic: C++ conversion of interactive process
- Replies: 19
- Views: 1750
Re: C++ conversion of interactive process
tatanas & JHPJHP,
I did a complete rewrite of the code, starting from scratch using the original C++ program.
I tried to keep the same coding style, so it is easy to compare both sources.
The updated the beast is in my first post.
Works as intended on my side. Yours to try...
I did a complete rewrite of the code, starting from scratch using the original C++ program.
I tried to keep the same coding style, so it is easy to compare both sources.
The updated the beast is in my first post.
Works as intended on my side. Yours to try...
- Thu Feb 02, 2023 7:43 pm
- Forum: Windows
- Topic: C++ conversion of interactive process
- Replies: 19
- Views: 1750
Re: C++ conversion of interactive process
tatanas: Too bad the PsExec source is not available... A quick note: Are you aware of PAExec source, clone of PsExec Added: Code in my first post was updated with EnableExplicit. I did set the type of all variables and made some more modifications. Program should be more robust, without the FreeLogo...
- Thu Feb 02, 2023 6:38 am
- Forum: Windows
- Topic: C++ conversion of interactive process
- Replies: 19
- Views: 1750
Re: C++ conversion of interactive process
About FreeLogonSID, I had some GPF, the absence of "*" is the left over result of some try I did. It's now set back to a *Pointer as it should. About CreateProcessWithLogonW, I'm with you, I went back to CreateProcessAsUser. Before calling CreateProcessAsUser I call AdjustTokenPrivileges w...
- Mon Jan 30, 2023 10:02 pm
- Forum: Windows
- Topic: C++ conversion of interactive process
- Replies: 19
- Views: 1750
Re: C++ conversion of interactive process
In my context, i didn't have success with CreateProcessAsUser_() even with SeIncreaseQuotaPrivilege and SeAssignPrimaryTokenPrivilege privileges. Still more work to do on this. I replaced CreateProcessAsUser_() with CreateProcessWithLogonW() and it seems to work fine... As always, LogonUser_ and Cre...
- Mon Jan 30, 2023 8:40 pm
- Forum: Windows
- Topic: C++ conversion of interactive process
- Replies: 19
- Views: 1750
Re: C++ conversion of interactive process
I got this working... Still not enough... Going back to the drawing board... Protected TokenPriv.TOKEN_PRIVILEGES TokenPriv\PrivilegeCount = 1 LookupPrivilegeValue_(#Null, "SeIncreaseQuotaPrivilege", TokenPriv\Privileges[0]\Luid) ;SE_INCREASE_QUOTA_NAME = "SeIncreaseQuotaPrivilege&quo...
- Mon Jan 30, 2023 7:42 pm
- Forum: Windows
- Topic: C++ conversion of interactive process
- Replies: 19
- Views: 1750
Re: C++ conversion of interactive process
Hey, On my side, I thought OutputDebugString_ reported only successfull action. I missed the CreateProcessAsUser_() error. Not sure about the Debug(), maybe some conflict since this code goes goes deep in some aspect. As a try, you may download Sysinternals's debugview I may have some time today, wi...
- Sun Jan 29, 2023 5:26 am
- Forum: Windows
- Topic: C++ conversion of interactive process
- Replies: 19
- Views: 1750
Re: C++ conversion of interactive process
Hi tatanas, Good to read you again. I did some small modifications to your code. In the hope that it will help a little... Double check, I might have missed some points... Of course, for lurkers, LogonUser name and password have to be set... Take care, Pierre [Complete rewrite using the original C++...
- Mon Jun 13, 2022 3:39 pm
- Forum: Windows
- Topic: GetFileDate returns wrong time after DaylightSaving change
- Replies: 23
- Views: 9077
Re: GetFileDate returns wrong time after DaylightSaving change
Why is it necessary to convert it "again" via the FileTimeToInternationalTime(File_Time) procedure? A little late since last May, still... In fact, it is not necessary, for me the point was to convert a FileTime variable to another FileTime variable.Wich is done via FileTimeToSystemTime()...
Re: Jumplist
For reference, here is a link to Microsoft about this... How to Create Dynamic Jump Lists
- Mon Dec 21, 2020 4:32 am
- Forum: Windows
- Topic: Windows service
- Replies: 17
- Views: 9125
Re: Windows service
Satisfy curiosity is the main purpose... :-) The three significant aspects of this code are, how to code a service, get System account rights, and start a GUI from a service. As is, it give super power to an application of your choice. For example, if you want to access the registry HKEY_LOCAL_MACHI...