 |
SystemInfoHelperGetLogicalProcessorInformation Method |
Namespace: Xcalibur.NativeMethods.V2.SystemInfoAssembly: Xcalibur.NativeMethods.V2 (in Xcalibur.NativeMethods.V2.dll) Version: 1.0.1.0
Syntax[DllImportAttribute("kernel32.dll", SetLastError = true)]
public static bool GetLogicalProcessorInformation(
IntPtr buffer,
ref uint returnLength
)<DllImportAttribute("kernel32.dll", SetLastError := true>]
Public Shared Function GetLogicalProcessorInformation (
buffer As IntPtr,
ByRef returnLength As UInteger
) As Booleanpublic:
[DllImportAttribute(L"kernel32.dll", SetLastError = true)]
static bool GetLogicalProcessorInformation(
IntPtr buffer,
unsigned int% returnLength
)
[<DllImportAttribute("kernel32.dll", SetLastError = true)>]
static member GetLogicalProcessorInformation :
buffer : IntPtr *
returnLength : uint32 byref -> bool Parameters
- buffer IntPtr
- A pointer to a buffer that receives an array of
structures. If the function fails, the
contents of this buffer are undefined.
- returnLength UInt32
- On input, specifies the length of the buffer pointed to by
Buffer, in bytes. If the buffer is large enough to contain all of the data, this function
succeeds and ReturnLength is set to the number of bytes returned. If the buffer is not
large enough to contain all of the data, the function fails,
returns
, and ReturnLength is set to the buffer
length required to contain all of the data. If the function fails with an error other than
, the value of ReturnLength is undefined.
Return Value
BooleanIf the function succeeds, the return value is nonzero. To determine whether the
function adjusted all of the specified privileges, call
.
See Also