Click to See Complete Forum and Search --> : making apps with a registration lockout


esbelfer
11-11-2002, 03:16 AM
hi
dos anyone know how to make an app that has a registration lock.. ie that people have to register (and pay !) for the application, they receive an unlock key (based on their activesync ID or similar) ?...
ive got the app working, and have it done for palmos platform - that it needs a registration unlock key based on the hotsync name...
now i need a simlar thing for wince...

any ideas would really be appreciated !

pls help :-)

treyjazz
12-05-2002, 01:19 AM
why not have it look for the device id and owner name and make a code depending on those. you could also add in stuff like name, company, email to further complex the serial number.

esbelfer
12-05-2002, 01:29 AM
thats exactly what i'm after, only i dont know what thew code is for the wince os...

do you know of a good source for code, or even the actual code i would need?...

any help greatly appreciated

treyjazz
12-05-2002, 03:04 AM
by browsing through the api declares i found a couple declares that _might_ be the ones you are looking for:

Public Declare Function GetUserDefaultLCID Lib "Coredll" Alias "GetUserDefaultLCID" () As Long

Public Declare Function GetUserDefaultLCID Lib "Coredll" Alias "GetUserDefaultLCID" () As Long

hope they are the right ones.

esbelfer
12-09-2002, 10:23 PM
maybe i found the wrong thing, but what i could see from the help file of Dev Studio:
it looks like this is for locale (ie country settings) etc...
i need the ID or username...
any thouguhts / advice?


GetUserDefaultLCID
The GetUserDefaultLCID function retrieves the user default locale identifier.

LCID GetUserDefaultLCID(VOID)


Parameters
This function has no parameters.

Return Values
If the function succeeds, the return value is the user default locale identifier.

Remarks
For more information about locale identifiers, see Locale Identifiers.

See Also

--------------------------------------------------------------------------------


and...



Locale Identifiers
This appendix contains detailed information about national language support in Microsoft® Windows®. The information presented here pertains to locale identifiers, LCTYPE constants, country codes, and language identifiers.

A locale identifier (LCID) is a DWORD value containing the language identifier in the lower word and a reserved value in the upper word. The identifier supplied in an LCID is a standard international numeric abbreviation. This LCID has the components necessary to uniquely identify one of the installed system-defined locales.

Applications can use the MAKELCID macro to create LCID values.

There are two predefined LCID values: LOCALE_SYSTEM_DEFAULT is the system default locale, and LOCALE_USER_DEFAULT is the current user’s locale.

========================