Parameter | Description |
---|---|
pInData | A pointer to the data to be decrypted. The original data is not altered. |
pDataLength | The length of the data to decrypt. |
pPassword | The password to use for the decryption. If pHashAlgorith is set to net:CALG_NOHASH then the password must be the correct length for the encryption algorithm. For AES256 this is 32 bytes. |
pAlgorithmn | The Algorithm to use. Currently supported algorithms are; NET:CALG_AES_256 |
pHashAlgorithm | The Hashing Algorithm to use on the Password, before the encryption happens. Hashing a password improves the strength of the password. Algorithms supported by NetMakeHash are supported here. |
pCipherMode | The cipher mode to use. Currently supported options are; NET:CRYPT_MODE_CBC |
pPadding | The Padding mode to use. Currently supported options are; NET:PKCS5_PADDING |
pIV | The Initialization Vector to use. The length of the Init Vector is determined by the algorithm. For AES 256 it's 16 bytes long. Strings that are two long are clipped. Strings that are too short are padded with chr(0). If not passed (or passed as a blank string) then a string of null characters (chr(0)) is used. |
Parameter | Description |
---|---|
pInData | The data to decrypt. |
pPassword | The password |
Parameter | Description |
---|---|
pInData | A pointer to the data to be encrypted. The original data is not altered. |
pDataLength | The length of the data to encrypt. |
pPassword | The password to use for the encryption. This field is not clipped. If pHashAlgorith is set to net:CALG_NOHASH then the password must be the correct length for the encryption algorithm. For AES256 this is 32 bytes. |
pAlgorithmn | The Algorithm to use. Currently supported algorithms are; NET:CALG_AES_256 |
pHashAlgorithm | The Hashing Algorithm to use on the Password, before the encryption happens. Hashing a password improves the strength of the password. Algorithms supported by NetMakeHash are supported here. |
pCipherMode | The cipher mode to use. Currently supported options are; NET:CRYPT_MODE_CBC |
pPadding | The Padding mode to use. Currently supported options are; NET:PKCS5_PADDING |
pIV | The Initialization Vector to use. The length of the Init Vector is determined by the algorithm. For AES 256 it's 16 bytes long. Strings that are two long are clipped. Strings that are too short are padded with chr(0). If not passed (or passed as a blank string) then a string of null characters (chr(0)) is used. |
pLength | Contains the length of the binary data being passed back. The encrypted string size will always be the same as, or larger than, the plain string size. Since the exact size needs to be known (as a string of the exact size has to be passed to NetDecryptString or NetDecryptStringAES) |
Parameter | Description |
---|---|
pInData | The data to encrypt. |
pPassword | The password |
Parameter | Description |
---|---|
pQueue | A queue to contain the results of the call. The queue is of type
Net:IpInfoQType. This type is declared
in
\clarion\accessory\libsrc\win\netall.inc Net:IpInfoQType Queue, Type IPAddressCstr cstring (NET:IPStringSize+1) SubnetMaskCstr cstring (NET:IPStringSize+1) BroadCastCstr cstring (NET:IPStringSize+1) Gateway1CStr cstring (NET:IPStringSize+1) Gateway2CStr cstring (NET:IPStringSize+1) Gateway3CStr cstring (NET:IPStringSize+1) Gateway4CStr cstring (NET:IPStringSize+1) Gateway5CStr cstring (NET:IPStringSize+1) DHCPServerCStr cstring (NET:IPStringSize+1) PrimaryWinsCstr cstring (NET:IPStringSize+1) SecondaryWinsCStr cstring (NET:IPStringSize+1) DCHPenabled long WinsEnabled long LeaseObtained long LeaseExpires long AdapterDescription cstring (128+4) AdapterName cstring (256+4) AdapterType long AdapterIndex long IPindex long MACAddress string(20) Family Long End |
pShortList | Deprecated: Set it to False. If this property is true then only IP, SubnetMast and BroadCast addresses are filled into the queue. |
Parameter | Description |
---|---|
pInData | The string to Hash. |
pLength | The length of the incoming string. |
pHashType | One of the following; net:CALG_NOHASH net:CALG_MD2 net:CALG_MD4 net:CALG_MD5 net:CALG_SHA1 net:CALG_SHA_256 net:CALG_SHA_384 net:CALG_SHA_512 |
Parameter | Description |
---|---|
pInData | The string to Hash. |
pLength | The length of the incoming string. |
pSecret | The secret value used in the HMAC. This value will be clipped so cannot end with a space character. |
pHashType | One of the following; net:CALG_MD5 net:CALG_SHA1 net:CALG_SHA_256 net:CALG_SHA_384 net:CALG_SHA_512 |
Parameter | Description |
---|---|
flag | One of the equates listed in the table below |
pData | The value to set (when using SET equates) or the result from the function if using GET equates. |
Equate | Description | Where |
---|---|---|
NET:COUNTOUTGOINGPACKETS | Used by NetSimple objects to determine the number of outgoing packets that are still in the DLL. Used in the GetInfo() method. | After |
NET:DNSLOOKUP | Does a DNS lookup on the string that you pass to it. The result is placed in the string. This is a blocking call. In other words processing is suspended while the DNS lookup occurs. | After |
NET:SETENCRYPTIONKEY | Can be used to set a unique encryption key string for your applications. String passed should be of type string (24). Preferably set this early in the loading cycle before packets are sent or received. | Before |
NET:GETDGINSTANCE | Gets the datagram instance of your NetAuto instance (starts at 0) | After |
NET:GETDGPORT | Gets the datagram port number (see also NET:GETSPORT) | Either |
NET:SETDGPORT | Sets the datagram port number (see also NET:SETSPORT) | Before |
NET:GETDLLTHREAD | Gets the thread number of the NetTalk Callback Window, which is in the DLL. If the window is not open then this returns 0. | Either |
NET:GETDLLVERSION | Gets the version out of the DLL being used. If you compile in local mode this will be the version of the .lib file that you compiled with, otherwise it will report the DLL version (standalone build). | After |
NET:GETDNSLIST | Gets a comma separated list of the DNS Servers in specified in the Networking TCP/IP properties. | After |
NET:GETHOSTNAME | Gets the hostname of the machine you are using | Either |
NET:GETHOSTIPLIST | Gets a list of IP addresses for this machine. | Either |
NET:GETIAMASERVICE | Tells NetTalk this process is a Service, and that it should not close down when the current Session Logs Off | Either |
NET:GETINACTIVESERVICETIMER | (Advanced option). Gets the time to wait between polls to inactive servers. (in hs) - This only affects the NetAuto objects. | Either |
NET:SETINACTIVESERVICETIMER | (Advanced option). Sets the time to wait between polls to inactive servers. (in hs) - This only affects the NetAuto objects. | Before |
NET:GETMAXINSTANCES | Gets the maximum number of NetAuto instances that you can run on one machine. | Either |
NET:SETMAXINSTANCES | Sets the maximum number of NetAuto instances that you can run on one machine. | Before |
NET:GETNETDESCRIPTION | Gets the NetName Description of the current instance. This is the user friendly version of the netname e.g. 'Fred Bloggs at CapeSoft' | After |
NET:SETNETDESCRIPTION | Sets the NetName Description of the current instance. This is the user friendly version of the netname e.g. 'Fred Bloggs at CapeSoft' | Before |
NET:SETNETDESCRIPTION_ALWAYS | Sets the NetName description of the current instance. This is the user friendly version of the netname e.g. 'Fred Bloggs at CapeSoft'. This option also stores it in the registry for the next time as well. | Before |
NET:GETNETID | Gets the NetID structure for the current instance. Net:AutoIDType is defined in \clarion\accessory\libsrc\win\netall.inc | After |
NET:SETNETNAME | Sets the NetName of your NetAuto Instance | Before |
NET:GETNETNAME | Gets the NetName of you NetAuto Instance. You can also call the NetAutoGetNetName() function. | After |
NET:SETNETAUTOLISTENINGPORTIP | Allows you to bind the NetAuto Objects Listening Ports to a specific IP address. This can be useful if you are running multiple network cards, but would only be used in rare situations | Before |
NET:SETRECOVERYOPTIONS | Sets the NetAuto objects Error Recovery parameters. Demonstrated in the netdemo application. Use the NET:AutoRecoveryOptionsType group. | Either |
NET:GETRESEND_CloseConnectionBeforeResend | (Advanced option only). Indicates if the NetAuto objects' connection will be closed before any error correction resending takes place | Either |
NET:SETRESEND_CloseConnectionBeforeResend | (Advanced option only). Sets if the NetAuto objects' connection must be closed before any error correction resending takes place. | Either |
NET:GETRESEND_OnlySendIfHostActive | (Advanced option only). Indicates if the NetAuto objects' error correction resending takes place only if the Host is active in the Servers queue (ie that there is DG communication between server and client) | Either |
NET:SETRESEND_OnlySendIfHostActive | (Advanced option only). Sets the NetAuto objects' error correction resending to take place only if the Host is active in the Servers queue (ie that there is DG communication between server and client) | Either |
NET:GETSINSTANCE | Gets the streamed socket instance of your NetAuto instance (starts at 0) | After |
NET:GETSPORT | Gets the streamed port number (see also NET:GETDGPORT) | Either |
NET:SETSPORT | Sets the streamed port number (see also NET:SETDGPORT) | Before |
NET:GETSTATS | Get Statistics on how many records are in queues and memory used | After |
NET:SETUSEONE255BROADCAST | Tells the NetAuto Broadcast system to use one 255.255.255.255 broadcast instead of one broadcast per subnet. (Not recommended unless you know what you are doing). | Either |
NET:GETOUTWAITING | Gets the size of data (in bytes) currently waiting in the qAutoOutgoingPacketsData | After |
Parameter | Description |
---|---|
pIP | The IP address to ping. |
pTTL | Timeout (in milliseconds. 1000=1 second) |