All pastes #584490 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-06-22 20:00 UTC
rendered paste body
WLHardwareGetFormattedID 

The WLHardwareGetFormattedID retrieves a formatted hardware ID for the current machine. This function should be used instead of WLHardwareGetID when a developer needs a specially formatted hardware ID in his application. 


 Show C/C++ function definition 

bool WLHardwareGetFormattedID ( 
     int NumCharsToghether, 
     int Uppercase, 
 char* pHardwareId);  
 
  
 



 Show Delphi function definition 
    
function WLHardwareGetFormattedID ( 
 NumCharsToghether:Integer;  
 
 Uppercase:Integer;  
 
 pHardwareId:PChar  
 
  
):Boolean; stdcall; 
 



 Show Visual Basic Native function definition 

Public Declare Function WLHardwareGetFormattedID  Lib "WinLicenseSDK.dll" ( 
 ByVal NumCharsToghether As Integer,  
 
 ByVal Uppercase As Integger,  
 
 ByVal pHardwareId As String  
 
  
) As Boolean 
 



 Show .NET function definition 

[C#] 
Kernel32.GetEnvironmentVariable("WLHardwareGetFormattedID", [in/out] HardwareIdFormatted, 100); 

[Visual Basic] 
GetEnvironmentVariable("WLHardwareGetFormattedID", [in/out] HardwareIdFormatted, 100) 
 




Parameters 

NumCharsTogether 
 [in] This parameter specifies the number of characters between dashes ('-').  
 
  
 
  
Uppercase 
 [in] This parameter specifies if the hardware ID must be given in uppercase.  
 
  

pHardwareId 
 [out] Pointer to a buffer that will receive a null-terminated string with the formatted hardware ID for the current machine.  
 
  
  
 
  
Return Values 

If the function succeeds, the return value is True. 
  
 
  
If the function fails, the return value is False.