serial-number

Getting PCSC reader serial number with WinSCard

≯℡__Kan透↙ 提交于 2019-12-01 04:31:40
I have a problem with getting PCSC reader serial number if card is not present in the reader. I am using winscard.dll and c++. The following code will work only for the case if card is present in the reader. Otherwise the SCardHandle is not retrieved. I haven't found any other way to get SCardHandle. SCARDHANDLE hCardHandle; SCARDCONTEXT hSC; WCHAR pCardReaderName[256]; LONG lReturn; lReturn = SCardEstablishContext(SCARD_SCOPE_USER, 0, 0, &hSC); if (lReturn != SCARD_S_SUCCESS) { Console::WriteLine("SCardEstablishContext() failed\n"); return; } my_select_reader(hSC, pCardReaderName); // just

Getting PCSC reader serial number with WinSCard

纵饮孤独 提交于 2019-12-01 02:54:29
问题 I have a problem with getting PCSC reader serial number if card is not present in the reader. I am using winscard.dll and c++. The following code will work only for the case if card is present in the reader. Otherwise the SCardHandle is not retrieved. I haven't found any other way to get SCardHandle. SCARDHANDLE hCardHandle; SCARDCONTEXT hSC; WCHAR pCardReaderName[256]; LONG lReturn; lReturn = SCardEstablishContext(SCARD_SCOPE_USER, 0, 0, &hSC); if (lReturn != SCARD_S_SUCCESS) { Console:

What is the simplest way to retrieve the device serial number of an iOS device using MonoTouch?

泪湿孤枕 提交于 2019-11-30 23:13:41
Does MonoTouch have a simple mechanism for retrieving the device serial number (not UDID) of an iOS device? Is there a third-party library which I can use to obtain this? In case it matters, I'm looking to use this functionality in an in-house application and am not concerned with the App Store approval process. UPDATE: from iOS 8, we cannot retrieve the serial number of our iDevice. To retrieve iphone serial number from Monotouch, you can use this technic: Create a static library .a from XCode that have a function to get serial number In MonoDevelop, create a binding project to bind you .a

How can i set the serial for this serial form (Inno Setup)

筅森魡賤 提交于 2019-11-30 10:35:13
I was looking for a serial script and I found one here: CustomPage for Serial Number in Inno Setup But how can I set the serial because all serials are valid now. Thanks for your answer! TLama Extending the code from my previous post , if you want to compare the serial number with a constant value, you can modify the script this way. The only valid serial number which allows users to continue will be 62FFU-GA4N8-T8N6W-WLQJW-N6WLQ-AJKD6 : procedure OnSerialEditChange(Sender: TObject); var CanContinue: Boolean; begin // the GetSerialNumber defined there returns you the serial number string //

Getting Windows serial number (was: Getting MachineGuid from Registry)

落爺英雄遲暮 提交于 2019-11-30 06:58:54
I am trying to fetch MachineGuid from the registry, to create some level of binding with the OS for my license system. From the documentation I can use string key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography"; string r = (string)Registry.GetValue(key, "MachineGuid", (object)"default"); to get it. Also, the docs tell me that I get "default" when the name is not found, or null if the key doesn't exist. I should get a security exception if I have no access. The above code gives me "default" , which means the name isn't found. However, if I look in the registry with RegEdit, it's there

Get HDD (and NOT Volume) Serial Number on Vista Ultimate 64 bit

你说的曾经没有我的故事 提交于 2019-11-30 02:22:37
I was once looking for getting the HDD serial number without using WMI, and I found it. The code I found and posted on StackOverFlow.com works very well on 32 bit Windows, both XP and Vista. The trouble only begins when I try to get the serial number on 64 bit OSs (Vista Ultimate 64, specifically). The code returns String.Empty, or a Space all the time. Anyone got an idea how to fix this? EDIT: I used the tools Dave Cluderay suggested, with interesting results: Here is the output from DiskId32, on Windows XP SP2 32-bit: To get all details use "diskid32 /d" Trying to read the drive IDs using

Generating unique codes in PHP/MySQL?

我是研究僧i 提交于 2019-11-30 02:05:02
I'm working with a client that needs to generate millions of the alphanumeric codes used in magazine scratch-off cards, bottlecap prizes, and so on. They have to be short enough to print on a cap, they want to make sure that ambiguous characters like 1 and I, 0 and O, etc. are not included, and they have to be explicitly stored for future use -- we can't just have an algorithm that determines 'validity' when someone tries to redeem one. Finally, they want to make sure that the codes are randomly distributed inside of a large "code space" so that people can't just guess additional codes by

Get H/D Serial number (Not Volumn Serial Number) for IDE and SATA

半城伤御伤魂 提交于 2019-11-29 12:44:21
How can I read the hard disk serial number for IDE and SATA drives in VB.NET? (I don't want the volume serial number). This info should be gathered both for XP and Vista if possible without administrative rights. You can use WMI (Windows Management Instrumentation) like this: Dim mos As New ManagementObjectSearcher("SELECT * FROM Win32_PhysicalMedia") For Each mo As ManagementObject In mos.Get() Dim serial As String = mo("SerialNumber").ToString() Next Although, I've read about cases in which no serial number is returned using WMI. Another way to accomplish this would be through Platform

How to check my NFC TAG ID (UID)?

橙三吉。 提交于 2019-11-29 08:57:47
It is possible to know others NFC TAG ID when we used to the APK & TAG each phones. For example, Phone A and B try to tag. Then Phone A can know Phone B's NFC TAG ID (4 Bytes - HEX). But I wanna know how to know my NFC TAG ID on my phone. Not used other phones. If you know any other information, please give me your advice on that. A phone does not necessarily have a fixed anti-collision identifier ("NFC Tag ID", as you call it). For instance, it could have an anti-collision identifier, that is randomly allocated on every activation (e.g. external HF field is turned on, phone is turned on, etc.

Getting Windows serial number (was: Getting MachineGuid from Registry)

纵饮孤独 提交于 2019-11-29 08:06:49
问题 I am trying to fetch MachineGuid from the registry, to create some level of binding with the OS for my license system. From the documentation I can use string key = "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Cryptography"; string r = (string)Registry.GetValue(key, "MachineGuid", (object)"default"); to get it. Also, the docs tell me that I get "default" when the name is not found, or null if the key doesn't exist. I should get a security exception if I have no access. The above code gives me