Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. PathYetAnotherMakeUniqueName

PathYetAnotherMakeUniqueName

Scheduled Pinned Locked Moved The Weird and The Wonderful
questioncomadobejsonarchitecture
6 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    Brisingr Aerowing
    wrote on last edited by
    #1

    PathYetAnotherMakeUniqueName function (shlobj_core.h) - Win32 apps | Microsoft Docs[^] Even MS has trouble naming things.

    What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

    R D S 3 Replies Last reply
    0
    • B Brisingr Aerowing

      PathYetAnotherMakeUniqueName function (shlobj_core.h) - Win32 apps | Microsoft Docs[^] Even MS has trouble naming things.

      What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

      R Offline
      R Offline
      raddevus
      wrote on last edited by
      #2

      That's truly nutty. Check out the name of the 4th param to the other make unique filename function:

      BOOL PathMakeUniqueName(
      [out] PWSTR pszUniqueName,
      UINT cchMax,
      [in] PCWSTR pszTemplate,
      [in, optional] PCWSTR pszLongPlate,
      [in, optional] PCWSTR pszDir
      );

      Long Pointer to a null terminated string which is the name of a Plate?? I think they meant Template.

      M 1 Reply Last reply
      0
      • R raddevus

        That's truly nutty. Check out the name of the 4th param to the other make unique filename function:

        BOOL PathMakeUniqueName(
        [out] PWSTR pszUniqueName,
        UINT cchMax,
        [in] PCWSTR pszTemplate,
        [in, optional] PCWSTR pszLongPlate,
        [in, optional] PCWSTR pszDir
        );

        Long Pointer to a null terminated string which is the name of a Plate?? I think they meant Template.

        M Offline
        M Offline
        Mircea Neacsu
        wrote on last edited by
        #3

        My understanding is that the 3rd parameter was used for short 8.3 filenames and the 4th for the long filenames. Probably someone was "witty" and invented "longplate" to differentiate from "template".

        Mircea

        C 1 Reply Last reply
        0
        • B Brisingr Aerowing

          PathYetAnotherMakeUniqueName function (shlobj_core.h) - Win32 apps | Microsoft Docs[^] Even MS has trouble naming things.

          What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

          D Offline
          D Offline
          deepok1
          wrote on last edited by
          #4

          Most probably a variant to template. It will pretty neat in a medieval game dev scenario :)

          1 Reply Last reply
          0
          • M Mircea Neacsu

            My understanding is that the 3rd parameter was used for short 8.3 filenames and the 4th for the long filenames. Probably someone was "witty" and invented "longplate" to differentiate from "template".

            Mircea

            C Offline
            C Offline
            Cpichols
            wrote on last edited by
            #5

            Ooh! A punster! Very nice :)

            1 Reply Last reply
            0
            • B Brisingr Aerowing

              PathYetAnotherMakeUniqueName function (shlobj_core.h) - Win32 apps | Microsoft Docs[^] Even MS has trouble naming things.

              What do you get when you cross a joke with a rhetorical question? The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism. Do questions with multiple question marks annoy you???

              S Offline
              S Offline
              ShawnVN
              wrote on last edited by
              #6

              History: This was part of a batch of embarrassing internal junk, that lawyers forced to document as part of the DoJ consent decree in 2001. Basically, various API surface in Windows (mostly helper functions in Shell32.dll) that other products (mostly Office) were calling. It was never intended to see light of day.. obviously, it was the result of some dev who rotated from one org to another, and copy-pasted some helper function code from one product repo to another. I don't recall any of those lawyer-documented functions doing anything meaningful (that couldn't be replicated in user-mode code using existing Win32 APIs). But, try explaining that to DoJ lawyers..

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups