programming help

About this tag
The programming help tag on WindowsForum.com covers practical coding challenges faced by developers working with Windows systems. Discussions include batch file renaming with specific rules, identifying sorting algorithms in C++ code, troubleshooting access violations when iterating SCSI devices, resolving CreateFile handle errors for storage devices, and retrieving USB drive letters on Windows 7 using WMDM. These threads focus on real-world debugging, system-level programming, and algorithm analysis, often involving Windows API calls and file system operations. The tag is a resource for developers seeking assistance with code that interacts with Windows hardware, storage, and file management.
  1. T

    Windows 11 How Can I Replace First Hyphen in a Folder's Name but Leave All Other Hyphens in it Unchanged?

    Hello and Happy New Year. I’d like some advice and suggestions on how to perform a specific task involving batch renaming a large group of folders. I want to rename over 5,000 folders a certain way. I don’t have to rename them all at once. They are all in one central folder, at least for now...
  2. Alex Sokolek

    What sort algorithm is this?

    Hi. Does anyone recognize this sort algorithm? BOOL swap; tagFileNode* TempNode; int i, j, diff = 0; for (j = _NodeCount / 2; j > 0; j /= 2) { swap = true; while (swap) { swap = false; for (i = 0; i + j < _NodeCount; ++i) { if (compare(_NodeList[i...
  3. E

    Windows 10 Access Violation When Iterating Through SCSI Slots

    I am getting an access violation when iterating through SCSI HDD's. I'm sure I'm doing something that needs a minor tweak to get it to work properly. Anyone have any ideas on why I'm getting an access violation every time? HANDLE handle = CreateFile("\\\\.\\PhysicalDrive1", GENERIC_READ |...
  4. E

    Windows 10 Cannot Create Handle to Storage Device Using CreateFile Function

    I cannot open a handle to any of my storage devices. HANDLE h = CreateFile(L"\\\\.\\PhysicalDisk0", GENERIC_READ | GENERIC_WRITE, FILE_READ_ACCESS | FILE_WRITE_ACCESS, 0, OPEN_EXISTING, 0, 0); I also tried copying the full path from WinObj: \GLOBAL??\PhysicalDrive0 and...
  5. whoosh

    VIDEO Take A Longer Length Of String

    :p
  6. A

    Windows 7 How to get drive letter of USB device on Win7

    Using WMDM I have created a small application to read portable device information, my application works fine on vista and XP but has one problem on Win7. Problem: I am not able to get drive letter of USB device. I am calling GetName of IWMDMDevice interface, on XP & VISTA this API returns...
Back
Top