Is there a kernel version of GetComputerName()?

secLookupAccountName() doesn’t seem to work correctly if you don’t preface the account name in question with the local machine name…

Not sure but GetComputerName just reads it from the registry so why not do
the same?

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName

On Wed, Jan 27, 2016 at 10:52 PM, wrote:

> secLookupAccountName() doesn’t seem to work correctly if you don’t preface
> the account name in question with the local machine name…
>
> —
> NTFSD is sponsored by OSR
>
>
> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
> software drivers!
> Details at http:
>
> To unsubscribe, visit the List Server section of OSR Online at <
> http://www.osronline.com/page.cfm?name=ListServer&gt;
></http:>

Thanks. Why ActveComputerName vs ComputerName?
I take it you have access to source code?

On Wed, Jan 27, 2016 at 11:59 PM, Paul wrote:

> Not sure but GetComputerName just reads it from the registry so why not do
> the same?
>
>
> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
>
> On Wed, Jan 27, 2016 at 10:52 PM, wrote:
>
>> secLookupAccountName() doesn’t seem to work correctly if you don’t
>> preface the account name in question with the local machine name…
>>
>> —
>> NTFSD is sponsored by OSR
>>
>>
>> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
>> software drivers!
>> Details at http:
>>
>> To unsubscribe, visit the List Server section of OSR Online at <
>> http://www.osronline.com/page.cfm?name=ListServer&gt;
>>
>
> — NTFSD is sponsored by OSR MONTHLY seminars on crash dump analysis,
> WDF, Windows internals and software drivers! Details at To unsubscribe,
> visit the List Server section of OSR Online at</http:>

I wish. It would make my life much easier.

But when you change the computer name the ComputerName field is updated but
the ActiveComputerName field is not until the system restarts. A computer
name change doesn’t take effect until the system restarts but most of the
registry values are updated before that happens. I guess
ActiveComputerName is there for book keeping purpose so other components
can query the original name after a change occurs.

On Thu, Jan 28, 2016 at 8:03 AM, Bob Nelson wrote:

> Thanks. Why ActveComputerName vs ComputerName?
> I take it you have access to source code?
>
> On Wed, Jan 27, 2016 at 11:59 PM, Paul wrote:
>
>> Not sure but GetComputerName just reads it from the registry so why not
>> do the same?
>>
>>
>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
>>
>> On Wed, Jan 27, 2016 at 10:52 PM, wrote:
>>
>>> secLookupAccountName() doesn’t seem to work correctly if you don’t
>>> preface the account name in question with the local machine name…
>>>
>>> —
>>> NTFSD is sponsored by OSR
>>>
>>>
>>> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
>>> software drivers!
>>> Details at http:
>>>
>>> To unsubscribe, visit the List Server section of OSR Online at <
>>> http://www.osronline.com/page.cfm?name=ListServer&gt;
>>>
>>
>> — NTFSD is sponsored by OSR MONTHLY seminars on crash dump analysis,
>> WDF, Windows internals and software drivers! Details at To unsubscribe,
>> visit the List Server section of OSR Online at
>
>
> — NTFSD is sponsored by OSR MONTHLY seminars on crash dump analysis,
> WDF, Windows internals and software drivers! Details at To unsubscribe,
> visit the List Server section of OSR Online at</http:>

Thanks again, much appreciated!

On Thu, Jan 28, 2016 at 1:33 PM, Paul wrote:

> I wish. It would make my life much easier.
>
> But when you change the computer name the ComputerName field is updated
> but the ActiveComputerName field is not until the system restarts. A
> computer name change doesn’t take effect until the system restarts but most
> of the registry values are updated before that happens. I guess
> ActiveComputerName is there for book keeping purpose so other components
> can query the original name after a change occurs.
>
> On Thu, Jan 28, 2016 at 8:03 AM, Bob Nelson wrote:
>
>> Thanks. Why ActveComputerName vs ComputerName?
>> I take it you have access to source code?
>>
>> On Wed, Jan 27, 2016 at 11:59 PM, Paul wrote:
>>
>>> Not sure but GetComputerName just reads it from the registry so why not
>>> do the same?
>>>
>>>
>>> HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName
>>>
>>> On Wed, Jan 27, 2016 at 10:52 PM, wrote:
>>>
>>>> secLookupAccountName() doesn’t seem to work correctly if you don’t
>>>> preface the account name in question with the local machine name…
>>>>
>>>> —
>>>> NTFSD is sponsored by OSR
>>>>
>>>>
>>>> MONTHLY seminars on crash dump analysis, WDF, Windows internals and
>>>> software drivers!
>>>> Details at http:
>>>>
>>>> To unsubscribe, visit the List Server section of OSR Online at <
>>>> http://www.osronline.com/page.cfm?name=ListServer&gt;
>>>>
>>>
>>> — NTFSD is sponsored by OSR MONTHLY seminars on crash dump analysis,
>>> WDF, Windows internals and software drivers! Details at To unsubscribe,
>>> visit the List Server section of OSR Online at
>>
>>
>> — NTFSD is sponsored by OSR MONTHLY seminars on crash dump analysis,
>> WDF, Windows internals and software drivers! Details at To unsubscribe,
>> visit the List Server section of OSR Online at
>
>
> — NTFSD is sponsored by OSR MONTHLY seminars on crash dump analysis,
> WDF, Windows internals and software drivers! Details at To unsubscribe,
> visit the List Server section of OSR Online at
></http:>